Home
PHP
Application
Php Manual
Pictures
GuestBook
 
 
  Introduction Dlog Aprint SpTpl 
  Yap Xml2Array

 

 

 
 
 
Tag Index

<!ELEMENT margin (top?, bottom?, left?, right? )>

Set the margins

 

Parent:

report
 

Childs:

top
bottom
left
right
 

Attributes:

 

Note:

The measure unit used to set the margins changes depending on the PageManager used.
The CPageMgr uses the char as measure unit for left and right margins. So set the left margin to 3 meaning set 3 spaces before the text. The class use the numer of row for the top and bottom margins. So set the top margin to 3 meaning write the first text in the fourth row.
The CPagePrinter uses the twip unit of measure for all margin. So set the left margin to 10 meaning start the row 10 twip (or 0.00694 inch, or 0.1764 mm) from paper left border.

 

Examples:

Example of margin
<margin>
  <top>2</top>
  <bottom>4</bottom>
  <left>3</left>
  <right>3</right>
</margin>

 

Copyright © 2003-2008 Darvin Andrioli, last change 25/09/2003