469,918 Members | 2,126 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,918 developers. It's quick & easy.

Need to have a Windows program that opens a word document for read only.

I have a need to have a program open a Word document and display it to the
user. The user will not be able to touch the document - it will be read
only.

Anybody have any code or links that do this?

Also - if I can find ones to do Excel that would be great also.

TIA - Jeff.
Oct 10 '08 #1
1 912
On Fri, 10 Oct 2008 11:25:52 -0700, Mufasa <jb@nowhere.comwrote:
I have a need to have a program open a Word document and display it to
the
user. The user will not be able to touch the document - it will be read
only.

Anybody have any code or links that do this?

Also - if I can find ones to do Excel that would be great also.
I don't have any specific examples, but I believe you'll need to use the
Office interop classes to do it. Word and Excel both offer a "read-only"
option when opening a file, but you have to use that option from within
the application itself.

Here's a starting point:
http://msdn.microsoft.com/en-us/library/bb726436.aspx

Pete
Oct 10 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

87 posts views Thread by Sony Music CDs install Malware | last post: by
1 post views Thread by live | last post: by
66 posts views Thread by genestarwing | last post: by
6 posts views Thread by naknak | last post: by
12 posts views Thread by adamurbas | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.