# C1.Document.C1DocumentSource

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Document_C1DocumentSource" data-uid="C1.Document.C1DocumentSource" class="text-break">C1DocumentSource Class
</h1>
  <div class="markdown level0 summary"><p>Abstract base class for types that can create and manage a <a class="xref" href="C1.Document.C1Document.html">C1Document</a> object
from some source.</p>
<p>Derived classes provide implementation for specific sources such as SSRS reports etc.</p>
<p>The common base (C1DocumentSource) allows to work with various document and reports types
(e.g. previewing or printing them) in a uniform manner.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a></div>
    <div class="level3"><span class="xref">C1DocumentSource</span></div>
      <div class="level4"><a class="xref" href="C1.Document.C1PdfDocumentSource.html">C1PdfDocumentSource</a></div>
      <div class="level4"><a class="xref" href="C1.Document.C1SSRSDocumentSource.html">C1SSRSDocumentSource</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Document.html">C1.Document</a></h6>
  <h6><strong>Assembly</strong>: C1.Document.dll</h6>
  <h5 id="C1_Document_C1DocumentSource_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class C1DocumentSource : Component, IComponent, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class C1DocumentSource
    Inherits Component
    Implements IComponent, IDisposable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Document_C1DocumentSource__ctor" data-uid="C1.Document.C1DocumentSource.#ctor">
          <a class="xref" href="C1.Document.C1DocumentSource.-ctor.html#C1_Document_C1DocumentSource__ctor">C1DocumentSource()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Document.C1DocumentSource.html">C1DocumentSource</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Document_C1DocumentSource_m_defaultPrintOptions" data-uid="C1.Document.C1DocumentSource.m_defaultPrintOptions">
          <a class="xref" href="C1.Document.C1DocumentSource.m_defaultPrintOptions.html">m_defaultPrintOptions</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Document_C1DocumentSource_AsyncMethodsUseAwaitPattern" data-uid="C1.Document.C1DocumentSource.AsyncMethodsUseAwaitPattern">
          <a class="xref" href="C1.Document.C1DocumentSource.AsyncMethodsUseAwaitPattern.html#C1_Document_C1DocumentSource_AsyncMethodsUseAwaitPattern">AsyncMethodsUseAwaitPattern</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether calls to async methods of the current document source expect the async/await pattern to be used by the calling code.
If this property is true, then the *Completed events (such as <a class="xref" href="C1.Document.C1DocumentSource.GenerateCompleted.html">GenerateCompleted</a>, <a class="xref" href="C1.Document.C1DocumentSource.GenerateCompleted.html">GenerateCompleted</a> and others)
do not fire.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_BusyState" data-uid="C1.Document.C1DocumentSource.BusyState">
          <a class="xref" href="C1.Document.C1DocumentSource.BusyState.html#C1_Document_C1DocumentSource_BusyState">BusyState</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the current busy state of the current <a class="xref" href="C1.Document.C1DocumentSource.html">C1DocumentSource</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_Credential" data-uid="C1.Document.C1DocumentSource.Credential">
          <a class="xref" href="C1.Document.C1DocumentSource.Credential.html#C1_Document_C1DocumentSource_Credential">Credential</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.net.networkcredential">NetworkCredential</a> object specifying the credentials
which will be used to access data for document generation.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_DefaultPrintOptions" data-uid="C1.Document.C1DocumentSource.DefaultPrintOptions">
          <a class="xref" href="C1.Document.C1DocumentSource.DefaultPrintOptions.html#C1_Document_C1DocumentSource_DefaultPrintOptions">DefaultPrintOptions</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Document.C1PrintOptions.html">C1PrintOptions</a> object defining default print options
used by printing methods of <a class="xref" href="C1.Document.C1DocumentSource.html">C1DocumentSource</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_Dirty" data-uid="C1.Document.C1DocumentSource.Dirty">
          <a class="xref" href="C1.Document.C1DocumentSource.Dirty.html#C1_Document_C1DocumentSource_Dirty">Dirty</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the current content is dirty and does not correspond to the current values of
