Additional help on Printing

V

Valeria Galvano

Hi,
when I use the System.Diagnostics.ProcessStart to send to a printer a
document that need to be printed, is possible to set a printer that is not
the default printer? (see the code below posted for me from Herfried K.
Wagner )
Thanks in advance
Valeria

\\\
Dim p As New System.Diagnostics.ProcessStartInfo()
p.Verb = "print"
p.WindowStyle = ProcessWindowStyle.Hidden
p.FileName = "C:\filename.pdf"
p.UseShellExecute = True
System.Diagnostics.Process.Start(p)
///
 
V

Valeria Galvano

Thank you, I think is not very easy to translate in vb.net for me!
But is possible to apply something like the PrinterName property on
System.Drawing.Printers?
I would only send the document to a printer different than the default one,
maybe simply indicating the name.
Regards
Valeria
 
H

Herfried K. Wagner [MVP]

* "Valeria Galvano said:
Thank you, I think is not very easy to translate in vb.net for me!
But is possible to apply something like the PrinterName property on
System.Drawing.Printers?
I would only send the document to a printer different than the default one,
maybe simply indicating the name.

I don't think that there is an easy solution.
 

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