Bug Report T178439
Visible to All Users

TAbstractdxRichEditReportLink descendants - Certain print settings cause missing text in multi-page reports printed using the Report Preview dialog

created 10 years ago

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.

Comments (1)

    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.

    Answers approved by DevExpress Support

    created 10 years ago

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      created 10 years ago

      Hello Remco,

      This is a common problem for report/printing systems, which may happen from time to time. We have not found a reliable way to fix it at the level of our controls. The point is that the print preview and real or virtual printers use different device contexts and different coordinates while scaling of some pixels may be lost in rounding routines. Thus, there is always a chance that different printers will produce different pagination.

        Show previous comments (6)

          Hi, can you update us on this ticket? What is the time frame for this Hotfix?

          DevExpress Support Team 10 years ago

            Hello Remco,

            We have just released VCL 14.1.6 and included the corrected code there. I suggest that you download this new minor build to get all available fixes.

              Thanks for your action. We did a quick test of the Hotfix, and the first impression is that it works. We will keep you updated on further testing and implementation.

              Other Answers

              created 10 years ago

              Hi,

              I have just installed VCL 14.2.4 and found out that the bug appeared again.

              The difference is that I am using Embarcadero Delphi XE3

                Comments (1)
                DevExpress Support Team 10 years ago

                  Hello Alexander,

                  To process your recent post more efficiently, I created a separate ticket on your behalf: Missing text in multi-page reports. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

                  Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

                  Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.