Is there a way to name the print job when you print a report?
Hello everyone!
I'm printing a lot of reports to PDF and would like to set the name of the printed file. Right now it displays the name as being the path of the file by default.
Is there a way to set a default file name in code when I print the file? I haven't been able to find anything.
Thanks for the help!
This discussion has been closed.
Comments
Hello!
FastReport .NET retrieves the name from `report.ReportInfo.Name`.
What to do:
If, however, the aim is to obtain a PDF file with the required name straight away, without the Microsoft Print to PDF driver’s dialogue boxes, it is quicker and more reliable to use the exporter directly: