By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,640 Members | 1,363 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,640 IT Pros & Developers. It's quick & easy.

Changing the default printer

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.