Setting the printer without using PrintDialog

J

John O'Neill

Hi

In C# I would like to be able to set the printer device for printing a
document without using the PrintDialog. I am writing a pocket pc application
which uses a web service to print. I can only make the web service print to
the default printer installed on the web server, and need a way to allow
each pocket pc device to print to a different printer attached to the web
server running the web service. As far as I can tell, the only way to change
the printer on the fly is by using a PrintDialog. Obviously I can't have a
PrintDialog on an unattended web service and really need to find an
alternative solution to this problem.

Help would be much appreciated!
 
G

Gary Chang

Hi John,

Thanks for using Microsoft MSDN Managed Newsgroup.

Currently I am looking for somebody who could help you on it. We will reply
here with more information as soon as possible.
If you have any more concerns on it, please feel free to post here.


Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
T

Tian Min Huang

Hello John,

Thanks for your post. As I understand, you want to set the printer without
prompting a Print dialog. Please correct me if there is any
misunderstanding.

I suggest that you can use the PrinterSettings() class which has a
PrinterName properly which specifies the printer to print to. Please refer
to the following MSDN article for detailed information:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemdrawingprintingprintersettingsclasstopic.asp

Please feel free to let me know if you have any problems or concerns.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top