I wrote this app that manages clients, I am generating reports with DynamicReports .
I have created an option in my app that generates a report for each client in a press of a button.
For Example: if I have 5 clients, I press "generate reports" and 5 reports are opened, 1 for each client.
Is there a way to automatically send the report to a printer once it's loaded?
Now, I have to press print manually 5 times, once for each report.
Add
report.print();
to every report which is being created.
report.print(); will print using the default printer without asking your choices, to show printer dialog you must use : report.print(true);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.