OIPI zoom (OpenInsight 32-Bit)
At 26 NOV 2009 09:48:58PM Colin Rule wrote:
I find when I set PrintSetup to a zoom value, eg 100%, the preview window shows 100% in the status bar, but the actual zoom is more like 200%.
Any suggestions?
OI 8.0.8
Colin
At 30 NOV 2009 08:10AM Bob Orsini wrote:
Colin, not getting the same results. What is the rest of your parameters in the init statement.
At 30 NOV 2009 04:53PM Colin Rule wrote:
My Code is below
PRINTSETUP=USER_PARAMS
this contains the zoom level as a number (no % character), or -1 or -2.
Perhaps you can advise the code you had success with.
*
* Initialise OIPI
*
MARGIN=0:@FM:0:@FM:0:@FM:0ORIENT_FLAG=(ORIENTATION=L")PRINTFILE="PRINTSETUP="PAGETITLE="PAGETITLE=Printing ":ITEM:"..."PAGETITLE=Preview of ":ITEMPAGEINFO="PAGEINFO=MARGINPAGEINFO=MARGINPAGEINFO=MARGINPAGEINFO=MARGINTEST_FILE=FILE_NAMECONVERT @LOWER_CASE TO @UPPER_CASE IN TEST_FILEIF COUNT(TEST_FILE,".PDF") THENPRINTFILE=6PRINTFILE=FILE_NAMEPRINTSETUP=5PRINTSETUP=1END ELSEPRINTSETUP=STYLEPRINTSETUP=0PRINTSETUP=1PRINTSETUP=7PRINTSETUP=USER_PARAMSENDCALL ICEPAC_GET_PRINTER(PRINTER)IF STATE=" OR STATE=I" THENIF OIPI_STARTED=0 THENERROR=SET_PRINTER("INIT",PRINTFILE,PAGETITLE,PAGEINFO,ORIENT_FLAG,PRINTSETUP,PRINTER)ERROR=SET_PRINTER("LINESTYLE",LINE_STYLE:@FM:LINE_THICK)OIPI_STARTED=1ENDEND
At 30 NOV 2009 07:55PM Barry Stevens wrote:
Have done a DEBUG after PRINTSETUP=USER_PARAMS to check the values
At 30 NOV 2009 09:37PM [email protected]'s Don Bakke wrote:
This is an old problem that goes back as far as I can remember. I seem to recall it's been posted and answered some time ago on this board. IIRC, it usually only happens during the first time an OIPI report is previewed in an OI session. Subsequent previews zoom correctly.
I have not tested this using the .NET OIPI from 9.x.
At 01 DEC 2009 07:02PM Colin Rule wrote:
Have added a DEBUG, value was set to 100, as expected.
The 100% shows in the preview window status line, so this is OK, just that the zoom is more like 200%.
I changed it to add 1 to the value, so a zoom setting of 100, passed 101, and this set the setting in the status line to 101, and the preview zoom was 101 as well, so worked as expected.
This was obviously just a test, and I cant do this normally.
Colin
At 01 DEC 2009 07:07PM Colin Rule wrote:
Subsequent previews still zoom incorrectly, so the behavioiur I am experiencing is not what you have suggested.
I cant see any posts re this.
Its not critical, so I will have to live with it.
Colin
At 02 DEC 2009 08:15AM Bob Orsini wrote:
Colin, ti code supplied starts OIPI with a hidden preview and does the init on a condition. Looks to me there is more than just starting OIPI as 100 zoom and seeing 200 print. If I use your code and replace the hidden with null in displays correctly.