PDA

View Full Version : Chaning margin size



Anonymous
09-24-2002, 05:08 PM
How can I change the right and top margin sizes for a report in the xml?

Anonymous
09-25-2002, 02:14 PM
Hi,

the report tag does understand some new attributes:

pageformat : one of the predefined pageformats like "A4" "A5" "LETTER" etc. Have a look at the constants in the PageFormatFactory or the DTD for all defined formats

leftmargin, rightmargin, topmargin, bottommargin : Defines the margins in Pixels, 72 of them define an inch.

width, height : an alternative way to define the pagesize, defines the size in points.

orientation: "portait" or "landscape"

Have more fun,
said Thomas

Anonymous
09-25-2002, 02:48 PM
See my xml below...

<report name="D_ADDRESS_LISTING_AC" width="950" height="600" minpageformat="LEGAL" orientation="landscape">

The report still appears as LETTER NOT LEGAL. What am I doing wrong?

Anonymous
09-25-2002, 03:17 PM
Hi,

not minpageformat, this is no valid attribute. If was once defined, but never implemented. The corrcect attribute name is just "pageformat".
Try this:

<report name="D_ADDRESS_LISTING_AC" pageformat="LEGAL" orientation="landscape">

When you give a pageformat you don't need to set width and height. If both pageformat and with + height are given, the pageformat is preferred and the width and height are ignored.

Have more fun,
said Thomas

Anonymous
09-25-2002, 04:04 PM
Still not working for me...The report is still appearing as LETTER not LEGAL....I am using version 0.7.5.

Any ideas?

Anonymous
09-30-2002, 12:48 PM
Hi,

this feature was introduced in version 0.7.6, so in 0.7.5 you wont' see anything ...

Have more fun,
said Thomas