Home DADE

Export to File Button

Hi, I would like to know if it is possible to execute the export to file button (next to the printer) at runtime.
The Report is generated and I want to execute the export command to file at runtime, after the printing has been executed.
If you use the ppReport1.Print command, parameters will be asked again

This is my code.

ppReport1.AllowPrintToFile := true;
ppReport1.AllowPrintToArchive := true;
ppReport1.DeviceType := 'PDF';
ppReport1.ShowPrintDialog :=False;
ppReport1.TextFileName := PChar('d:\teste.pdf');
ppReport1.?????;
Sign In or Register to comment.