|
Prev: Need to have a Windows program that opens a word document for read only.
Next: inspecting an object's properties
From: Peter Duniho on 10 Oct 2008 14:34 On Fri, 10 Oct 2008 11:25:52 -0700, Mufasa <jb(a)nowhere.com> wrote: > 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 |