Browse by Tags
Sorry, but there are no more tags available to filter with.
-
使用Open XML SDK保護工作表不被修改
-
在先前 測試 中,Open XML SDK是唯一挑戰ReportViewer匯出Excel檔修改成功的程式庫,手邊的下一步需求是要將工作表(Worksheet)設為不可修改。 在Open XML SDK中,有個 SheetProtection 類別,將其加入xlsx的XML結構,就可向應用程式宣告該工作表允許或禁止的操作,例如: 刪除欄(deleteColumns)、重設儲存格格式(formatCells)、插入列(insertRow)... 等等。在SheetProctection設定可以指定解除鎖定的密碼雜湊值...