Unable to set the report column $left more than the value 75

Barnett, David dbarne04 at harris.com
Thu May 3 09:00:24 EDT 2012


>I am  creating a landscape report which prints horizantaly.
>The controls are moved dynamically during runtime but i was unable to set
>the $left property of control more than 75.
>
>OMNIS Studio verion used is v4.3

Studio 4.3 can print a report 8 pages wide of whatever the page type is
that is set in the Page Setup for the report. But you need to push the
fields out there during runtime.

To push a report field out to the right as far as you can you need to turn
on the report's $horzpages property and add code to
the report fields $print method:

First, add a Field reference parameter to the field's $print method, I
called it prPos. This parameter points to a row var that Studio offers
that has columns for the position of the field being printed (top, left,
etc) plus a few other interesting items about it. You can read the values,
and since it is a field reference parm type you can change them to tell
Studio where to actually place the field this time around. Here's code for
the field's $print method that will check the paper type and push it way
out for Tabloid size pages and push it out as far as possible for standard
Letter Size paper. These values will push the field out to the right of
the 8th page wide, the widest Studio 4.3 handles. I'm using centimeters:


If $cinst.$paper=kPaTabloid
  Calculate prPos.$left as 325     ;; Landscape Tabloid
Else
  Calculate prPos.$left as 205     ;; 205 for landscape letter size.
End If
Do default 



The 'Do default' is critical. It tells studio to actually print the field.
Without it you won't see the field printed on the report.



David Barnett 
Software Design Engineer
Advertising Solutions Group
Harris Corporation, Inc.
dbarne04 at harris.com
w: 212-303-4273 



>




More information about the omnisdev-en mailing list