Controlling IE Printer Orientation
Posted on 2005-05-02
So what I need is complete control over Printer orientation and printquality. I can set the Margins for each doc using the MAIN/PAGESETUP registry settings, and although I noticed Orientation as a subkey in some posts here on Experts-Exchange it is not present on my system and creating the subkey appears to have no effect. I also have found changing settings for VB's printer object prior to invoking ExecWB OLECMDID_PAGESETUP or OLECMDID_PRINT has no effect on IE's orientation.
I experimented with css and setting the media to print but could not force the orientation to Landscape and get that to reflect in the browser's PAGE SETUP or PRINT PREVIEW. And I do not believe style sheets can control print quality.
Also ran into a dead end trying to use OLECMDID_GETPRINTTEMPLATE, if understand correctly Microsoft disabled this as a security problem, I could not make any sense out of their documentation. Also read somewhere you can only create Print Templates in C++, I work strictly in VB.
I can change the default printer manually from the control panel and have the new orientation affect the browser, but I need to that programatically or in the registry prior to the user activating the print functions.
Any help? Hope the question is fairly clear, if not I can provide more details.
Thanks in advance. dk