How to save FastReport report to PDF in silent mode?

0

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 have determined the path and file name.

    
asked by anonymous 01.10.2018 / 14:55

1 answer

2

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

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

    
01.10.2018 / 15:05