Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending documents to the printer

Status
Not open for further replies.

bpeirson

Structural
Joined
Apr 7, 2003
Messages
147
Location
CA
I am trying to find a way to send an image file to my printer when its name appears in a cell in an Excel spreadsheet.

I would like to avoid inserting the image into the spreadsheet and then printing it.

Any help or suggestions are appreciated.

I would also appreciate help with keywords to search the help files for.
 
You have file name stored in Excel, you can activate the computers imaging software (Paint if .BMP) then you can call Paint's print function from VB.

Check out for downloadable examples.
 
Thanks, I have also added the Microsoft Office Document Imaging (MODI) library to my VBA editor.

My skills with VBA are primarily focused on Excel so I would still appreciate any input using other applications.
 
IrfanView is a freeware image viewer with command line capabilities. You could build a command line string to print the file through IrfanView and run the string with a wsh.shell object.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top