# GrapeCity.ActiveReports.Export.Excel.Section.XlsSecurity

## Content

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



  <h1 id="GrapeCity_ActiveReports_Export_Excel_Section_XlsSecurity" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsSecurity" class="text-break">XlsSecurity Class
</h1>
  <div class="markdown level0 summary"><p>Encapsulates the information necessary to provide excel document security and encryption.</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">XlsSecurity</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.html">GrapeCity.ActiveReports.Export.Excel.Section</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Export.Excel.dll</h6>
  <h5 id="GrapeCity_ActiveReports_Export_Excel_Section_XlsSecurity_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(ExpandableObjectConverter))]
public class XlsSecurity</code></pre>
  </div>
  <h5 id="GrapeCity_ActiveReports_Export_Excel_Section_XlsSecurity_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>If a WritePassword or a Password is supplied the Excel application will prompt for a write or open access password.
If a WritePassword or a Password is not supplied no password will be requested to open the document.
By correctly supplying the Password, the user will be able to open the document.
By correctly supplying the WritePassword, the user will be able to write the document.
If the read only recommended is set to true, the Excel application will prompt user whether to open document as read-only.</p>
</div>
  <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="GrapeCity_ActiveReports_Export_Excel_Section_XlsSecurity_Password" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsSecurity.Password">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsSecurity.Password.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsSecurity_Password">Password</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the password which can be entered to permit to open Excel document.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Excel_Section_XlsSecurity_ProtectedBy" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsSecurity.ProtectedBy">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsSecurity.ProtectedBy.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsSecurity_ProtectedBy">ProtectedBy</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the User Name responsible to password protect the excel spreadsheet.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Excel_Section_XlsSecurity_ReadOnlyRecommended" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsSecurity.ReadOnlyRecommended">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsSecurity.ReadOnlyRecommended.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsSecurity_ReadOnlyRecommended">ReadOnlyRecommended</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value to indicate if the Excel file was saved as read only recommended.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Excel_Section_XlsSecurity_WritePassword" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsSecurity.WritePassword">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsSecurity.WritePassword.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsSecurity_WritePassword">WritePassword</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the write password of the Excel file.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
