Hi,
do you guys know a way to define page borders around my output document (including header and footer) in the ARIS (Java-)Script Report, so I don't have to do this manually, with MS Word, everytime? I didn't found the appropriate function in the ARIS Script API.
Regards
Peer
Hi,
To create a Header and footer, use the function of the output object :
BeginHeader(); / EndHeader()
BeginFooter() / EndFooter()
To define page size and margin size, use functions :
ofl.SetPageWidth(210.10);
ofl.SetPageHeight(297.20);
ofl.SetLeftMargin(20);
ofl.SetRightMargin(20);
ofl.SetTopMargin(30);
ofl.SetBottomMargin(30);
ofl.SetDistHeader(10);
ofl.SetDistFooter(10);
All these functions must be included inside a section (ofl is the output file in the following example) :
ofl.BeginSection(false, Constants.SECTION_DEFAULT); ofl.SetPageWidth(210.10); ofl.SetPageHeight(297.20); ofl.SetLeftMargin(20); ofl.SetRightMargin(20); ofl.SetTopMargin(30); ofl.SetBottomMargin(30); ofl.SetDistHeader(10); ofl.SetDistFooter(10); ofl.BeginHeader(); //Code to write in the header ofl.EndHeader();
ofl.BeginFooter();
//Code to write in the footer
ofl.EndFooter();
ofl.EndSection();
Best Regards.
Romain Tricarico
Okay there was some kind of miss understanding, due to my bad (german influenced) english.
Actually i want to draw a side edge around my document, like you do it in technical drawings. I uploaded a picture where you can see this.
Hope somebody know's a way to do this within the ARIS Script Editor.
Thanks and best regards
Peer