How change papersize programmatically?
Posted on 1997-09-15
I'm developing a database-application, in which I wanna make printouts on any papersize supported by the printer. My question is this:
The user of the application has told the program that he/she wants a report written on portait-orientated A4-sized paper (210 * 297 mm). How do I change the printer's papersize programmatically, if it's not set to the requested size? I don't want to tell the user to open up the "Printer Setup" dialog,
I wanna do it totally automatic. I can solve the orientation bit, but how do I change the papersize?
I'm using Delphi 2.0.
Thanks for your help!!
//Daniel Persson, Malmoe, Sweden