Board index » delphi » How can I make a Word document readonly in TWebBrowser?

How can I make a Word document readonly in TWebBrowser?

I am displaying a Word document from a local drive and I need it to be
un-editable by the user.

Thanks in advance,

Cheers,
S. Adams

 

Re:How can I make a Word document readonly in TWebBrowser?


Quote
> I am displaying a Word document from a local drive and I need it to be
> un-editable by the user.

My guess is, that TWebBrowser.Document in that case is actually something
like _Application or _Document (as imported in the Word2000 type libraries).
Perform a QueryInterface on it and find out if that is the case.
Somehow you should be able to set a readonly property on the document, but
that's clearly a Word automation issue and that's not my area of expertise.

--
Martin

Other Threads