Skip to Content
Nov 16, 2016 at 06:48 AM

How do I print Attchment document via ABSL Code?

1198 Views Last edit Nov 16, 2016 at 06:52 AM 3 rev

Hi Experts,

I configured the automatic printing (Cloud Print Manager) with my tenant. I need to print the attachment document. I'm using the bellow code. But It is not working. Am I missing anything?

var Useraccountid : UserAccountID;
var PDF : basisGlobal:BinaryObject;

PDF.content = this.AttachmentFolder.Document.GetFirst().FileContent.BinaryObject.content;
PDF.fileName = "FileName";
PDF.mimeCode = this.AttachmentFolder.Document.GetFirst().FileContent.BinaryObject.mimeCode;
Useraccountid.content = "PRT_001";

var testPrint  = OutputManagementUtilities.CreatePrintQueueItem(Useraccountid, PDF.fileName, 1, PDF, "CustomForm");


Sankaran A