473,499 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Changing the default printer

Hi,

I have some code that prints out a word document

but i need to be able to send this document to a specific printer

so far i have imported system.drawing.printing

and have tried this

Dim prtdoc As New PrintDocument
prtdoc.PrinterSettings.PrinterName = "my printer"

but this doesnt actually change the printer and im now completely stuck

any help with this is much appreciated

Thanks

Mike Fellows
Nov 21 '05 #1
2 1260
Hi,

http://www.windowsformsdatagridhelp....0-673c63efa8cc

Ken
-----------------
"Mike Fellows" <mi*************@equityhouse.NOSPAM.co.uk> wrote in message
news:OJ********************@giganews.com...
Hi,

I have some code that prints out a word document

but i need to be able to send this document to a specific printer

so far i have imported system.drawing.printing

and have tried this

Dim prtdoc As New PrintDocument
prtdoc.PrinterSettings.PrinterName = "my printer"

but this doesnt actually change the printer and im now completely stuck

any help with this is much appreciated

Thanks

Mike Fellows

Nov 21 '05 #2
Thanks

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:Oa**************@TK2MSFTNGP12.phx.gbl...
Hi,

http://www.windowsformsdatagridhelp....0-673c63efa8cc

Ken
-----------------
"Mike Fellows" <mi*************@equityhouse.NOSPAM.co.uk> wrote in message
news:OJ********************@giganews.com...
Hi,

I have some code that prints out a word document

but i need to be able to send this document to a specific printer

so far i have imported system.drawing.printing

and have tried this

Dim prtdoc As New PrintDocument
prtdoc.PrinterSettings.PrinterName = "my printer"

but this doesnt actually change the printer and im now completely stuck

any help with this is much appreciated

Thanks

Mike Fellows

Nov 21 '05 #3

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

Similar topics

2
2578
by: Jody Burgess | last post by:
Hi; I am writing my first python program and would like to know how to change stdout to refer to my default printer or any other printer on my network. The other question is, Is there an API set...
16
48822
by: cyranoVR | last post by:
This is the approach I used to automate printing of Microsoft Access reports to PDF format i.e. unattended and without annoying "Save As..." dialogs, and - more importantly - without having to use...
6
10458
by: Ioannis Demetriades | last post by:
Hi, I need to change the printer's font to "control" -a printer font, and then send a sequence of characters to the printer. My problem is that I cannot change the printer's font. Can this be...
0
1850
by: Anthony Nystrom | last post by:
I am having trouble with changing printer settings before I raise either the pagesetup dialog or the print preview dialog... Changing the printer name is easy, but I am also trying to change the...
3
8502
by: Rick R | last post by:
We need to change the paper size for the default printer before printing a PDF file from within a VB.Net application. printDocument printerSettings is not appropriate as there is no document to...
2
11055
by: ExitusLSU | last post by:
Is there a way to change the DEFAULT printer settings for an installed printer? I want it to change the printer settings for a specified printer at the whole OS/Windows level, not just for the...
3
2118
by: Panos | last post by:
Hi all, I am trying to print a report in A4 paper, but my printer's default paper is different (Letter 8.5 x 11 inches). So when i print, a significant part of the paper remains blank, because of...
0
934
by: Panos | last post by:
Hi all, I am still trying to print a report in A4 paper, but my printer's default paper is different (Letter 8.5 x 11 inches). So when i print, a significant part of the paper remains blank,...
9
27916
spider1916
by: spider1916 | last post by:
I am using the common dialog control to allow my users to select any printer available to them. The code I am using keeps changing the selected printer to the default printer............I don't...
8
19079
by: ncsthbell | last post by:
Is there a way to change my default printer using vb? I have some reports I want to print to a certain printer and some to a different one. I have a routine that loops through all of the reports to...
0
7169
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
7215
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
7385
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4917
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4597
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3096
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1425
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
661
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
294
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.