This is a migrated thread and some comments may be shown as answers.

Is there a way to set a workbook to read-only?

3 Answers 371 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Chanan Zass
Top achievements
Rank 1
Chanan Zass asked on 21 Sep 2018, 09:54 AM

We're looking for a simple way to turn a workbook to read-only.

Since the workbook includes some 11 sheets, each with a different number of rows and columns we cannot use the spreadsheet range setting (range.set_enabled(false)).

We tried using the workbook.Protected parameter in code-behind, but the "Protected" parameter is somehow not accepted.

Any tips would be appreciated.

3 Answers, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 21 Sep 2018, 12:45 PM
Hello Chanan,

Please check the following KB that describes the same scenario: Load Excel file into a read-only Spreadsheet.

Regards,
Peter Milchev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Chanan Zass
Top achievements
Rank 1
answered on 21 Sep 2018, 01:58 PM

Thanks again, Peter.

We'll try this and be back to you.

0
Chanan Zass
Top achievements
Rank 1
answered on 22 Sep 2018, 08:08 AM

This works properly with "normal" Excel files (we tested it with a large file).

However, in our case, with our non-standard file, it doesn't. We can still double-click a cell and edit its content.

No big deal, actually, as we do not offer any possibility of saving the file. If required to export, we'll export the original (unedited) file.

Thanks again.

 

Tags
Spreadsheet
Asked by
Chanan Zass
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Chanan Zass
Top achievements
Rank 1
Share this question
or