PDF-Export - RTF-Text empty

edited 12:23PM in FastReport 4.0
Hello

We're using Fastreport for standard reports and for simple letters. The customer can edit the reports in the fastreport designer. The letters can be edited with our integrated RTF-Editor (TRichview or something like that).
If we generate a letter-report, we take the richtext and put it directly into the fastreport-report. Works all fine, I can print it, preview it and export it to word (rtf) or excel.
BUT: If i d'like to export the report to PDF, the hole page is empty...
var
  exp: TfrxCustomExportFilter;
begin
  ...
  mrep.PrepareReport;

  if AExport = eftNothing then
    //Print directly
    mrep.Print
  else begin
    //Export to PDF
    exp:= TfrxPDFExport.Create( nil );
    exp.FileName:= AFilename;
    exp.ShowDialog:= false;
    mrep.Export( exp );
    exp.Free;
  end;

Do you have any suggestens where I can find the mistake?
Thank you very much!
Simon

Comments

  • edited November 2012
    Just found out: If I open the exportet PDF in the Adobe reader, it works fine. But if I open it with the standard editor (the standard windows 8-Metro-PDF-Viewer), the content is empty.
    I can send you the pdf if you like to test it...
    Do you have any ideas?

    [Edit]
    Other question, same topic:
    I d'like to export the pdf without the dialog (showdialog:=false). But then, the quality of the RFT (infact its a jpg) is really really bad.
    If I export it with the dialog shown, the quality is good.
    In the dialog, i can change the "Quality". Not in the code, because FQuality in frxExportPDF is privat. And because FQuality is 0, the pdf looks like a cow has eaten the sheet...
  • edited 12:23PM
    Hi,

    I'm having a similar problem with exporting a report to pdf with a chart.

    Please see post:
    Exporting report with chart to PDF: Chart quality poor

    I would love to work with someone to solve this problem.

    Thanks,
    Hardee Mahoney
    Washington, DC

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.