Click here to Skip to main content
15,887,895 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have to insert a table, by code, using word.interop, but this have to be read only.
this table will be into a Break page. So I need to know how do that.

What I have tried:

I have not tried nothing, just looking for information
Posted
Updated 22-May-18 10:07am
Comments
Mohibur Rashid 14-May-18 23:13pm    
How does one write on a read only table or file or directory? Perhaps, some user should have the privileges to write, where as other should only read.

1 solution

As far as i know - up to Word 2010 it's impossible...

As MSDN states[^]:
Word 2013:
You can mark a document as read-only and still allow changes to selected parts.

You can make these unrestricted parts available for anyone who opens the document, or you can grant permission to specific individuals so that only they can change the unrestricted parts of the document.


See this: How to: Programmatically Protect Documents and Parts of Documents[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900