Assembly.PendingAssemblies Property
[Read-only] This property returns an AssemblyCollection object, which represents all of the assemblies that are pending based on completion of the current assembly. For example, if a template contains two ASSEMBLE instructions, the collection returned by this property would include two Assembly objects—one for each ASSEMBLE instruction. Because HotDocs Server must assemble a template to find any ASSEMBLE instructions, the AssemblyCollection returned by this property is empty until the template has been assembled at least once. Likewise, because logic in a template may conditionally include or exclude an ASSEMBLE instruction, the number of assemblies in this collection may change depending on answers in the AnswerCollection.
Syntax
public HotDocs.Server.AssemblyCollection PendingAssemblies { get; }
Example
HotDocs.Server.Session hds = new HotDocs.Server.Session(); HotDocs.Server.Assembly asm = hds.Assemblies.AddNew(); asm.TemplatePath = "c:\\temp\\demoempl.docx"; asm.DocumentPath = "c:\\temp\\output.docx"; asm.Assemble(); Console.WriteLine("The following {0} assemblies are pending based on completion of the current assembly:", asm.PendingAssemblies.Count.ToString()); foreach (HotDocs.Server.Assembly pendingAsm in asm.PendingAssemblies) { Console.WriteLine(pendingAsm.TemplatePath); }