Skip to content

Print result from dialog capture

Jose

Asked Jan 22, 2010, 6:46 AM EST1 answer
Share
LinkedInX
I'm researching to see if the result from a print dialog can be captured?  In this case, my application had a print button where the user clicks the button and sends the print job to the "default" printer set up on the client PC.  In this case the intention is to allow the print job to be printed to the "Adobe PDF" printer (which is the default printer).  I have the print feature working here.  What I want to do is get the resulting path and PDF filename from the print dialog and put that into a variable. 

Does anyone know if you can get this result from the print dialog?  I'm trying to avoid using a file watcher for this since I already have one running in this app, unless someone can confirm there shouldn't be any performance issues with 2 file watchers.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    To help clarify, I have this set up to open a print dialog.  What I want is the resulting file PDF file created from the dialog to a string variable:

         if (printDialog1.ShowDialog() == DialogResult.OK)

    How can I get the file result from the DialogResult?  Or is there a better way to do this?
    0