开发者

making the xml spreadsheet readonly

I'm trying to create a xls from a xml document (Its actually a xml which is created.. I kinda fool the registry to open it in Excel by naming it as .xls).

My question being... How do i make this excel read-only? That is.. is there any tags in xml that can make the spreadsheet readonly? Thanks in advance开发者_StackOverflow中文版....


In office documents read only mode can be recommended (or forced with a password), this is MS office XML schema tag though. XML is just a set of rules for encoding documents in machine-readable form it doesn't define tag content.

<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
<ReadOnlyRecommended/>
</OfficeDocumentSettings>


XML is an open standard markup file with text content. So it can be opened using any text editor and the content can be read. So even if you think of putting a tag for read-only attribute, it won't be of any use.

So You can not make it read-only as such.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