Batch print

Understanding basics of 1C:Enterprise platform. To start working with 1C:Enterprise platform visit Getting started page

#1
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Jan 11, 2013
Company: Brighteye AB

Hi, anybody have a sample of how to use RepresentableDocumentBatch and RepresentableDocumentBatchItem for printing multiple documents and to be able to print in pdf format.
Regards
Keijo

 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Keijo.

See an example in the Managed application demo that goes with 1C:Enterprise 8.3.3 platform or later.

Code
&AtServer
Function DocumentBatchPrintAtServer()
   Batch = New RepresentableDocumentBatch;
   
   Batch.Content.Add().Data = PutToTempStorage(SpreadsheetDocument, UUID);
   
   ExpenceToPrint = New SpreadsheetDocument;
   Document.GetObject().PrintForm(ExpenceToPrint);
   Batch.Content.Add().Data = PutToTempStorage(ExpenceToPrint, UUID);
   
   Return Batch;
EndFunction

 
#3
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Jan 11, 2013
Company: Brighteye AB

Thanks, will try that! Keijo

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.