Skip to Content

How to print Image from Attachment folder?

Hi All,

The below code, I have used for Printing the attachments.

1. It is good for PDF file.

2. But My requirement is get image from attachment folder and print it.

It is not working properly. It prints corrupted data.

For image can you just tell me the logic.

var Useraccountid : UserAccountID;
var PDF : basisGlobal:BinaryObject;
PDF.content = this.AttachmentFolder.Document.GetFirst().FileContent.BinaryObject.content;
Useraccountid.content = "PRT_001";
var testPrint  = OutputManagementUtilities.CreatePrintQueueItem(Useraccountid, "test1", 1, PDF, "CustomForm");


Sankaran A

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers