Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Print To File Cancel

edited February 2008 in General
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

Comments

  • edited February 2008
    Hi Nick,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2008
    Thank you.

This discussion has been closed.