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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing Automatically

Status
Not open for further replies.

Mighty

Programmer
Feb 22, 2001
1,682
US
I use the following command to print an Excel chart:

xlApp.Charts(chartList(i)).PrintOut 1, 1, 1, false

However, I would like to print to a specific printer but I can't get it to work. The printer in question is on the network and the network path is \\balloonrm2\canonpix. The name of the printer on my PC is Canon PIXMA iP5000.

I have tried both of these options as the printer name with it still prints to my default print. can anyone tell me how to get around this.

Mighty
 
Phil,

Thanks for the suggestion. That's how I got around it but it wasn't the ideal solution as the printer is nowhere near me and I kept printing my own documents to it by accident. I actually finally got the solution. Had to use the UNC path with the full name of the printer and not the share name:

xlApp.Charts(chartList(i)).PrintOut 1, 1, 1, false, "\\balloonrm2\Canon PIXMA IP5000"

Mighty
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top