Reset printer to system default after user change
Hi,
We,ve migrated from QuickReport to FastReport, and encountered the following behavior.
When a user changes the printer on the dialog that appears after clicking the "Print" button on the preview form, it seams that the selected printer is remembered across all reports.
Executing [reportName]->Print() prints on earlier selected printer.
The desired behavior is that the Printer selected on the preview is valid only for printing from the current preview, and returns to default system printer after printing the report..
How can I archive this?
I've tried setting this in the report constructor:
with no luck.
Please help.
We,ve migrated from QuickReport to FastReport, and encountered the following behavior.
When a user changes the printer on the dialog that appears after clicking the "Print" button on the preview form, it seams that the selected printer is remembered across all reports.
Executing [reportName]->Print() prints on earlier selected printer.
The desired behavior is that the Printer selected on the preview is valid only for printing from the current preview, and returns to default system printer after printing the report..
How can I archive this?
I've tried setting this in the report constructor:
report->PrintOptions->Printer = "Default";
with no luck.
Please help.
Comments
so you have to get the default printer name, assign it and invoke method "SelectPrinter"