移除spire.XLSfor.netv9.3.10水印文本

标签:
it |
分类: other |
(1)使用de4dot对Spire.XLS.dll进行处理,得到Spire.XLS_unpack.dll
(2)使用dnspy 对Spire.XLS_unpack.dll进行编辑,查找字符串找到待处理的代码。
A_0.Name = "Evaluation Warning";
CellRange cellRange = A_0.Range[1, 2];
cellRange.Text = "Spire.XLS for .NET";
cellRange.Style.Font.IsBold = true;
//...
A_0.Activate();
CellRange cellRange = A_0.Range[1, 2];
cellRange.Text = "Spire.XLS for .NET";
cellRange.Style.Font.IsBold = true;
//...
A_0.Activate();
编辑IL代码,直接从函数return就行了。
右击,编辑IL,让此函数返回空字符串就完成了。
保存修改过的模块,替换原来的Spire.XLS.dll 即可使用。