Export to PDF messes up right align of bold, non-standard font text

Posted by: evalentine on 13 January 2022, 6:11 am EST

  • Posted 13 January 2022, 6:11 am EST

    I have a report with a couple of textboxes in the header that are using font AGaramond RegularSC and alignment of Right. One of the textboxes is set with Bold: True. A preview of the report shows the contents of these textboxes right aligned as expected.

    However, when the report is run and exported to PDF, the contents of the bolded textbox is not all the way to the right. If I turn bold off or use a different font, the alignment looks correct. I can't tell the client that they can't have bold text in the heading or that they can't use this font. Please advise.
  • Replied 13 January 2022, 5:00 pm EST

    Hi Evalentine,

    Please try setting the CompatibilityMode of your report to GDI instead of CrossPlatform.
  • Replied 14 January 2022, 6:00 am EST

    Where do I find this property?
  • Marked as Answer

    Replied 16 January 2022, 5:05 pm EST

    Hi Evalentine,

    You can find this property in the SectionReport's Properties window. I have also attached a screenshot for your reference.
    You also use the following code to set this property:
    SectionReport1 rpt1 = new SectionReport1();
    rpt1.CompatibilityMode = GrapeCity.ActiveReports.Document.CompatibilityModes.GDI;

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels