msword read only viewer for desktop vb.net 2005??
is it possible to open a word document into vb.net but as a read only type report?
ive tried
Code:
ActiveDocument.Protect(Word.WdProtectionType.wdAllowOnlyReading)
but this still allows the user to copy and paste the contents and change it.
i spose im after something similar to pdf type functionality
Re: msword read only viewer for desktop vb.net 2005??
With pdfs you can still select the text and even copy pictures.
You could, upon opening of the document, disable the Save and Save As... menu items as well as their related toolbar buttons but you would still be able to select text.
What about printing it to a pdf file using a free pdf print driver? Then from there you can do a Process.Start on the pdf.
Re: msword read only viewer for desktop vb.net 2005??
You just disable the save, save as, cut and copy options in your word document when you open the document. In read only mode you can copy the text. So try to disable the above options.
Re: msword read only viewer for desktop vb.net 2005??
Thats what I said but just because you disable the copy/paste buttons doesnt mean they cant do it via the mouse and keyboard copy/paste. ;)