Changing the default printer

M

Mike Fellows

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
 
K

Ken Tucker [MVP]

Hi,

http://www.windowsformsdatagridhelp.com/default.aspx?ID=694ce28d-4551-40c8-a0a0-673c63efa8cc

Ken
-----------------
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
 

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