Direct Printing

  • Thread starter Thread starter Norbert
  • Start date Start date
N

Norbert

Hi,

I have to send bytes generated within VBA Code directly to
a printer. Actually I am using code like this:

....
Open "LPT1:" For Binary Access Write As #1
....
Put #1, , CByte(VBAGeneratedValue)
....

This only works with a printer connected directly to the
local system.

Now the user should be able to select a network printer
for this operation. Does anybody know how to manage this
within VBA??

Best regadrs

Norbert
 
Norbert:

You need to map the network printer to an LPT port. You can do this using
the Net Use command from the command line to do this. Do a google search
on Net Use and printer.
 
Back
Top