How to export QuickReport To PDF

D2007 with QR Standard

Any free or non-free pdf export components that allows straight export to 
PDF format?
I want a straight export to PDF without previewing the report.
12
Alan
5/6/2010 6:53:11 AM
embarcadero.delphi.reporting 487 articles. 0 followers. Follow

1 Replies
9629 Views

Similar Articles

[PageSpeed] 9

Hello,

Just design your report and then create it with the "prepair" function.

quickrep1.Prepare;
quickrep1.qrprinter.ExportToFilter(TQRWMFExportFilter.Create('c:\report'));
quickrep1.qrprinter.Free;
quickrep1.qrprinter := nil;

To call a filter explicitly you would use syntax like:

aFilt : TQRXLSFilter;

aFilt := TQRXLSFilter.Create('c:\report.xls')
quickrep1.ExportToFilter(aFilt);
aFilt.Free;

Other filters:
HTML: TQRGHTMLDocumentFilter
ASCII: TQRAsciiExportFilter
CSV: TQRCommaSeparatedFilter
RTF: TQRRTFExportFilter
WMF: TQRWMFExportFilter
PDF: TQRPDFDocumentFilter
------------------

or like :

var aExportFilter : TQRExportFilter;
     aFilterIndex : Integer;


aFilterIndex:=2; {you can test what index is which filertype..}
aExportFilter := TQRExportFilterLibraryEntry(
        QRExportFilterLibrary.Filters[aFilterIndex - 1]).ExportFilterClass.Create(aFileName);
      Try
        QRPrinter.ExportToFilter(aExportFilter);
      Finally
        aExportFilter.Free;
      End;
1
Robert
5/6/2010 7:46:23 AM
Reply: