Exporting report with chart to PDF: Chart quality poor

Hello,

I have a report with a pie chart in it and I export it to pdf with the following code:
  DataMod.frxReport1.PrepareReport(true);

  //DataMod.frxReport1.ShowPreparedReport;

  DataMod.frxPDFExport1.FileName := PdfFile;
  DataMod.frxPDFExport1.ShowDialog := false;
  DataMod.frxReport1.Export(DataMod.frxPDFExport1);

When I do this the text and numbers in the pdf file look ok except for the chart, which is pixilated and blurry and not acceptable.
If I show the chart with ShowPreparedReport and save the chart from the preview as a pdf, the chart looks fine. Also the chart generated by the Export looks good.

There must be some properties or settings being set by the ShowPreparedReport that I am not setting for the Export(Export(DataMod.frxPDFExport1).

Can someone share their experience with the properties to export a report with a chart to a pdf file and have the chart look good?

I can share the pdf file to show the poor chart if that is helpful to anyone.

Thanks,

Hardee Mahoney
Washington, DC

Comments

  • gpigpi
    edited 7:22AM
    Try
    frxPDFExport1.Quality := 100;
         frxPDFExport1.PrintOptimized := True;
    
  • gpi wrote: »
    Try
      frxPDFExport1.Quality := 100;
      frxPDFExport1.PrintOptimized := True;
    

    Thanks!

    I do not see the Quality property of TfrxPDFExport. I get an error when I try to set it.

    But the PrintOptimized property seems to make things much better;

    Hardee
  • gpigpi
    edited 7:22AM
    Use latest 4.13
  • gpi wrote: »
    Use latest 4.13


    Thanks. I'm downloading the new version but cannot seem to install it correctly.

    I have Delphi XE2

    I download from http://cp.fast-report.com/
    fr4_13_d16s.exe

    The file that downloads is d16s.exe. When I run the file the only options are to uninstall or Add/Remove Features.
    I choose Add/Remove and the install works but my version does not change.
    I still have 4.12.15

    How do I download and install 4.13?

    Thanks
  • gpigpi
    edited 7:22AM
    You should remove previous version of FR first
  • gpi wrote: »
    You should remove previous version of FR first

    Thanks!

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.