Home All Groups Group Topic Archive Search About

Printing over network...

Author
16 Jun 2006 5:04 PM
frank@sinatra.com
Hello,

I am developing an vb.net app which needs the functionality to print a report to a specific printer on the network.
Can't seem to find much information concerning this. How do I go about:
1. Finding the printer on the network: Will simply using the Printer Name work? or, can I use a specific ip address?
2. Do I need to print to a file first, and then setup a tcp connection with the printer and send it the file?
I need this to function invisibly to the user. In other words, the user selects the Print btn, and based on the report, the app will select
the appropriate printer and print to it.

Any help will be greatly appreciated.

Thanks,

Frank
--
----------------------------------------------
Posted with NewsLeecher v3.5 Beta 1
* Binary Usenet Leeching Made Easy
* http://www.newsleecher.com/?usenet
----------------------------------------------

Author
16 Jun 2006 9:36 PM
Chris
fr***@sinatra.com wrote:
Show quoteHide quote
> Hello,
>
> I am developing an vb.net app which needs the functionality to print a report to a specific printer on the network.
> Can't seem to find much information concerning this. How do I go about:
> 1. Finding the printer on the network: Will simply using the Printer Name work? or, can I use a specific ip address?
> 2. Do I need to print to a file first, and then setup a tcp connection with the printer and send it the file?
> I need this to function invisibly to the user. In other words, the user selects the Print btn, and based on the report, the app will select
> the appropriate printer and print to it.
>
> Any help will be greatly appreciated.
>
> Thanks,
>
> Frank


Usually the printer will be setup as a printer on the PC and access it
that way.  Is there a reason the printer can not be setup on the pc?  If
you get it setup, then you can use the printdocuement and reference the
printer by name.
Author
16 Jun 2006 8:02 PM
frank@sinatra.com
The only reason we were trying to print over the network was for setup reasons. Seems it would be easier, from a deployment standpoint, to
just point to the printer over the network and print to it. However, setting up the printer to the pc and ref'ing the name is a viable
option.
Let me ask this: if I reference that printer by name and another printer is set as default, do I have to change the default printer? I have
tried referencing by name and it always seems to point to the default printer (even if I put in a non-existent name in
prindocument.printersettings.printername).

Thanks for the help!!! Any sample code, by chance?

Frank


Usually the printer will be setup as a printer on the PC and access it
that way.  Is there a reason the printer can not be setup on the pc?  If
you get it setup, then you can use the printdocuement and reference the
printer by name.
--
----------------------------------------------
Posted with NewsLeecher v3.5 Beta 1
* Binary Usenet Leeching Made Easy
* http://www.newsleecher.com/?usenet
----------------------------------------------