-
Sep 16th, 2019, 02:23 PM
#1
Thread Starter
Lively Member
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
-
Sep 16th, 2019, 03:07 PM
#2
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|