# C1.C1Preview.C1MultiDocument.ItemGenerated

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_C1Preview_C1MultiDocument_ItemGenerated" data-uid="C1.C1Preview.C1MultiDocument.ItemGenerated" class="text-break">ItemGenerated Event
</h1>
<div class="markdown level0 summary"><p>Occurs when the generation of a document associated with a <a class="xref" href="C1.C1Preview.C1MultiDocumentItem.html">C1MultiDocumentItem</a> has completed.
On some systems garbage collection does not always work correctly without explicit calls to <b>GC</b>.
Use this event to call <b>GC.Collect()</b> to ensure that multi-document generation does not cause an out of memory exception.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.html">C1.C1Preview</a></h6>
<h6><strong>Assembly</strong>: C1.PrintDocument.4.8.dll</h6>
<h5 id="C1_C1Preview_C1MultiDocument_ItemGenerated_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event MultiDocumentItemEventHandler ItemGenerated</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event ItemGenerated As MultiDocumentItemEventHandler</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.C1Preview.MultiDocumentItemEventHandler.html">MultiDocumentItemEventHandler</a></td>
      <td>Occurs when the generation of a document associated with a  has completed. On some systems garbage collection does not always work correctly without explicit calls to GC. Use this event to call GC.Collect() to ensure that multi-document generation does not cause an out of memory exception.</td>
    </tr>
  </tbody>
</table>
</div>
