How to identify user clicks on Cancel button in pdfcreator print dialog? or disable the Cancel butto

I am trying to identify if the user clicks on "Cancel button" in the pdfcreator print dialog. Can any body help?

Why? What do you want to do?

I am developing an application using .net that lets the user to print a doc to pdfprinter in two modes,

1. Using AutoSave option where user will not be shown pdfprinter print-dialogue

2.With autosave option -where the user will be able to preview through pdfprinter printdialog . Now when the user clicks "OK" on pdfprinter printdialog, i have no issues as the doc gets printed to pdfprinter. But when the user clicks "Cancel" button, i am unable to determine it. There is a piece of .net code that keeps checking if the pdf file is created or not without knowing "Cancel" is clicked.

Please let me know how do i know that "Cancel" button is clicked so that i could skip checking for pdf file.

 

Any updates on this?