473,394 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Setting the printer without using PrintDialog

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!


Jul 21 '05 #1
3 2472
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.
--------------------

Jul 21 '05 #2
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/de...us/cpref/html/
frlrfsystemdrawingprintingprintersettingsclasstopi c.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.

Jul 21 '05 #3
Your suggestion worked a treat!
Thanks very much for your help.

"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:9B**************@cpmsftngxa07.phx.gbl...
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/de...us/cpref/html/ frlrfsystemdrawingprintingprintersettingsclasstopi c.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.

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Vlki | last post by:
Hello, I can't find a way to send printer specific language codes to printer. Part of my code : String sString = "B50,0,0,3,1,2,50,B," + "12345678901234567890"; Font fFont = new Font("Arial",...
5
by: Paddy | last post by:
Is it possible to send (char)12 to the printer to make it eject? If so, how can that be done? If not, how can a page be ejected differently? Many thanks.
1
by: Darrell Wesley | last post by:
Is there anyway to hook the PrintDialog to the printer icon on the PrintPreviewDialog? I know that you can print a document using the PrintDialog but it does not allow previewing and the...
3
by: Mika M | last post by:
Hi all! I have made an application for printing simple barcode labels using PrintDocument object, and it's working fine. Barcode printer that I use is attached to the computer, and this...
6
by: John O'Neill | last post by:
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...
0
by: hamil | last post by:
I have a graphic file demo program that almost works. My form has a PageSetupDialog, PrintPreview, PrintDialog, and a PrintDocument control. Sample code follows. Now here is the quesion. When I...
0
by: Fabio | last post by:
Hi all! I have some problems with the PrintDocument under Fw 1.1. I create a new document pd = new PrintDocument And it seems that the pd.PrinterSettings are the ones defined by the...
0
by: Academic | last post by:
I posted this in the vb group but it is a pretty esoteric question and I did not get a reply. I'm hoping someone here has some experience generating custom printer forms. If I generate a new...
0
by: Paul Bromley | last post by:
Can anyone help with this one, as there is little information on the web. I am using the DSOFramer control in a labels program to host Word documents. I am having great difficulty in setting the...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.