<span class="xref">C1.Document.C1DocumentSource.Paginated</span> etc.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_Document" data-uid="C1.Document.C1DocumentSource.Document">
          <a class="xref" href="C1.Document.C1DocumentSource.Document.html#C1_Document_C1DocumentSource_Document">Document</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="C1.Document.C1Document.html">C1Document</a> object produced by the current document source.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_DocumentName" data-uid="C1.Document.C1DocumentSource.DocumentName">
          <a class="xref" href="C1.Document.C1DocumentSource.DocumentName.html#C1_Document_C1DocumentSource_DocumentName">DocumentName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a name of the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_Features" data-uid="C1.Document.C1DocumentSource.Features">
          <a class="xref" href="C1.Document.C1DocumentSource.Features.html#C1_Document_C1DocumentSource_Features">Features</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Document.C1DocumentSourceFeatures.html">C1DocumentSourceFeatures</a> object specifying the set of features supported by this <a class="xref" href="C1.Document.C1DocumentSource.html">C1DocumentSource</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_IsBusy" data-uid="C1.Document.C1DocumentSource.IsBusy">
          <a class="xref" href="C1.Document.C1DocumentSource.IsBusy.html#C1_Document_C1DocumentSource_IsBusy">IsBusy</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the value indicating whether the current <a class="xref" href="C1.Document.C1DocumentSource.html">C1DocumentSource</a> busy.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_IsDisposed" data-uid="C1.Document.C1DocumentSource.IsDisposed">
          <a class="xref" href="C1.Document.C1DocumentSource.IsDisposed.html#C1_Document_C1DocumentSource_IsDisposed">IsDisposed</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether this <a class="xref" href="C1.Document.C1DocumentSource.html">C1DocumentSource</a> is disposed and can not be longer used.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_IsUserInteractive" data-uid="C1.Document.C1DocumentSource.IsUserInteractive">
          <a class="xref" href="C1.Document.C1DocumentSource.IsUserInteractive.html#C1_Document_C1DocumentSource_IsUserInteractive">IsUserInteractive</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the current document source is running in a user-interactive environment.
This property returns false when running in a service, web app and so on.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_Log" data-uid="C1.Document.C1DocumentSource.Log">
          <a class="xref" href="C1.Document.C1DocumentSource.Log.html#C1_Document_C1DocumentSource_Log">Log</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Document.LogEntryList.html">LogEntryList</a> containing the list of events which occured during the last operation (generating, exporting etc).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_PageCount" data-uid="C1.Document.C1DocumentSource.PageCount">
          <a class="xref" href="C1.Document.C1DocumentSource.PageCount.html#C1_Document_C1DocumentSource_PageCount">PageCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of already generated pages.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_PageSettings" data-uid="C1.Document.C1DocumentSource.PageSettings">
          <a class="xref" href="C1.Document.C1DocumentSource.PageSettings.html#C1_Document_C1DocumentSource_PageSettings">PageSettings</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.Document.C1PageSettings.html">C1PageSettings</a> object specifying the page settings to use when
