How can I edit the Aris report on its header to insert an image or change its position or delete it?
Hello Nauval,
if you want to customize a standard report you should duplicate the script to avoid it being overwritten by a future Aris update.
The report "Create process manual" uses setReportHeaderFooterWithTitle() from the language dependant atsall<LocaleID>.js library in /Common Files/. From there the header images are included in the report ouput using:
// graphics used in header
var pictleft = Context.createPicture(Constants.IMAGE_LOGO_LEFT);
var pictright = Context.createPicture(Constants.IMAGE_LOGO_RIGHT);
...
outfile.OutGraphic(pictleft, - 1, 40, 15);
...
Constants.IMAGE_LOGO_LEFT / _RIGHT are resolved to the path of SAG's logo files under /Common Files/ according to the selected report ouput format.
If you want to use your own images upload them to /Common Files/ and include them with a copy of the corresponging code from atsallen.js in your custom script referencing them by file name:
var pictleft = Context.createPicture("myLOGO_LEFT);
See Script Help for details.
Regards, Martin