Skip to Content
0

How to print Image from Attachment folder?

Jan 03, 2017 at 09:35 AM

127

avatar image

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");

Regards,

Sankaran A

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

0 Answers