Board index » delphi » Making Word Document non editable

Making Word Document non editable

Hi all,
I want to do following things
- open a Word Document in Ole container.
- Make it non editable so that user can navigate but cannot edit it.

Thanks in advance,

Yuvraj,

Mumbai, India.

 

Re:Making Word Document non editable


Once you have the Document object you can do this:

Document.Protect(wdAllowOnlyComments, EmptyParam, EmptyParam);
Document.Save;

Regards,

Michael Cessna

Quote
"Yuvraj Pingale" <yuvraj.ping...@planmain.com> wrote in message

news:3e1ab5a4@newsgroups.borland.com...
Quote
> Hi all,
> I want to do following things
> - open a Word Document in Ole container.
> - Make it non editable so that user can navigate but cannot edit it.

> Thanks in advance,

> Yuvraj,

> Mumbai, India.

Other Threads