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

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.