Hi all
How can I print thro' a network printer, If I'm using dos printing.
eg:-
open 'LPT1' for print (Not sure ab't the sysntax)
print# "Hello World"
what change should I make for that?
please help
Printable View
Hi all
How can I print thro' a network printer, If I'm using dos printing.
eg:-
open 'LPT1' for print (Not sure ab't the sysntax)
print# "Hello World"
what change should I make for that?
please help
I mean
open 'LPT1' for output as #1
print#
:)
I'm confused.
Are you writing a vb program, or are you opening up a program written in dos and trying to print, or are you trying to do something from the command prompt.
please specify.
of course I'm writing a vb program.
I just wanted to print a bill.
It was working fine when it is connected to a local printer.
But it goes hanging when try to print in a networkprinter.
thanks for your response Dalceon
post some code, or give me more info on the line for which it is hanging up on.
In theory printing to a network printer shouldn't be any different from a local printer.
are you using hte printer object??
But I'm using the code
open 'LPT1' for output as #1
So I think the system trying to open Local printer port.
may be I should change LPT1 to something else
use the printer object instead.
printer.print #
means no way while using 'open' method?
please help, because I already wrote the code
please
In theory there is a way.
You can redirect lpt1 to a network printer.
if you use shell and do:
net use lpt1 \\someserver\someprinter
then anyprinter that is setup to use lpt1 will print to the network printer instead.
I'm not sure how it would work in your situation.
I would try the redirection, then use your code and see what happens.
thanks Dalceon,
It works fine while using the network path. I just iterated the device names of 'Printer' object and used it.
thanks again