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….
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>