|
-
Apr 4th, 2007, 02:16 AM
#1
Thread Starter
Hyperactive Member
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
"...They even have the internet on computers..." :- Homer Simpson
"Second Place is First Looser" :- No Fear
-
Apr 4th, 2007, 02:56 AM
#2
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.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Apr 4th, 2007, 04:40 AM
#3
Registered User
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.
-
Apr 4th, 2007, 12:26 PM
#4
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.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|