Desktop version

Main > Forum > 1C:Enterprise Platform > Studying 1C:Enterprise platform > Batch print

Forum

Search UsersRules
Batch print
#1
Active user
Points:: 0
Joined:: Jan 11, 2013

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

Profile
#2
Guest
Points::
Joined::

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

Profile
#3
Active user
Points:: 0
Joined:: Jan 11, 2013

Thanks, will try that! Keijo

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.