Devicetype reset on preview
If I setup printtofile to true, devicetype to 'ExcelFile' and filename to
'text.xls' and I dont use the preview, the print dialog windows show the
correct setting. But if I first preview the output, the devicetype ist reset
to textfile.
The user now can not just mark the checkbox 'export/output to file'. He also
has to set the devicetype again. It would be nice, if the device type would
not be reset to textfile. Resetting is done in ppPDlg.pas.
Albert Kessler
'text.xls' and I dont use the preview, the print dialog windows show the
correct setting. But if I first preview the output, the devicetype ist reset
to textfile.
The user now can not just mark the checkbox 'export/output to file'. He also
has to set the devicetype again. It would be nice, if the device type would
not be reset to textfile. Resetting is done in ppPDlg.pas.
Albert Kessler
This discussion has been closed.
Comments
screen, so it can be previewed on the call to Report.Print, you can then set
the print dialog to always default to the excel option in the
Report.OnPrintDialogCreate event when selecting the print button from the
preview form.
procedure TForm1.ppReport1PrintDialogCreate(Sender: TObject);
begin
ppReport1.PrintDialog.DeviceType := 'ExcelFile';
end;
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com