I'm using a cxRichEdit on a form, linked to a cxComponentPrinter.
When printing the contents of the cxRichEdit, the pagination in the Print Preview can be different from the printed result. Sometimes a page in the Print Preview has one line more than the same page in the printout. There have also been rare situations when one or two lines at the bottom of page 1 were repeated at the top of page 2, although I can't reproduce that behaviour right now.
Under which circumstances can the printout deviate from the layout in the Print Preview?
I'm assigning the RTF text to the cxRichEdit at runtime from a TStream by using "cxRichEdit1->Lines->LoadFromStream(stream)", if this is wrong please let me know.
I added a zipfile with a screenshot of the Print Preview, and the printed result (printed out to the Microsoft XPS Document Writer). When I examine these screenshots closely, I notice that the margins look a bit different. This seems to influence the wrapping of the lines, and thus the entire layout and the pagination. Can it be caused by the font or the scaling in the preview being different from the actual printout? It is not clear to me.