I'm using wPDF 3, if I export FastReport to file I got the correct PDF, but if I try to export to a stream in memory, I got nothig.
This is the Delphi code:
Code
aPDFExport := TWPDF_FrPDFExport.Create(nil);
try
aPDFExport.PDFPrinter := WPPDFPrinter1;
WPPDFPrinter1.AutoLaunch := false;
{
// This works fine
WPPDFPrinter1.Filename := 'd:\temp\test_fr.pdf';
WPPDFPrinter1.InMemoryMode := false;
}
WPPDFPrinter1.Filename := '';
WPPDFPrinter1.InMemoryMode := true;
WPPDFPrinter1.Stream := StreamPDF;
frxReport1.PrepareReport(true);
frxReport1.Export( aPDFExport );
finally
aPDFExport.Free;
end;
Alles anzeigen
Any idea?
Thanks
P.D I'm using wPDF with FastReport and not the FastReport PDF export filter because I had many problems with it, so I'll try wPDF, because it's an excellent software and I've been using WPtools successfully since the first Delphi. Maybe there are other people with problems with FastReport PDF export filter and wPDF could be the answer...