Profile picture for user liju

How can i print an image on to a report which is stored in ADS by means of Document Link 1 attribute. In ARIS architect i could easily do this by the following

var document1 = p_aObjOcc[i].ObjDef().Attribute(Constants.AT_DOCUMENTATION, nLocale).getExternalDocument() 

if (document1.isValid()) {

                  

                  if ( document1.getFileExtension().search(/jpg|jpeg|png|gif|emf|tif|tiff/i) != -1 ) {

                      var img = Context.createPicture(document1.getDocument(), Constants.IMAGE_FORMAT_PNG);

                      p_output.OutGraphic(img, -1, 200, 200 )

                  } 

              } 

But unfortunately 'getExternalDocument()' doesnot work in ARIS Connect Designer. Is there any other way i can do this? Appreciate any help.

by Liju Ram Author
Posted on Tue, 06/26/2018 - 15:03

I was able to fix this. I am not posting the fix for the above issue here . If someone needs any help regarding printing Document stored in ADS into a Report, let me know. I would be glad to help.

0
by Simon Dannefaerd
Posted on Wed, 10/11/2023 - 02:52

In reply to by liju

Are you able to DM me with a solution, I have emailed but havent had a response

Thanks

Simon

0

Featured achievement

Genius
You like to help others solve their problems by answering questions.
Recent Unlocks
  • KF
  • KH
  • RG
  • Profile picture for user Vee_ARIS
  • Profile picture for user smarty
  • 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