I am getting a problem in setting the paper margins, Paper Size and Paper bin in VB6. I am able to retrive the paper and paper bin and margins information using API. But I don't know how to set them using API.

My Actual problem is this:

I am displaying a Dialog for getting the information ( like Paper orientation, Paper margins, Paper such as Letter, A4, A3 etc.). Once the user selects , say LandScape, margins of 2inches on all four side and Envelope, I should be able to apply these changes to the particular printer and should also display the info with the help of Windows Common Dialog cotrol for Printer or using API.
Please Respond as Quickly as possible.

Sarma Lolla