ReportBuilder Support Forums
ReportBuilder 22.03 now available with Delphi 12 support!
No FileName on printer dialog
When I press the print button on the preview and choice for 'Microsoft Print to PDF' then the dialog to save the pdf there is no filename like in the property of .PrinterSetup.DocumentName
ReportBuilder does not interact directly with printers or printer drivers. It uses generic Windows API calls which in turn communicate with compatible printer drivers to "print" the report. The dialog shown when using the PDF printer driver included with Windows (Microsoft Print to PDF) is not part of ReportBuilder.
Have you tried using the built-in PDF export device? You can pre-define the PDF file name using the Report.TextFileName property.
Is there an example how to use the built-in PDF export device?
Can I have a export PDF button on the preview?
Now I set the properties to view the document.
DeviceType: Screen -- to see on Preview
You can enable exporting to file by setting the Report.AllowPrintToFile property to True. This also enables an "Export to File" button in the preview.
1. Take a look at the help topic for the TppPDFDevice. This gives a basic description of the feature as well as a code example.
2. Take a look at the following article on PDF fundamentals.
3. There are a number of other useful PDF articles available in the same directory:
edited August 2022
Good Question. I think it depends upon your printer. Just look for the same. And thanks for the best suggestions