Need to use VBA to print to default printer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Good afternoon,

I am using a module to print a list of documents, but I need to know a VBA
command to print documents to any computer's current default printer. Any
suggestions? Thanks

Cordially
 
If you have Word documents, you would tell Word to open and
print the documents. Is that what you wish to do?

The BASIC print commands print to the screen or a file, not
to a printer. BASIC can also write to a printer port.

Those commands all send text, because that is what BASIC did.

Are your 'documents' simple text files? Are your printers simple
text printers? If not, you will need to have a program that will
render the 'document' into a format that your printers can understand.
There is no simple VBA command that can do that. Instead, you can
use the Windows API to convert text to a printer format, but you
will need to use a program that understands your documents if they
are not simple text files.

(david)
 

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

Back
Top