Skip to Content

display AttachmentFolder Document image in printed form

May 06, 2017 at 01:15 PM


avatar image


I have a customBO containing an AttachmentFolder that contains a Document which is an image.

I would like to display this image on a Print Form.

I wrote the below code to extract the fileContentURI, and the Pathname.

if (bc.Attachment.IsSet()){ 
   if (bc.Attachment.Document.Count() > 0){ 
   var bc_doc = bc.Attachment.Document.GetFirst(); 
   cnode.fileName = bc_doc.Name; 
   cnode.mimeType = bc_doc.MIMECode; 
   cnode.attachmentURI = bc_doc.FileContentURI; 
   cnode.pathname = bc_doc.PathName;

I then replaced the "" with my tenant URL, but still the image cannot display.

I bind the FileContentURI to an Image field in the form, but it will not display.



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers