I have created a print button in my windows and web applications. I have two
printers. One printer is located at server and another one is at client. The
problem is every times I print at client it will spool to my server printer.
I wanted to force print directly to my client's local printer. Could anyone
show me vb.net codes to solve this problem?

Re: Force Printing to a printer based on the given printer name by hirf-spam-me-here

hirf-spam-me-here
Tue Nov 11 05:42:16 CST 2003

* "Samuel Lee" <neosamz@hotmail.com> scripsit:
> I have created a print button in my windows and web applications. I have two
> printers. One printer is located at server and another one is at client. The
> problem is every times I print at client it will spool to my server printer.
> I wanted to force print directly to my client's local printer. Could anyone
> show me vb.net codes to solve this problem?

You may want to let the user select the printer:

<http://www.mvps.org/dotnet/dotnet/samples/printing/downloads/PrintFramework.zip>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>

Re: Force Printing to a printer based on the given printer name by Samuel

Samuel
Tue Nov 11 19:30:05 CST 2003

I have to print directly to the selected printer without the printer dialog
box. I'm not printing a report. I'm printing a receipt after a sales
transaction. For speed wise, I do not allow printer dialog box to appear.
Any idea?

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:boqi01$1gl9ol$2@ID-208219.news.uni-berlin.de...
> * "Samuel Lee" <neosamz@hotmail.com> scripsit:
> > I have created a print button in my windows and web applications. I have
two
> > printers. One printer is located at server and another one is at client.
The
> > problem is every times I print at client it will spool to my server
printer.
> > I wanted to force print directly to my client's local printer. Could
anyone
> > show me vb.net codes to solve this problem?
>
> You may want to let the user select the printer:
>
>
<http://www.mvps.org/dotnet/dotnet/samples/printing/downloads/PrintFramework
.zip>
>
> --
> Herfried K. Wagner
> MVP · VB Classic, VB.NET
> <http://www.mvps.org/dotnet>
>
> <http://www.plig.net/nnq/nquote.html>