Direct Printing

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
 
S

SA

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top