Specific margins for the 1st page only (not other pages)
Posted: Thu Oct 30, 2014 8:53 am
Hi,
I use a TScaleRichViewEdit (v6), with header+footer for the 1st page (PageProperty.TitlePage := True).
I would like to have specific margins for my 1st page (differents than other pages margins), programmatically.
I couldn't find how to do that, couldn't found any property (setmargins for Page 1 only)
Any idea ?
Example of what I want to do...
[Page 1]
Margins (left, top, right, bottom): 10mm 20mm 20mm 20mm
Header specific : text header 1st page
Footer specific : text footer 1st page
[Page 2,....n]
Margins (left, top, right, bottom): 10mm 15mm 10mm 15mm
Header normal : text header
Footer normal : text footer
The only idea I had was : because I have a 1st page header specific, maybe I can write in it (addtexnla, addnla , ... in SubDocuments[srvhftFirstPageHeader]) until I have the height I need for my page 1 top-margin (= header 1st page Height, in my case)... but could manage how to check the height
Thanks in advance for your help, guys.
++
SylvainL
I use a TScaleRichViewEdit (v6), with header+footer for the 1st page (PageProperty.TitlePage := True).
I would like to have specific margins for my 1st page (differents than other pages margins), programmatically.
I couldn't find how to do that, couldn't found any property (setmargins for Page 1 only)
Any idea ?
Example of what I want to do...
[Page 1]
Margins (left, top, right, bottom): 10mm 20mm 20mm 20mm
Header specific : text header 1st page
Footer specific : text footer 1st page
[Page 2,....n]
Margins (left, top, right, bottom): 10mm 15mm 10mm 15mm
Header normal : text header
Footer normal : text footer
The only idea I had was : because I have a 1st page header specific, maybe I can write in it (addtexnla, addnla , ... in SubDocuments[srvhftFirstPageHeader]) until I have the height I need for my page 1 top-margin (= header 1st page Height, in my case)... but could manage how to check the height
Thanks in advance for your help, guys.
++
SylvainL