# C1.Ssrs.ReportSession

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Ssrs_ReportSession" data-uid="C1.Ssrs.ReportSession" class="text-break">ReportSession Class
</h1>
  <div class="markdown level0 summary"><p>Represents a connection to the report on the SSRS server.</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="C1.Ssrs.ConnectionBase.html">ConnectionBase</a></div>
    <div class="level2"><span class="xref">ReportSession</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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.Ssrs.html">C1.Ssrs</a></h6>
  <h6><strong>Assembly</strong>: C1.Document.dll</h6>
  <h5 id="C1_Ssrs_ReportSession_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ReportSession : ConnectionBase, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ReportSession
    Inherits ConnectionBase
    Implements 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_Ssrs_ReportSession__ctor" data-uid="C1.Ssrs.ReportSession.#ctor">
          <a class="xref" href="C1.Ssrs.ReportSession.-ctor.html#C1_Ssrs_ReportSession__ctor">ReportSession()</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_Ssrs_ReportSession_DefaultPageLayout" data-uid="C1.Ssrs.ReportSession.DefaultPageLayout">
          <a class="xref" href="C1.Ssrs.ReportSession.DefaultPageLayout.html#C1_Ssrs_ReportSession_DefaultPageLayout">DefaultPageLayout</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Ssrs.PageLayout.html">PageLayout</a> object specifies the default report page settings.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ReportSession_ExecutionID" data-uid="C1.Ssrs.ReportSession.ExecutionID">
          <a class="xref" href="C1.Ssrs.ReportSession.ExecutionID.html#C1_Ssrs_ReportSession_ExecutionID">ExecutionID</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the ID of SSRS session.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ReportSession_Parameters" data-uid="C1.Ssrs.ReportSession.Parameters">
          <a class="xref" href="C1.Ssrs.ReportSession.Parameters.html#C1_Ssrs_ReportSession_Parameters">Parameters</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the list of parameters of the currently loaded report.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ReportSession_ReportAddress" data-uid="C1.Ssrs.ReportSession.ReportAddress">
          <a class="xref" href="C1.Ssrs.ReportSession.ReportAddress.html#C1_Ssrs_ReportSession_ReportAddress">ReportAddress</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Ssrs.ReportAddressBase.html">ReportAddressBase</a> object defines report address currently opened.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ReportSession_ReportPath" data-uid="C1.Ssrs.ReportSession.ReportPath">
          <a class="xref" href="C1.Ssrs.ReportSession.ReportPath.html#C1_Ssrs_ReportSession_ReportPath">ReportPath</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the report path currently opened.</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_Ssrs_ReportSession_ApplyParameterValues_C1_ImportServices_ReportExecution4_ParameterValue___System_Threading_CancellationToken_" data-uid="C1.Ssrs.ReportSession.ApplyParameterValues(C1.ImportServices.ReportExecution4.ParameterValue[],System.Threading.CancellationToken)">
          <a class="xref" href="C1.Ssrs.ReportSession.ApplyParameterValues.html#C1_Ssrs_ReportSession_ApplyParameterValues_C1_ImportServices_ReportExecution4_ParameterValue___System_Threading_CancellationToken_">ApplyParameterValues(ParameterValue[], CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets and validates parameter values associated with the loaded report.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ReportSession_CheckReportPath_System_String_" data-uid="C1.Ssrs.ReportSession.CheckReportPath(System.String)">
          <a class="xref" href="C1.Ssrs.ReportSession.CheckReportPath.html#C1_Ssrs_ReportSession_CheckReportPath_System_String_">CheckReportPath(string)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ReportSession_Dispose" data-uid="C1.Ssrs.ReportSession.Dispose">
          <a class="xref" href="C1.Ssrs.ReportSession.Dispose.html#C1_Ssrs_ReportSession_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Releases all resources used by the <a class="xref" href="C1.Ssrs.ReportSession.html">ReportSession</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ReportSession_FromExecutionParameter_C1_ImportServices_ReportExecution4_ParameterValue_" data-uid="C1.Ssrs.ReportSession.FromExecutionParameter(C1.ImportServices.ReportExecution4.ParameterValue)">
          <a class="xref" href="C1.Ssrs.ReportSession.FromExecutionParameter.html#C1_Ssrs_ReportSession_FromExecutionParameter_C1_ImportServices_ReportExecution4_ParameterValue_">FromExecutionParameter(ParameterValue)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ReportSession_FromValidValues_C1_ImportServices_ReportingService4_ValidValue___" data-uid="C1.Ssrs.ReportSession.FromValidValues(C1.ImportServices.ReportingService4.ValidValue[])">
          <a class="xref" href="C1.Ssrs.ReportSession.FromValidValues.html#C1_Ssrs_ReportSession_FromValidValues_C1_ImportServices_ReportingService4_ValidValue___">FromValidValues(ValidValue[])</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ReportSession_GetContent_System_Int32_System_Int32_C1_Ssrs_ReportSession_ReportFormat_C1_Ssrs_PageLayout_System_Nullable_System_Int32__System_Nullable_System_Int32__System_Threading_CancellationToken_" data-uid="C1.Ssrs.ReportSession.GetContent(System.Int32,System.Int32,C1.Ssrs.ReportSession.ReportFormat,C1.Ssrs.PageLayout,System.Nullable{System.Int32},System.Nullable{System.Int32},System.Threading.CancellationToken)">
          <a class="xref" href="C1.Ssrs.ReportSession.GetContent.html#C1_Ssrs_ReportSession_GetContent_System_Int32_System_Int32_C1_Ssrs_ReportSession_ReportFormat_C1_Ssrs_PageLayout_System_Nullable_System_Int32__System_Nullable_System_Int32__System_Threading_CancellationToken_">GetContent(int, int, ReportFormat, PageLayout, int?, int?, CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>Generates report in specific format.
<code class="paramref">startPageIndex</code> and <code class="paramref">pageCount</code> specify
range of pages, set <code class="paramref">pageCount</code> to 0 to request all pages of the report.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ReportSession_GetContent_System_String_System_String_System_Threading_CancellationToken_" data-uid="C1.Ssrs.ReportSession.GetContent(System.String,System.String,System.Threading.CancellationToken)">
          <a class="xref" href="C1.Ssrs.ReportSession.GetContent.html#C1_Ssrs_ReportSession_GetContent_System_String_System_String_System_Threading_CancellationToken_">GetContent(string, string, CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets report content in specific format.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ReportSession_GetDocumentMap_System_Threading_CancellationToken_" data-uid="C1.Ssrs.ReportSession.GetDocumentMap(System.Threading.CancellationToken)">
          <a class="xref" href="C1.Ssrs.ReportSession.GetDocumentMap.html#C1_Ssrs_ReportSession_GetDocumentMap_System_Threading_CancellationToken_">GetDocumentMap(CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the report document map (report outlines),
can be called only after <a class="xref" href="C1.Ssrs.ReportSession.GetContent.html#C1_Ssrs_ReportSession_GetContent_System_String_System_String_System_Threading_CancellationToken_">GetContent(string, string, CancellationToken)</a> method.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ReportSession_GetPageCount_C1_Ssrs_ReportSession_ReportFormat_C1_Ssrs_PageLayout_System_Threading_CancellationToken_" data-uid="C1.Ssrs.ReportSession.GetPageCount(C1.Ssrs.ReportSession.ReportFormat,C1.Ssrs.PageLayout,System.Threading.CancellationToken)">
          <a class="xref" href="C1.Ssrs.ReportSession.GetPageCount.html#C1_Ssrs_ReportSession_GetPageCount_C1_Ssrs_ReportSession_ReportFormat_C1_Ssrs_PageLayout_System_Threading_CancellationToken_">GetPageCount(ReportFormat, PageLayout, CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns count of pages in the report.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ReportSession_NavigateBookmark_System_String_System_Threading_CancellationToken_" data-uid="C1.Ssrs.ReportSession.NavigateBookmark(System.String,System.Threading.CancellationToken)">
          <a class="xref" href="C1.Ssrs.ReportSession.NavigateBookmark.html#C1_Ssrs_ReportSession_NavigateBookmark_System_String_System_Threading_CancellationToken_">NavigateBookmark(string, CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>Navigates to a specific bookmark in the report.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ReportSession_NavigateDocumentMap_System_String_System_Threading_CancellationToken_" data-uid="C1.Ssrs.ReportSession.NavigateDocumentMap(System.String,System.Threading.CancellationToken)">
          <a class="xref" href="C1.Ssrs.ReportSession.NavigateDocumentMap.html#C1_Ssrs_ReportSession_NavigateDocumentMap_System_String_System_Threading_CancellationToken_">NavigateDocumentMap(string, CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>Navigates to a specific section of the report.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ReportSession_Open_C1_Ssrs_ReportAddressBase_System_Threading_CancellationToken_" data-uid="C1.Ssrs.ReportSession.Open(C1.Ssrs.ReportAddressBase,System.Threading.CancellationToken)">
          <a class="xref" href="C1.Ssrs.ReportSession.Open.html#C1_Ssrs_ReportSession_Open_C1_Ssrs_ReportAddressBase_System_Threading_CancellationToken_">Open(ReportAddressBase, CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads a report, this report should be called before calling any other methods of the <a class="xref" href="C1.Ssrs.ReportSession.html">ReportSession</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ReportSession_RefreshParameters_System_Collections_Generic_IList_C1_ImportServices_ReportExecution4_ParameterValue__System_Threading_CancellationToken_" data-uid="C1.Ssrs.ReportSession.RefreshParameters(System.Collections.Generic.IList{C1.ImportServices.ReportExecution4.ParameterValue},System.Threading.CancellationToken)">
          <a class="xref" href="C1.Ssrs.ReportSession.RefreshParameters.html#C1_Ssrs_ReportSession_RefreshParameters_System_Collections_Generic_IList_C1_ImportServices_ReportExecution4_ParameterValue__System_Threading_CancellationToken_">RefreshParameters(IList&lt;ParameterValue&gt;, CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>Refreshes list of parameters.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ReportSession_SetConnectionOptions_System_String_C1_Ssrs_ConnectionOptions_" data-uid="C1.Ssrs.ReportSession.SetConnectionOptions(System.String,C1.Ssrs.ConnectionOptions)">
          <a class="xref" href="C1.Ssrs.ReportSession.SetConnectionOptions.html#C1_Ssrs_ReportSession_SetConnectionOptions_System_String_C1_Ssrs_ConnectionOptions_">SetConnectionOptions(string, ConnectionOptions)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the current connection options.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ReportSession_Sort_System_String_C1_ImportServices_ReportExecution4_SortDirectionEnum_System_Boolean_System_Threading_CancellationToken_" data-uid="C1.Ssrs.ReportSession.Sort(System.String,C1.ImportServices.ReportExecution4.SortDirectionEnum,System.Boolean,System.Threading.CancellationToken)">
          <a class="xref" href="C1.Ssrs.ReportSession.Sort.html#C1_Ssrs_ReportSession_Sort_System_String_C1_ImportServices_ReportExecution4_SortDirectionEnum_System_Boolean_System_Threading_CancellationToken_">Sort(string, SortDirectionEnum, bool, CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies or removes a sort for the report based on a user sort action.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ReportSession_ToExecutionParameter_C1_ImportServices_ReportingService4_ReportParameter_" data-uid="C1.Ssrs.ReportSession.ToExecutionParameter(C1.ImportServices.ReportingService4.ReportParameter)">
          <a class="xref" href="C1.Ssrs.ReportSession.ToExecutionParameter.html#C1_Ssrs_ReportSession_ToExecutionParameter_C1_ImportServices_ReportingService4_ReportParameter_">ToExecutionParameter(ReportParameter)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ReportSession_ToExecutionParameters_C1_ImportServices_ReportingService4_ReportParameter___" data-uid="C1.Ssrs.ReportSession.ToExecutionParameters(C1.ImportServices.ReportingService4.ReportParameter[])">
          <a class="xref" href="C1.Ssrs.ReportSession.ToExecutionParameters.html#C1_Ssrs_ReportSession_ToExecutionParameters_C1_ImportServices_ReportingService4_ReportParameter___">ToExecutionParameters(ReportParameter[])</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ReportSession_ToggleItem_System_String_System_Threading_CancellationToken_" data-uid="C1.Ssrs.ReportSession.ToggleItem(System.String,System.Threading.CancellationToken)">
          <a class="xref" href="C1.Ssrs.ReportSession.ToggleItem.html#C1_Ssrs_ReportSession_ToggleItem_System_String_System_Threading_CancellationToken_">ToggleItem(string, CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>Toggles the show/hide item in a report.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
