ActiveReports Developer 7
ProtectWorkbookPassword Property
See Also 
GrapeCity.ActiveReports.Export.Excel.v7 Assembly > GrapeCity.SpreadBuilder Namespace > Workbook Class : ProtectWorkbookPassword Property

Glossary Item Box

Sets/gets the password for protecting the elements in workbook.

Syntax

Visual Basic (Declaration) 
Public Property ProtectWorkbookPassword As System.String
C# 
public System.string ProtectWorkbookPassword {get; set;}

Remarks

The password will take effect when one of ProtectWorkbookWindows and ProtectWorkBookStructure property is true. If one or both ProtectWorkbookWindows and ProtectWorkBookStructure property are set to true, Workbook.Save method will be invoked.At this time, ProtectWorkbookPassword validity will be checked.
If file format is Xls95/Xls97Plus,  InvalidPasswordExpection will be thrown out if ProtectWorkbookPassword contains more than 15 characters.If file format is Xlsx, InvalidPasswordExpection will be thrown out if ProtectWorkbookPassword contains more than 255 characters.

See Also