Hai to everybody

I made a project in vb6. It have reports in several sizes of reports. When I go for printing the papersize of the printer is only changed when using "Printer Setup" command. At the run time it opens a window and I have to change the paper to custom size, width and height.

I know itis possible to change at runtime. i have made a database for each reports with its sizes (Width and Height).

Can you help me how to change the papersize with the database automatically.

Advanced thanks who will ready to help me