FS

Hi guys.

 

I want to know how can I do a page break after a graphic in a report made by scripts.

If anyone know, please help me!

 

Thanks for the attention.

by Abhijit Das
Posted on Wed, 12/14/2011 - 02:32

Hi felipe,

You will find all the information in Report Class output

Here is the sample code (code view is giving me some problem). This is to be run on model context

function main(){
    var File = Context.createOutputObject();
    //This is model graphic
    File.OutGraphic( ArisData.getSelectedModels()[0].Graphic(false, false, Context.getSelectedLanguage()), -1, 200, 200 );
    //This is new page
    File.OutputField(Constants.FIELD_NEWPAGE, "Arial", 9, Constants.C_BLACK, Constants.C_WHITE, Constants.FMT_CENTER);
    //This is a line
    File.OutputTxt("This is in the new page");
    //This is finalizing the output
    File.WriteReport(Context.getSelectedPath(), Context.getSelectedFile());   
}
main();

 

Thanks

Abhijit Das

abhijit.das@cba.com.au

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
  • SS
  • MZ
  • Profile picture for user kbiront
  • Profile picture for user Tony Iliev
  • Profile picture for user amandeep.7.singh
  • PacMan

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