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.
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.
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