generating a paginated document (see <span class="xref">C1.Document.C1DocumentSource.Paginated</span>).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_Pages" data-uid="C1.Document.C1DocumentSource.Pages">
          <a class="xref" href="C1.Document.C1DocumentSource.Pages.html#C1_Document_C1DocumentSource_Pages">Pages</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the already generated pages.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_Parameters" data-uid="C1.Document.C1DocumentSource.Parameters">
          <a class="xref" href="C1.Document.C1DocumentSource.Parameters.html#C1_Document_C1DocumentSource_Parameters">Parameters</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a collection of parameters used to generate content.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_SupportedExportProviders" data-uid="C1.Document.C1DocumentSource.SupportedExportProviders">
          <a class="xref" href="C1.Document.C1DocumentSource.SupportedExportProviders.html#C1_Document_C1DocumentSource_SupportedExportProviders">SupportedExportProviders</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an array of exporters supported by the current document source object.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Document_C1DocumentSource_AddToLog_C1_Document_LogEntrySeverity_System_String_" data-uid="C1.Document.C1DocumentSource.AddToLog(C1.Document.LogEntrySeverity,System.String)">
          <a class="xref" href="C1.Document.C1DocumentSource.AddToLog.html#C1_Document_C1DocumentSource_AddToLog_C1_Document_LogEntrySeverity_System_String_">AddToLog(LogEntrySeverity, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds log entry to the <a class="xref" href="C1.Document.C1DocumentSource.Log.html#C1_Document_C1DocumentSource_Log">Log</a> list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_AddToLog_C1_Document_LogEntrySeverity_System_String_System_Object___" data-uid="C1.Document.C1DocumentSource.AddToLog(C1.Document.LogEntrySeverity,System.String,System.Object[])">
          <a class="xref" href="C1.Document.C1DocumentSource.AddToLog.html#C1_Document_C1DocumentSource_AddToLog_C1_Document_LogEntrySeverity_System_String_System_Object___">AddToLog(LogEntrySeverity, string, params object[])</a>
        </td>
        <td class="markdown level1 summary"><p>Adds log entry to the <a class="xref" href="C1.Document.C1DocumentSource.Log.html#C1_Document_C1DocumentSource_Log">Log</a> list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_AddToLog_System_Exception_" data-uid="C1.Document.C1DocumentSource.AddToLog(System.Exception)">
          <a class="xref" href="C1.Document.C1DocumentSource.AddToLog.html#C1_Document_C1DocumentSource_AddToLog_System_Exception_">AddToLog(Exception)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds log entry to the <a class="xref" href="C1.Document.C1DocumentSource.Log.html#C1_Document_C1DocumentSource_Log">Log</a> list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_CancelAsync" data-uid="C1.Document.C1DocumentSource.CancelAsync">
          <a class="xref" href="C1.Document.C1DocumentSource.CancelAsync.html#C1_Document_C1DocumentSource_CancelAsync">CancelAsync()</a>
        </td>
        <td class="markdown level1 summary"><p>Cancels currently executed async action and waits until action will be actually cancelled.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_ClearContent" data-uid="C1.Document.C1DocumentSource.ClearContent">
          <a class="xref" href="C1.Document.C1DocumentSource.ClearContent.html#C1_Document_C1DocumentSource_ClearContent">ClearContent()</a>
        </td>
        <td class="markdown level1 summary"><p>Clear generated content and sets <a class="xref" href="C1.Document.C1DocumentSource.Dirty.html#C1_Document_C1DocumentSource_Dirty">Dirty</a> to true.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_CreateDocument" data-uid="C1.Document.C1DocumentSource.CreateDocument">
          <a class="xref" href="C1.Document.C1DocumentSource.CreateDocument.html#C1_Document_C1DocumentSource_CreateDocument">CreateDocument()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates new instance of <a class="xref" href="C1.Document.C1Document.html">C1Document</a></p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_CreateParametersCollection" data-uid="C1.Document.C1DocumentSource.CreateParametersCollection">
          <a class="xref" href="C1.Document.C1DocumentSource.CreateParametersCollection.html#C1_Document_C1DocumentSource_CreateParametersCollection">CreateParametersCollection()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates the <a class="xref" href="C1.Document.ParameterCollection.html">ParameterCollection</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_Dispose_System_Boolean_" data-uid="C1.Document.C1DocumentSource.Dispose(System.Boolean)">
          <a class="xref" href="C1.Document.C1DocumentSource.Dispose.html#C1_Document_C1DocumentSource_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Releases the unmanaged resources used by the Component and optionally releases the managed resources.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_ExecuteAction_C1_Document_C1DocumentAction_" data-uid="C1.Document.C1DocumentSource.ExecuteAction(C1.Document.C1DocumentAction)">
          <a class="xref" href="C1.Document.C1DocumentSource.ExecuteAction.html#C1_Document_C1DocumentSource_ExecuteAction_C1_Document_C1DocumentAction_">ExecuteAction(C1DocumentAction)</a>
        </td>
        <td class="markdown level1 summary"><p>Executes an action specified by the <a class="xref" href="C1.Document.C1DocumentAction.html">C1DocumentAction</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_ExecuteActionAsync_C1_Document_C1DocumentAction_" data-uid="C1.Document.C1DocumentSource.ExecuteActionAsync(C1.Document.C1DocumentAction)">
          <a class="xref" href="C1.Document.C1DocumentSource.ExecuteActionAsync.html#C1_Document_C1DocumentSource_ExecuteActionAsync_C1_Document_C1DocumentAction_">ExecuteActionAsync(C1DocumentAction)</a>
        </td>
        <td class="markdown level1 summary"><p>Non-blocking (asynchronous) version of the <a class="xref" href="C1.Document.C1DocumentSource.ExecuteAction.html#C1_Document_C1DocumentSource_ExecuteAction_C1_Document_C1DocumentAction_">ExecuteAction(C1DocumentAction)</a> method.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_ExecuteActionAsyncEx_C1_Document_C1DocumentAction_" data-uid="C1.Document.C1DocumentSource.ExecuteActionAsyncEx(C1.Document.C1DocumentAction)">
          <a class="xref" href="C1.Document.C1DocumentSource.ExecuteActionAsyncEx.html#C1_Document_C1DocumentSource_ExecuteActionAsyncEx_C1_Document_C1DocumentAction_">ExecuteActionAsyncEx(C1DocumentAction)</a>
        </td>
        <td class="markdown level1 summary"><p>Non-blocking (asynchronous) version of the <a class="xref" href="C1.Document.C1DocumentSource.ExecuteAction.html#C1_Document_C1DocumentSource_ExecuteAction_C1_Document_C1DocumentAction_">ExecuteAction(C1DocumentAction)</a> method.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_Export_C1_Document_Export_ExportFilter_" data-uid="C1.Document.C1DocumentSource.Export(C1.Document.Export.ExportFilter)">
          <a class="xref" href="C1.Document.C1DocumentSource.Export.html#C1_Document_C1DocumentSource_Export_C1_Document_Export_ExportFilter_">Export(ExportFilter)</a>
        </td>
        <td class="markdown level1 summary"><p>Exports the document into a stream in an external format using the specified export filter.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_ExportAsync_C1_Document_Export_ExportFilter_" data-uid="C1.Document.C1DocumentSource.ExportAsync(C1.Document.Export.ExportFilter)">
          <a class="xref" href="C1.Document.C1DocumentSource.ExportAsync.html#C1_Document_C1DocumentSource_ExportAsync_C1_Document_Export_ExportFilter_">ExportAsync(ExportFilter)</a>
        </td>
        <td class="markdown level1 summary"><p>Non-blocking (asynchronous) version of the <a class="xref" href="C1.Document.C1DocumentSource.Export.html#C1_Document_C1DocumentSource_Export_C1_Document_Export_ExportFilter_">Export(ExportFilter)</a> method.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_ExportAsyncEx_C1_Document_Export_ExportFilter_" data-uid="C1.Document.C1DocumentSource.ExportAsyncEx(C1.Document.Export.ExportFilter)">
          <a class="xref" href="C1.Document.C1DocumentSource.ExportAsyncEx.html#C1_Document_C1DocumentSource_ExportAsyncEx_C1_Document_Export_ExportFilter_">ExportAsyncEx(ExportFilter)</a>
        </td>
        <td class="markdown level1 summary"><p>Non-blocking (asynchronous) version of the <a class="xref" href="C1.Document.C1DocumentSource.Export.html#C1_Document_C1DocumentSource_Export_C1_Document_Export_ExportFilter_">Export(ExportFilter)</a> method.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_FirePageCountChanged" data-uid="C1.Document.C1DocumentSource.FirePageCountChanged">
          <a class="xref" href="C1.Document.C1DocumentSource.FirePageCountChanged.html#C1_Document_C1DocumentSource_FirePageCountChanged">FirePageCountChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_Generate" data-uid="C1.Document.C1DocumentSource.Generate">
          <a class="xref" href="C1.Document.C1DocumentSource.Generate.html#C1_Document_C1DocumentSource_Generate">Generate()</a>
        </td>
        <td class="markdown level1 summary"><p>Generates the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_GenerateAsync" data-uid="C1.Document.C1DocumentSource.GenerateAsync">
          <a class="xref" href="C1.Document.C1DocumentSource.GenerateAsync.html#C1_Document_C1DocumentSource_GenerateAsync">GenerateAsync()</a>
        </td>
        <td class="markdown level1 summary"><p>Non-blocking (asynchronous) version of the <a class="xref" href="C1.Document.C1DocumentSource.Generate.html#C1_Document_C1DocumentSource_Generate">Generate()</a> method.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_GenerateAsyncEx" data-uid="C1.Document.C1DocumentSource.GenerateAsyncEx">
          <a class="xref" href="C1.Document.C1DocumentSource.GenerateAsyncEx.html#C1_Document_C1DocumentSource_GenerateAsyncEx">GenerateAsyncEx()</a>
        </td>
        <td class="markdown level1 summary"><p>Non-blocking (asynchronous) version of the <a class="xref" href="C1.Document.C1DocumentSource.Generate.html#C1_Document_C1DocumentSource_Generate">Generate()</a> method.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_GetDocumentRange_C1_Document_C1DocumentTextPosition_C1_Document_C1DocumentTextPosition_C1_Document_Util_IC1TextMeasurementContext_" data-uid="C1.Document.C1DocumentSource.GetDocumentRange(C1.Document.C1DocumentTextPosition,C1.Document.C1DocumentTextPosition,C1.Document.Util.IC1TextMeasurementContext)">
          <a class="xref" href="C1.Document.C1DocumentSource.GetDocumentRange.html#C1_Document_C1DocumentSource_GetDocumentRange_C1_Document_C1DocumentTextPosition_C1_Document_C1DocumentTextPosition_C1_Document_Util_IC1TextMeasurementContext_">GetDocumentRange(C1DocumentTextPosition, C1DocumentTextPosition, IC1TextMeasurementContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates the <span class="xref">C1.Document.C1DocumentRange</span> object on the base of two text positions specified
by <span class="xref">C1.Document.C1DocumentTextPosition</span> objects.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_GetPageDocumentRange_C1_Document_C1Page_C1_Document_Util_IC1TextMeasurementContext_" data-uid="C1.Document.C1DocumentSource.GetPageDocumentRange(C1.Document.C1Page,C1.Document.Util.IC1TextMeasurementContext)">
          <a class="xref" href="C1.Document.C1DocumentSource.GetPageDocumentRange.html#C1_Document_C1DocumentSource_GetPageDocumentRange_C1_Document_C1Page_C1_Document_Util_IC1TextMeasurementContext_">GetPageDocumentRange(C1Page, IC1TextMeasurementContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a <span class="xref">C1.Document.C1DocumentRange</span> object that includes the specified page.
This method can return null if the page contains no text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_GetWholeDocumentRange_C1_Document_Util_IC1TextMeasurementContext_" data-uid="C1.Document.C1DocumentSource.GetWholeDocumentRange(C1.Document.Util.IC1TextMeasurementContext)">
          <a class="xref" href="C1.Document.C1DocumentSource.GetWholeDocumentRange.html#C1_Document_C1DocumentSource_GetWholeDocumentRange_C1_Document_Util_IC1TextMeasurementContext_">GetWholeDocumentRange(IC1TextMeasurementContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a <span class="xref">C1.Document.C1DocumentRange</span> object that includes the whole document.
This method can return null if the document contains no text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_GetWordDocumentRange_C1_Document_C1DocumentTextPosition_C1_Document_Util_IC1TextMeasurementContext_" data-uid="C1.Document.C1DocumentSource.GetWordDocumentRange(C1.Document.C1DocumentTextPosition,C1.Document.Util.IC1TextMeasurementContext)">
          <a class="xref" href="C1.Document.C1DocumentSource.GetWordDocumentRange.html#C1_Document_C1DocumentSource_GetWordDocumentRange_C1_Document_C1DocumentTextPosition_C1_Document_Util_IC1TextMeasurementContext_">GetWordDocumentRange(C1DocumentTextPosition, IC1TextMeasurementContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a <span class="xref">C1.Document.C1DocumentRange</span> object that defines a word containing a specified position in the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_IImageFromObject_System_Object_" data-uid="C1.Document.C1DocumentSource.IImageFromObject(System.Object)">
          <a class="xref" href="C1.Document.C1DocumentSource.IImageFromObject.html#C1_Document_C1DocumentSource_IImageFromObject_System_Object_">IImageFromObject(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an <span class="xref">GrapeCity.Documents.Drawing.IImage</span> instance from an object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_Init" data-uid="C1.Document.C1DocumentSource.Init">
          <a class="xref" href="C1.Document.C1DocumentSource.Init.html#C1_Document_C1DocumentSource_Init">Init()</a>
        </td>
        <td class="markdown level1 summary"><p>Called from constructor, initializes an object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_IsGenerateAllowed" data-uid="C1.Document.C1DocumentSource.IsGenerateAllowed">
          <a class="xref" href="C1.Document.C1DocumentSource.IsGenerateAllowed.html#C1_Document_C1DocumentSource_IsGenerateAllowed">IsGenerateAllowed()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a value indicating whether the <a class="xref" href="C1.Document.C1DocumentSource.Generate.html#C1_Document_C1DocumentSource_Generate">Generate()</a> method can be called at the moment.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_OnBusyStateChanged" data-uid="C1.Document.C1DocumentSource.OnBusyStateChanged">
          <a class="xref" href="C1.Document.C1DocumentSource.OnBusyStateChanged.html#C1_Document_C1DocumentSource_OnBusyStateChanged">OnBusyStateChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_OnDirtyChanged" data-uid="C1.Document.C1DocumentSource.OnDirtyChanged">
          <a class="xref" href="C1.Document.C1DocumentSource.OnDirtyChanged.html#C1_Document_C1DocumentSource_OnDirtyChanged">OnDirtyChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_OnExportCompleted_C1_Document_Export_ExportFilter_System_Exception_" data-uid="C1.Document.C1DocumentSource.OnExportCompleted(C1.Document.Export.ExportFilter,System.Exception)">
          <a class="xref" href="C1.Document.C1DocumentSource.OnExportCompleted.html#C1_Document_C1DocumentSource_OnExportCompleted_C1_Document_Export_ExportFilter_System_Exception_">OnExportCompleted(ExportFilter, Exception)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_OnGenerateCompleted_System_Exception_" data-uid="C1.Document.C1DocumentSource.OnGenerateCompleted(System.Exception)">
          <a class="xref" href="C1.Document.C1DocumentSource.OnGenerateCompleted.html#C1_Document_C1DocumentSource_OnGenerateCompleted_System_Exception_">OnGenerateCompleted(Exception)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_OnGetLinkTargetPositionCompleted_C1_Document_C1LinkTargetBase_C1_Document_C1BookmarkPosition_System_Exception_" data-uid="C1.Document.C1DocumentSource.OnGetLinkTargetPositionCompleted(C1.Document.C1LinkTargetBase,C1.Document.C1BookmarkPosition,System.Exception)">
          <a class="xref" href="C1.Document.C1DocumentSource.OnGetLinkTargetPositionCompleted.html#C1_Document_C1DocumentSource_OnGetLinkTargetPositionCompleted_C1_Document_C1LinkTargetBase_C1_Document_C1BookmarkPosition_System_Exception_">OnGetLinkTargetPositionCompleted(C1LinkTargetBase, C1BookmarkPosition, Exception)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_OnGetPageCompleted_System_Int32_C1_Document_C1Page_System_Exception_" data-uid="C1.Document.C1DocumentSource.OnGetPageCompleted(System.Int32,C1.Document.C1Page,System.Exception)">
          <a class="xref" href="C1.Document.C1DocumentSource.OnGetPageCompleted.html#C1_Document_C1DocumentSource_OnGetPageCompleted_System_Int32_C1_Document_C1Page_System_Exception_">OnGetPageCompleted(int, C1Page, Exception)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_OnLongOperation_System_Double_System_Boolean_" data-uid="C1.Document.C1DocumentSource.OnLongOperation(System.Double,System.Boolean)">
          <a class="xref" href="C1.Document.C1DocumentSource.OnLongOperation.html#C1_Document_C1DocumentSource_OnLongOperation_System_Double_System_Boolean_">OnLongOperation(double, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_OnPageCountChanged" data-uid="C1.Document.C1DocumentSource.OnPageCountChanged">
          <a class="xref" href="C1.Document.C1DocumentSource.OnPageCountChanged.html#C1_Document_C1DocumentSource_OnPageCountChanged">OnPageCountChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_OnPagesClear" data-uid="C1.Document.C1DocumentSource.OnPagesClear">
          <a class="xref" href="C1.Document.C1DocumentSource.OnPagesClear.html#C1_Document_C1DocumentSource_OnPagesClear">OnPagesClear()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_OnPagesLoaded_System_Int32_System_Int32_" data-uid="C1.Document.C1DocumentSource.OnPagesLoaded(System.Int32,System.Int32)">
          <a class="xref" href="C1.Document.C1DocumentSource.OnPagesLoaded.html#C1_Document_C1DocumentSource_OnPagesLoaded_System_Int32_System_Int32_">OnPagesLoaded(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_OnSecurityError_System_String_System_Int32_" data-uid="C1.Document.C1DocumentSource.OnSecurityError(System.String,System.Int32)">
          <a class="xref" href="C1.Document.C1DocumentSource.OnSecurityError.html#C1_Document_C1DocumentSource_OnSecurityError_System_String_System_Int32_">OnSecurityError(string, int)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_OnValidateParametersCompleted_System_Collections_Generic_List_C1_Document_ParameterValidationError__System_Exception_" data-uid="C1.Document.C1DocumentSource.OnValidateParametersCompleted(System.Collections.Generic.List{C1.Document.ParameterValidationError},System.Exception)">
          <a class="xref" href="C1.Document.C1DocumentSource.OnValidateParametersCompleted.html#C1_Document_C1DocumentSource_OnValidateParametersCompleted_System_Collections_Generic_List_C1_Document_ParameterValidationError__System_Exception_">OnValidateParametersCompleted(List&lt;ParameterValidationError&gt;, Exception)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_Print" data-uid="C1.Document.C1DocumentSource.Print">
          <a class="xref" href="C1.Document.C1DocumentSource.Print.html#C1_Document_C1DocumentSource_Print">Print()</a>
        </td>
        <td class="markdown level1 summary"><p>Prints the generated report.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_Print_C1_Document_C1PrintOptions_" data-uid="C1.Document.C1DocumentSource.Print(C1.Document.C1PrintOptions)">
          <a class="xref" href="C1.Document.C1DocumentSource.Print.html#C1_Document_C1DocumentSource_Print_C1_Document_C1PrintOptions_">Print(C1PrintOptions)</a>
        </td>
        <td class="markdown level1 summary"><p>Prints the generated document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_ValidateParameters" data-uid="C1.Document.C1DocumentSource.ValidateParameters">
          <a class="xref" href="C1.Document.C1DocumentSource.ValidateParameters.html#C1_Document_C1DocumentSource_ValidateParameters">ValidateParameters()</a>
        </td>
        <td class="markdown level1 summary"><p>Validates the current parameter values, refreshes their valid values' lists if the values are valid.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_ValidateParametersAsync" data-uid="C1.Document.C1DocumentSource.ValidateParametersAsync">
          <a class="xref" href="C1.Document.C1DocumentSource.ValidateParametersAsync.html#C1_Document_C1DocumentSource_ValidateParametersAsync">ValidateParametersAsync()</a>
        </td>
        <td class="markdown level1 summary"><p>Non-blocking (asynchronous) version of the <a class="xref" href="C1.Document.C1DocumentSource.ValidateParameters.html#C1_Document_C1DocumentSource_ValidateParameters">ValidateParameters()</a> method.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_ValidateParametersAsyncEx" data-uid="C1.Document.C1DocumentSource.ValidateParametersAsyncEx">
          <a class="xref" href="C1.Document.C1DocumentSource.ValidateParametersAsyncEx.html#C1_Document_C1DocumentSource_ValidateParametersAsyncEx">ValidateParametersAsyncEx()</a>
        </td>
        <td class="markdown level1 summary"><p>Non-blocking (asynchronous) version of the <a class="xref" href="C1.Document.C1DocumentSource.ValidateParameters.html#C1_Document_C1DocumentSource_ValidateParameters">ValidateParameters()</a> method.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Document_C1DocumentSource_BusyStateChanged" data-uid="C1.Document.C1DocumentSource.BusyStateChanged">
          <a class="xref" href="C1.Document.C1DocumentSource.BusyStateChanged.html">BusyStateChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the <a class="xref" href="C1.Document.C1DocumentSource.BusyState.html#C1_Document_C1DocumentSource_BusyState">BusyState</a> property value changes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_DirtyChanged" data-uid="C1.Document.C1DocumentSource.DirtyChanged">
          <a class="xref" href="C1.Document.C1DocumentSource.DirtyChanged.html">DirtyChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the <a class="xref" href="C1.Document.C1DocumentSource.Dirty.html#C1_Document_C1DocumentSource_Dirty">Dirty</a> property value changes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_ExportCompleted" data-uid="C1.Document.C1DocumentSource.ExportCompleted">
          <a class="xref" href="C1.Document.C1DocumentSource.ExportCompleted.html">ExportCompleted</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the <a class="xref" href="C1.Document.C1DocumentSource.ExportAsync.html#C1_Document_C1DocumentSource_ExportAsync_C1_Document_Export_ExportFilter_">ExportAsync(ExportFilter)</a> method has completed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_GenerateCompleted" data-uid="C1.Document.C1DocumentSource.GenerateCompleted">
          <a class="xref" href="C1.Document.C1DocumentSource.GenerateCompleted.html">GenerateCompleted</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the <a class="xref" href="C1.Document.C1DocumentSource.GenerateAsync.html#C1_Document_C1DocumentSource_GenerateAsync">GenerateAsync()</a> method has completed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_LongOperation" data-uid="C1.Document.C1DocumentSource.LongOperation">
          <a class="xref" href="C1.Document.C1DocumentSource.LongOperation.html">LongOperation</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs periodically during various document operations.
Allows to provide progress indication and the ability to cancel some long operations such as document generation.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_PageCountChanged" data-uid="C1.Document.C1DocumentSource.PageCountChanged">
          <a class="xref" href="C1.Document.C1DocumentSource.PageCountChanged.html">PageCountChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the <a class="xref" href="C1.Document.C1DocumentSource.PageCount.html#C1_Document_C1DocumentSource_PageCount">PageCount</a> property value changes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_SecurityError" data-uid="C1.Document.C1DocumentSource.SecurityError">
          <a class="xref" href="C1.Document.C1DocumentSource.SecurityError.html">SecurityError</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when a securiy exception occurs during a document source operation.
This event allows to correct security-related properties like <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.net.networkcredential">NetworkCredential</a>
and retry a failed operation with new credentials.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1DocumentSource_ValidateParametersCompleted" data-uid="C1.Document.C1DocumentSource.ValidateParametersCompleted">
          <a class="xref" href="C1.Document.C1DocumentSource.ValidateParametersCompleted.html">ValidateParametersCompleted</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the <a class="xref" href="C1.Document.C1DocumentSource.ValidateParametersAsync.html#C1_Document_C1DocumentSource_ValidateParametersAsync">ValidateParametersAsync()</a> method has completed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
