Setting Defaults for Print to File
I'm forcing output to a file.
ppReport1.Device := dvfile;
This brings up the print dialog.
I'd like to be able to preselect for the enduser the file type and
destination path rather than have them have to change it in the print
dialog.
And, if possible, having preselected the defaults, suppress showing
the print dialog altogether and just output to the file.
TIA for any hints.
John
ppReport1.Device := dvfile;
This brings up the print dialog.
I'd like to be able to preselect for the enduser the file type and
destination path rather than have them have to change it in the print
dialog.
And, if possible, having preselected the defaults, suppress showing
the print dialog altogether and just output to the file.
TIA for any hints.
John
This discussion has been closed.
Comments
if OpenwithAdobe1.Checked then
begin
ppReport1.DeviceType := 'PDF';
ppReport1.AllowPrintToFile := True;
ppReport1.TextFileName := 'c:\temp\Report.pdf';
ppReport1.ShowPrintDialog := False;
end else ppReport1.Device := dvscreen;