Printing to Network Printer
Printing to Network Printer
(OP)
Hi,
How do I print to a network printer from my VB program? I am using the Open statement to open the network port for Output followed by a Print statement to the file handle for the network printer. However, the print job was not printed. How do I go about doing this? The method does work for my local printer. Any help will be greatly appreciated.
How do I print to a network printer from my VB program? I am using the Open statement to open the network port for Output followed by a Print statement to the file handle for the network printer. However, the print job was not printed. How do I go about doing this? The method does work for my local printer. Any help will be greatly appreciated.
RE: Printing to Network Printer
I saw an example somewhere in the book
dim x as printer
x = thenetwork printer
set printer = x
RE: Printing to Network Printer
RE: Printing to Network Printer
Thanks for the replies. Am I right to say that in the reply by hug, "thenetwork printer" refers to the network printer name?
How do I ensure that the printer do not format the text at all. I want to print some files which must not be formatted at all. That is, the output must look like that printer in DOS mode!
Once again, thanks.