Page Layout Problem with Sections

  • Hi,

    We are utilizing sections in our WPTools editors which may have different page layouts. That works fine when we directly print to a printer or PDF writer. However, when we save the document to a file in RTF format we have a problem: The page layout of the last section in the document is overwritten by the page layout of the first section. All sections upto the last one are just fine.

    We are still using WPTools version 5.30.1.

    Any help on this issue will be appreciated.

    Thanks,

  • Alright Julian, here is a file with three sections. The first section is setup to print portrait, the next two landscape. However, the last section appears as portrait as the first section when saved to RTF.

    Thanks,

  • Julian,

    This output is from a TWPCustomRichText engine which got content by appending 3 sections by calling the AppendAsSection method with a TWPCustomRtfEdit editor as parameter. I used the SaveToFile method with WPTOOLS format to produce it. I don't understand why it does not contain any sections...

    Thanks

  • We have upgraded to WPTools 5.47.5, and tested this issue. It still uses the formating of the first part of the document in the last section of the document.

    We have downloaded the demo, and built it using Delphi 2005. I did not see the purpose of using the Save+Load String button, or the WPT checkbox. Therefore, my testing did not utilize those controls. Without any changes to the demo code, we were seeing the same format problem as in our application. The preview within the demo looks correct, but the resulting RTF file created by the Save button results in the problem formatting seen in MS Word.

    After seeing the problem in the demo, I added code to insert more text when the new section is appended. When the RTF from this demo is viewed in Word, it also shows an additional blank page at the start of each section (in addition to the wrong layout of the last section).

    I am sending you an email containing the modified demo, and the resulting RTF files.