>I'm sure I have read the answer to this somewhere on the thread before, but I can't find it anywhere. So, here goes:
>
>How do I change the default printers paper orientation to landscape/portrait via an API call?
>
>I am creating simple reports with a CREATE REPORT command, and I have tried altering the ORIENTATION= expression in the EXPR field of the FRX, but this is no good, as the .FRX created by the CREATE REPORT command sets fields out based on the current default paper orientation, so I need the default to be Landscape before I actually create the report.
>
The API call is SetPrinter(); it's not a trivial undertaking to implement, though. I've been playing with implementing it using CLSHEAP to handle the PRINTER_INFO_2 strucutre, which contains a pointer to a DEVMODE strucutre, which controls basic printer setup parameters.
Since your concern is about a design-time tool, why not just use the Page Setup dialog under the File menu to do this, or access the dialog through the Shell.Application ControlPanelItem method to launch the Control Panel applet?