在某些行中导出具有受保护功能的xls文件 [英] Export xls file with protected feature in some rows

查看:108
本文介绍了在某些行中导出具有受保护功能的xls文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我需要导出一个xls文件.导出文件后,应该保护现有数据(不可编辑),但是我可以在新行中将新数据添加到该xls文件中.
我用过
worksheet sheet = new worksheet();
sheet.protected = true;

这使得整个xls表都受到保护(不可编辑),但是我无法使用新数据添加任何新行.

任何人都可以在这方面帮助我.

在此先感谢您.

Hello,

I need to export a xls file. After exporting the file, the existing data should be protected (not editable) but I can add new data in a new row to that xls file.
I have used
worksheet sheet=new worksheet();
sheet.protected=true;

This makes the whole xls sheet protected (not editable) but I can not add any new row with new data.

Can anybody please help me in this regards.

Thanks in advance.

推荐答案

我用Google搜索了您的问题,发现
I googled your question and found AllowInsertingRows[^]


这篇关于在某些行中导出具有受保护功能的xls文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