How to print to selected printer and selected tray?

Hi everyone, and thank you for your interest in my question, and any help that you may be able to offer.

I have not done any programming in about 20 years, I just purchased a book on VBA, "Automating Solidworks 2012 Using Macros". And also will start reading other VBA information. My main automation language was LISP.

My need is to create a macro, that can send the print to the selected printer, and to the selected printer tray. A modification of the same macro, or in the same code, have the ability to select the plotter and set the needed paper options, size, rotation, etc. My thoughts are to create a toolbar with buttons for each specific printing device and paper size.

I realize that for a novice, this is a very ambition task, but I was hoping that someone may be able to share code with me, or a complete macro that has some of these features coded already in it. I would like to read and learn from the code. What I would like is code to get the device information. I tried to record a macro while setting up the options, but it doesn't seem to record the printer/plotter setttings.

Again, your help is greatly apreciated.

Hector

SolidworksApi macros