How to save Fastreport to PDF in silent mode?

Asked

Viewed 2,699 times

1

I can generate the PDF from the code below:

fdm.frxPDFExport.FileName := 'C:\PASTA_TESTE\ARQUIVO_TESTE.PDF';
frxReport.PrepareReport();
frxReport.Export(fdm.frxPDFExport);

The detail is that it shows me the screen to choose where to save the file.

I would like to save without user intervention, since I determined the path and file name.

1 answer

4


Change the property FileName and DefaultPath for what you need in export.

Also change frxrRelatorio.PrintOptions.ShowDialog := False; not to display the dialog box

  • 1

    Hello Gabriel, thanks for the reply, in addition to Printoptions = False, also put fdm.frxPDFExport.Showdialog := False; and it worked.

  • That, I forgot that the other was for printing, that was for export

Browser other questions tagged

You are not signed in. Login or sign up in order to post.