Print To File Cancel
When printing to file, I have a function to check the free disk space of
the location. If the criteria I choose is not met, I show a message
alerting the user. I would also like to stop the print to file and go
back to the print preview. Does anyone know how to accomplish this.
Thanks,
Nick
the location. If the criteria I choose is not met, I show a message
alerting the user. I would also like to stop the print to file and go
back to the print preview. Does anyone know how to accomplish this.
Thanks,
Nick
This discussion has been closed.
Comments
1. You can set the ModalResult property of the print dialog to mrCancel in
the Report.OnPrintDialogClose event if there is not enough disk space to
hold the file.
2. You can set the Report.AllowPrintToFile property to False in the
Report.OnPrintDialogCreate event if the criteria is not met.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com