# GrapeCity.ActiveReports.Rdl.Themes.XmlThemeWriter.WriteTheme

## Content

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



<h1 id="GrapeCity_ActiveReports_Rdl_Themes_XmlThemeWriter_WriteTheme_" data-uid="GrapeCity.ActiveReports.Rdl.Themes.XmlThemeWriter.WriteTheme*">WriteTheme Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rdl_Themes_XmlThemeWriter_WriteTheme_" data-uid="GrapeCity.ActiveReports.Rdl.Themes.XmlThemeWriter.WriteTheme*"></a>
<h4 id="GrapeCity_ActiveReports_Rdl_Themes_XmlThemeWriter_WriteTheme_GrapeCity_ActiveReports_Rdl_Themes_Theme_System_IO_FileInfo_" data-uid="GrapeCity.ActiveReports.Rdl.Themes.XmlThemeWriter.WriteTheme(GrapeCity.ActiveReports.Rdl.Themes.Theme,System.IO.FileInfo)">WriteTheme(Theme, FileInfo)</h4>
<div class="markdown level1 summary"><p>Saves the specified theme to the specified file.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void WriteTheme(Theme theme, FileInfo fileInfo)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Rdl.Themes.Theme.html">Theme</a></td>
      <td><span class="parametername">theme</span></td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.Rdl.Themes.Theme.html">Theme</a> object to save.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.fileinfo">FileInfo</a></td>
      <td><span class="parametername">fileInfo</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.fileinfo">FileInfo</a> object representing
the file where the theme will be saved.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Rdl_Themes_XmlThemeWriter_WriteTheme_GrapeCity_ActiveReports_Rdl_Themes_Theme_System_IO_FileInfo__examples">Examples</h5>
<pre><code class="lang-csharp">var themeFileInfo = new FileInfo("path/for/theme.rdlx-theme");
XmlThemeWriter.WriteTheme(yourTheme, themeFileInfo);</code></pre>

</div>
