Skip to Content

display AttachmentFolder Document image in printed form


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.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers