PO

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

by Tricarico Romain
Posted on Mon, 07/04/2016 - 13:08

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

www.bpmap.fr

0
by Peer Oltrogge Author
Posted on Mon, 07/04/2016 - 19:09

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

File attachments
0
by Anjali Devikere Prabhudev
Posted on Mon, 09/03/2018 - 12:58

Hi, I too have same query(as Peer Oltrogge), do we have the APIs to set the Page border??

I could not find the right API.

Cheers,

Anjali

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock