# C1.C1Preview.C1PrintDocument.ErrorCode

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_C1PrintDocument_ErrorCode_" data-uid="C1.C1Preview.C1PrintDocument.ErrorCode*">ErrorCode Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_C1PrintDocument_ErrorCode_" data-uid="C1.C1Preview.C1PrintDocument.ErrorCode*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_ErrorCode" data-uid="C1.C1Preview.C1PrintDocument.ErrorCode">ErrorCode</h4>
<div class="markdown level1 summary"><p>Obsolete. Now gets the Code of the first element in the Warnings collection,
or GenerateErrorEnum.None if there are no warnings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
[Obsolete(&quot;Use Warnings instead&quot;)]
public GenerateErrorEnum ErrorCode { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Browsable(False)&gt;
&lt;Obsolete(&quot;Use Warnings instead&quot;)&gt;
Public ReadOnly Property ErrorCode As GenerateErrorEnum</code></pre>
</div>
</div>
