OI7 and OIPI (Margins) (OpenInsight 32-bit Specific)
At 19 JUN 2004 01:50:53PM Richard Channer wrote:
Hi folks,
I have just installed OI7 and applied 7.0.1 straight away. All seems well, except that when I print, my margins seem not to be applied. I have tried both the margin parameters of the INIT command, and also set_printer('MARGIN') and both are ignored…
Any sugestions?
Rich
At 19 JUN 2004 11:36PM Donald Bakke wrote:
Rich,
Perhaps you should post your code. Margins have always been working for us in 7.0.x. Was this code working in pre-7.0.1?
dbakke@srpcs.com
At 22 JUN 2004 10:31AM Richard Channer wrote:
Hi Don,
I did not test it in v7, as I patched straight to 7.0.1… It works fine in v4.13 however.
Even this simple peice of event code produces the error (no margins):
declare function set_printer, get_printer
* Start Printer
title=Test Report"
* A4 - 1/2 inch margins all round
paper=0.5 :@vm :0.5 :@vm :0.5 :@vm :0.5 :@vm :@vm :@vm :9
params=4 :@vm :0 :@vm :0 :@vm :0 :@vm :1 :@vm :7 :@fm :'-1'
* try margin command also
error=Set_Printer("MARGIN", 0.5:@fm:0.5:@fm:0.5:@fm:0.5)
error=set_printer('INIT', title,
, paper, 0 :@fm :4, params,
,) error=set_printer ( "ADDTABLE", '<10440",
, "hello!" ,,
, 0, 3 :@fm :'L')error=set_printer("TERM")
return 0
Rich
At 22 JUN 2004 12:20PM Donald Bakke wrote:
Richard,
There are a couple of problems with your code.
First - Your paper and params parameters need to be @FM delimited and not @VM delimited.
Second - Your INIT message is specifying twips as the unit of measurement to use. Accordingly, when you use .5 as a margin size you are actually saying "I want my margins to be one-half a twip" rather than "I want my margins to be one-half an inch".
dbakke@srpcs.com
At 22 JUN 2004 08:43PM Larry Deibel wrote:
We have the same problem. Code that prints correctly in 4.1.3 is way off when using 7.0.
At 23 JUN 2004 07:29AM Richard Channer wrote:
Don,
Thanks for your help - changing @vm to @fm and 0.5 to 720 gives the expected results. Bizarre that the previous code pasted into v4.13 works fine though!
Cheers, Rich