File damaged

Hi everybody.

We're using FastReport to save a report into PDF format from Delphi.

We use the next code:
         frxReport2.LoadFromFile(ExtractFilePath(Application.ExeName) + 'informes/troqueles.fr3');
         if not DirectoryExists(ruta + '/'+qcomposicionPEDIDO.Value + '/') then
         begin
           CreateDir(ruta + '/'+qcomposicionPEDIDO.Value + '/');
         end;

         frxPDFExport1.FileName:= ruta + '/'+qcomposicionPEDIDO.Value + '/' + qcomposicionARTICULO.Value +'-'+ IntToStr(qcomposicionLINEA.Value) + '-' + IntToStr(qcomposicionNUMCOMPO.Value) + '.pdf';
         frxPDFExport1.ShowDialog:= false;
         frxPDFExport1.
         frxReport2.PrepareReport(true);
         frxReport2.Export(frxPDFExport1);

It generates the PDF file correctly. We can view it with Adobe Acrobat without any problem. But now we need to import that file with CorelDraw X5, but it shows a message: "El archivo est?? da?±ado" (File's damaged).
We can import any PDF correctly... except the files generated with FastReport.

Any idea?

Comments

Leave a Comment