PDF print dialog question
Hello.
Is it possible to get the print dialog to open (as per the Help file) ready
to print a report to a PDF file but with the PrintToFile box unticked?
I want the defaule option to be to print to the printer but if the user
wants he can tick the PrintToFile checkbox and get a PDF output. I can only
get the dialog to open with the default option being to print to PDF. The
use has to untick if he wants to sent the report to the printer.
I have tried the following
procedure TfrmInvoiceS.ppRepInvoicePrintDialogCreate(Sender: TObject);
begin
ppRepInvoice.PrintDialog.PrintToFile := False;
end;
but it does not work. The checkbox is still ticked.
Thanks.
Is it possible to get the print dialog to open (as per the Help file) ready
to print a report to a PDF file but with the PrintToFile box unticked?
I want the defaule option to be to print to the printer but if the user
wants he can tick the PrintToFile checkbox and get a PDF output. I can only
get the dialog to open with the default option being to print to PDF. The
use has to untick if he wants to sent the report to the printer.
I have tried the following
procedure TfrmInvoiceS.ppRepInvoicePrintDialogCreate(Sender: TObject);
begin
ppRepInvoice.PrintDialog.PrintToFile := False;
end;
but it does not work. The checkbox is still ticked.
Thanks.
This discussion has been closed.
Comments
If you assign the Report.DeviceType property to Printer and also set the
Report.AllowPrintToFile property to True, the Print To File checkbox will be
available yet unchecked in the print dialog.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com