views:

261

answers:

1

How to change the default paper size in windows programmatically?

+2  A: 

Take a look at the dmPaperSize member of the DEVMODE member of the PRINTER_DEFAULTS structure passed to OpenPrinter.

Here's a code sample.

Matthew Murdoch