# GrapeCity.ActiveReports.Rendering.Tools.DataSourceTools

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_ActiveReports_Rendering_Tools_DataSourceTools" data-uid="GrapeCity.ActiveReports.Rendering.Tools.DataSourceTools" class="text-break">DataSourceTools Class
</h1>
  <div class="markdown level0 summary"><p>Represents the methods for saving and loading shared data sources.</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"><span class="xref">DataSourceTools</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Rendering.Tools.html">GrapeCity.ActiveReports.Rendering.Tools</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Core.Rendering.dll</h6>
  <h5 id="GrapeCity_ActiveReports_Rendering_Tools_DataSourceTools_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class DataSourceTools</code></pre>
  </div>
  <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="GrapeCity_ActiveReports_Rendering_Tools_DataSourceTools_LoadSharedDataSource_GrapeCity_ActiveReports_ResourceLocator_System_String_" data-uid="GrapeCity.ActiveReports.Rendering.Tools.DataSourceTools.LoadSharedDataSource(GrapeCity.ActiveReports.ResourceLocator,System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Rendering.Tools.DataSourceTools.LoadSharedDataSource.html#GrapeCity_ActiveReports_Rendering_Tools_DataSourceTools_LoadSharedDataSource_GrapeCity_ActiveReports_ResourceLocator_System_String_">LoadSharedDataSource(ResourceLocator, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads a shared data source using the specified resource locator and data source reference.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Rendering_Tools_DataSourceTools_LoadSharedDataSource_System_IO_Stream_" data-uid="GrapeCity.ActiveReports.Rendering.Tools.DataSourceTools.LoadSharedDataSource(System.IO.Stream)">
          <a class="xref" href="GrapeCity.ActiveReports.Rendering.Tools.DataSourceTools.LoadSharedDataSource.html#GrapeCity_ActiveReports_Rendering_Tools_DataSourceTools_LoadSharedDataSource_System_IO_Stream_">LoadSharedDataSource(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads a shared data source from the specified XML stream.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Rendering_Tools_DataSourceTools_LoadSharedDataSource_System_String_" data-uid="GrapeCity.ActiveReports.Rendering.Tools.DataSourceTools.LoadSharedDataSource(System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Rendering.Tools.DataSourceTools.LoadSharedDataSource.html#GrapeCity_ActiveReports_Rendering_Tools_DataSourceTools_LoadSharedDataSource_System_String_">LoadSharedDataSource(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads a shared data source from the specified file path.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Rendering_Tools_DataSourceTools_SaveSharedDataSource_System_IO_FileInfo_GrapeCity_ActiveReports_PageReportModel_DataSource_" data-uid="GrapeCity.ActiveReports.Rendering.Tools.DataSourceTools.SaveSharedDataSource(System.IO.FileInfo,GrapeCity.ActiveReports.PageReportModel.DataSource)">
          <a class="xref" href="GrapeCity.ActiveReports.Rendering.Tools.DataSourceTools.SaveSharedDataSource.html#GrapeCity_ActiveReports_Rendering_Tools_DataSourceTools_SaveSharedDataSource_System_IO_FileInfo_GrapeCity_ActiveReports_PageReportModel_DataSource_">SaveSharedDataSource(FileInfo, DataSource)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the specified <a class="xref" href="../MESCIUS.ActiveReports.Core.Rdl/GrapeCity.ActiveReports.PageReportModel.DataSource.html">DataSource</a> to a shared data source XML file.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Rendering_Tools_DataSourceTools_SaveSharedDataSource_System_IO_Stream_GrapeCity_ActiveReports_PageReportModel_DataSource_" data-uid="GrapeCity.ActiveReports.Rendering.Tools.DataSourceTools.SaveSharedDataSource(System.IO.Stream,GrapeCity.ActiveReports.PageReportModel.DataSource)">
          <a class="xref" href="GrapeCity.ActiveReports.Rendering.Tools.DataSourceTools.SaveSharedDataSource.html#GrapeCity_ActiveReports_Rendering_Tools_DataSourceTools_SaveSharedDataSource_System_IO_Stream_GrapeCity_ActiveReports_PageReportModel_DataSource_">SaveSharedDataSource(Stream, DataSource)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the specified <a class="xref" href="../MESCIUS.ActiveReports.Core.Rdl/GrapeCity.ActiveReports.PageReportModel.DataSource.html">DataSource</a> to a shared data source XML file.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Rendering_Tools_DataSourceTools_ToStream_GrapeCity_ActiveReports_PageReportModel_DataSource_" data-uid="GrapeCity.ActiveReports.Rendering.Tools.DataSourceTools.ToStream(GrapeCity.ActiveReports.PageReportModel.DataSource)">
          <a class="xref" href="GrapeCity.ActiveReports.Rendering.Tools.DataSourceTools.ToStream.html#GrapeCity_ActiveReports_Rendering_Tools_DataSourceTools_ToStream_GrapeCity_ActiveReports_PageReportModel_DataSource_">ToStream(DataSource)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the specified <a class="xref" href="../MESCIUS.ActiveReports.Core.Rdl/GrapeCity.ActiveReports.PageReportModel.DataSource.html">DataSource</a> to a shared data source XML stream.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
