OIPI GetPrinter ORIENTATION OIV7.2 (OpenInsight 32-Bit)
At 14 NOV 2005 12:15:08AM David Goddard wrote:
Trying to capture the page orientation of the printer. Here is the senario:
1. Printer's orientation as set by selecting Start/Printers and Faxes and then the printer from the XP Start Menu is set to Portrait.
2. From OI I run a program that generates a report. I call UTILITY("PRINTSETUP") to allow the user to choose which printer they want to print to. They can also change the page Orientation from this window. The user changes the orientation to Landscape.
3. I then call GET_PRINTER("ORIENTATION") to get the current printers Orientation. This returns a 0 (Portrait), even though the user changed the Orientation to Landscape in the PRINTSETUP window.
4. If you call the PRINTSETUP window again, it will default to Landscape mode, so it knows that the user has changed the orientation, GET_PRINTER does not pick this up. If you look at the page orientation in the Printer setup window (from step one above) it will tell you that it's set to Portrait.
Is there any way to pick up this temporary change to the page orientation?
Thanks
Dave G
At 14 NOV 2005 08:02AM Bob Orsini wrote:
Dave, once you do an init in OIPI the OIPI session will use the paramters used at that time. If you are changing the options via the printersetup command you can not use these changes for OIPI. Not sure why you would start OIPI and then change the orientation. Orientation should be one of the init parameters. If you want the user to select the option then use '1' in the init command to allow user to selelct the options.
At 14 NOV 2005 06:26PM David Goddard wrote:
G'day Bob,
This is for ADP. They arn't using OIPI. They are creating a text file which they preview to the screen through there own window. Then the user has the option to print the report. This is when they display the PRINTSETUP window and change the orientation.
Is there any way to pick up this change?
Thanks
Dave G