I have a RTF document. Opening in Microsoft Word, this document has 1 page. If I load this RTF in a WPRichText component, in design time it shows me 2 pages. If I run the application, it shows me 1 page. If I call WPRichText.Refresh, or any other function that reformats it, it reformat into 2 pages. The problem is that it was supose to be just 1 page, and in my code I'm using CountPages, that returns 2 when it was suposed to be 1.
In the end of the document there is a table. This table fits in the first page, but goes to the second when refreshing.
Problem with page formatting in WPRichText
-
-
- Offizieller Beitrag
Word is based on different code than WPTools is and will create different word, paragraph and page breaks. So it happens that the page layout changes when loading in WPTools or Word.