Printing a file in VBA - TechRepublic
Question
December 7, 2010 at 12:22 PM
slayer_

Printing a file in VBA

by slayer_ . Updated 15 years, 6 months ago

So in the program, I need to send a document (In this case an HTML document, but this could change in the future or be expanded on) to an imaging printer to be printed, wait for the conversion to finish, the grab the file and use it.

I know where the image will go, but how do I tell it to print something and which printer to print to.
Or do I need to create an instance of a browser object and tell it to navigate to that file, then tell it to print?

When I try searching online, all I find is something about a global printer object, but there is no global printer object or collection in our environment.

The solution cannot show the printing dialog, and the printer being printed to will not be the default printer.

Help?

This discussion is locked

All Comments