We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Protecting / Locking Excel Cells from Edit via Aspose.Cells for SSRS Reporting Services


i would like to know how to lock or protect my excel file coming out of SSRS. so users can see it, but not edit it.



Please reference attached file to modify Encryption parameter at Aspose.Cells.ReportingServices.xml file.


i dont want to encrypt every report that i run.

i want to protect certain reports, so the contents could not be changed.

Hi ,

Please try following Encryption Configuration.

<Encryption value=“on”>

<Password value=“12345”/>

<EncryptionType value=“Microsoft Strong Cryptographic Provider”/>

< KeyLength value=“128”/>

<Password value=“123456”/>

<EncryptionType value=" XOR “/>

<KeyLength value=“128”/>


<Password value=“123456”/>

<EncryptionType value=” XOR "/>

<KeyLength value=“128”/>


i am NOT trying to encrypt, i am trying to LOCK/protect certain reports



We have added a new feature for excel report file protect function.

Please download the latest version: Aspose.Cells for Reporting Services v1.7.0.34 (SSRS 2008 R2)

Update the Aspose.Cells.ReportingServices.dll file which is at following folder:

${ SSRS 2008 R2 installation folder}\Reporting Services\ReportServer\bin.

Check Aspose.Cells.ReportingServices.dll version .

Add new configuration information for protect function at Aspose.Cells.ReportingServices.xml.



Please reference the attached file (Aspose.Cells.ReportingServices.xml).

Is there a SQL Server 2008 version of the latest or

v1.7.0.34 for



The latest version of Aspose.Cells for ReportingServices is v1.7.0.36.

I have provided links to in this post: 315373, for your help I am posting them again.

Please download one of the following depending on your SQL Server Version.

For SSRS 2008 or 2008 R2

Aspose.Cells for Reporting Services v1.7.0.36 (SSRS 2008)
Aspose.Cells for Reporting Services v1.7.0.36 (SSRS 2008 R2)

MSI Installer
Aspose.Cells for Reporting Services v1.7.0.36 (MSI)


thank you. we want to control which part of the file, which cells, can be protected, not just the entire file


<!–[if gte mso 9]>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<m:lMargin m:val=“0”/>
<m:rMargin m:val=“0”/>
<m:defJc m:val=“centerGroup”/>
<m:wrapIndent m:val=“1440”/>
<m:intLim m:val=“subSup”/>
<m:naryLim m:val=“undOvr”/>
<![endif]–><!–[if gte mso 10]>

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";}


Ok, I tested the locking of cells. It works. Is there a way we could control which cells are locked and which cells are not locked? They want comments column to be editable and the rest of the report locked. Also, could we export the worksheet as protected? Meaning users would not be able to modify the locked cells. Until the worksheet is protected, users are allowed to modify the locked cells. We need both features.


Please provide the demo file for Excel. Tell us your control area. Currently, we only support Excel protect & locking functionality for the whole workbook or worksheet. When protecting worksheet in Excel, Excel only supports some portion of cells can be modified. So, if you realize to protect certain cells, you must have to manually set report item protected in the Aspose.Cells.ReportingServices.xml file.

Do you think that can meet your needs?

If yes, we will develop it soon.

Thank you.

can someone contact me? it is not clear what you mean


Please follow up this post and let us know your requirements.