Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

If you set EncryptPassword, ExcelWriter will encrypt the generated spreadsheet - when Process is called - using RC4 encryption.

Signature
C#
C#
 public System.String EncryptPassword{ get; set; }
{signature}
{signature:
}
Signature
vb.net
vb.net
Public Property EncryptPassword() As String
{signature}
{remarks}
Set {{EncryptPassword}} to a string no longer than 15 characters.  Use this string to decrypt the file, either in Microsoft Excel or by setting [DecryptPassword|ExcelTemplate.DecryptPassword].

Set {{EncryptPassword}} *before* calling {{Process}}.
{remarks}
{example}{code:csharp|title=C#}
Remarks

Set EncryptPassword to a string no longer than 15 characters. Use this string to decrypt the file, either in Microsoft Excel or by setting DecryptPassword.

Set EncryptPassword before calling Process.

Example
Code Block
csharp
csharp
titleC#


          ExcelTemplate xlt = new ExcelTemplate();
          xlt.EncryptPassword = "MyPassword";
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


          Dim xlt As New ExcelTemplate()
          xlt.EncryptPassword = "MyPassword"
        
{code} {example}