We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

select printer

MarcoHelmers
MarcoHelmers asked
on
Medium Priority
238 Views
Last Modified: 2013-11-20
In my program I want to use a certain printer and the user should not be able to select one in the dialog. I want to do this in the sourcecode. I know how to disable the dialog but how about the printer selection ?
Comment
Watch Question

Commented:
How To Get and Set the Default Printer in Windows
http://support.microsoft.com/support/kb/articles/q135/3/87.asp 

How to Set the Default Printer Programmatically in Windows 95
http://support.microsoft.com/support/kb/articles/q140/5/60.asp 

Author

Commented:
Both pages you mentioned only refer to setting the default printer. What I actually want to do is to set the printer only for the document my program prints just as if you would do it in the printing dialog. How can I do that ?

Author

Commented:
If you do not know please tell me ...

Commented:
Sorry. Look into the Win32 sample "Printer: Printing". It does what you want.

Author

Commented:
Can anyone else tell me how it has to be done.
I am familiar with windows printing functions.  Question...
Does you program know what the windows name is for the printer
you are trying to print to?

Author

Commented:
Yes, I do know the windows name for the printer. Do you know what I have to do ?

Author

Commented:
Please help ...

Commented:
Look into the Win32 sample "Printer: Printing".

Author

Commented:
that answer does not content me but ok ...
if you want the points ... lock the question...

Commented:
You may wait for a while to see whether there are better answers.
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.