Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

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:0
ORIENT_FLAG=(ORIENTATION=L")
PRINTFILE="
PRINTSETUP="
PAGETITLE="
PAGETITLE=Printing ":ITEM:"..."
PAGETITLE=Preview of ":ITEM
PAGEINFO="
PAGEINFO=MARGIN
PAGEINFO=MARGIN
PAGEINFO=MARGIN
PAGEINFO=MARGIN
TEST_FILE=FILE_NAME
CONVERT @LOWER_CASE TO @UPPER_CASE IN TEST_FILE
IF COUNT(TEST_FILE,".PDF") THEN
	PRINTFILE=6
	PRINTFILE=FILE_NAME
	PRINTSETUP=5
	PRINTSETUP=1
END ELSE
	PRINTSETUP=STYLE
	PRINTSETUP=0
	PRINTSETUP=1
	PRINTSETUP=7
	PRINTSETUP=USER_PARAMS
END
CALL ICEPAC_GET_PRINTER(PRINTER)
IF STATE=" OR STATE=I" THEN
	IF OIPI_STARTED=0 THEN
		ERROR=SET_PRINTER("INIT",PRINTFILE,PAGETITLE,PAGEINFO,ORIENT_FLAG,PRINTSETUP,PRINTER)
		ERROR=SET_PRINTER("LINESTYLE",LINE_STYLE:@FM:LINE_THICK)
		OIPI_STARTED=1
	END
END

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.

[email protected]

SRP Computer Solutions, Inc.


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.

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/07cee3f65356175e8525767b000f783f.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1