Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
444
How to know if print is cancelled?
posted

I am using UltraWinGrid's print() method to print the grid rows. But when the statement grid1.Print() is executed a dialog box with a cancel button appears for few seconds. If I click cancel on that dialog, is there is a way to know if that cancel button is clicked or not clicked. This is because I wanted to display a success message if printed or print cancel message if orint is cancelled.


Thanks,

Sindhu

  • 469350
    Suggested Answer
    Offline posted

    Hi Sudhu,

    I took a look and I don't see any way to do this. That dialog with the cancel button does not come from the grid directly, it's coming from the PrintDocument. And the PrintDocument class does not appear to expose any way to detect when the printing is cancelled.