Results 1 to 2 of 2

Thread: WPF PrintDialog trivia question: What did the user click?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2016
    Posts
    106

    WPF PrintDialog trivia question: What did the user click?

    My understanding of the dialog box is to collect input from the user. Therefore my understanding of a print dialog would be to figure out which printer the user selected for the proceeding print job.

    When I try to custom make a fixed document and then try to print that document to the printer that the user selected for the print operation using the PrintDialog class, the class does not seem to collect that information for me.

    I have a combo box that I made that loads printer names into it and whatnot, but the built in dialog has all that stuff like printing page selection, number of copies, preferences etc..

    How can I get the name of the printer the user click on in the print dialog popup?

    Thanks

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Mar 2016
    Posts
    106

    Re: WPF PrintDialog trivia question: What did the user click?

    Nevermind, I am am moron.

    I had a spot in my code where I was instantiating a new printdialog with the same variable name thus defaulting everything.

    printdialog.printqueue.fullname contains the name of the selected printer.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width