Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open Word Document as readonly
Message
From
11/12/2007 10:30:49
 
 
To
11/12/2007 09:31:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01274757
Message ID:
01274779
Views:
12
>>I am using word automation code to open word documents, example:
>>
>>oWord = CREATEOBJECT("Word.Application")
>>oWord.VISIBLE = .T.
>>oDocument = oWord.Documents.ADD(thisform.wdFile)
>>
>>There are many documents in different folders and we want the users to be able to pull them up and view them, but not change them. It would be very time consuming to go through all of them and save each one as read only and I was wondering if there was a way to just open the document up as read only using the code?
>_________
>Kevin,
>
>this should work. They can use the SaveAs though
>
>>oWord = CREATEOBJECT("Word.Application")
>>oWord.VISIBLE = .T.
>
>ReadOnlyMode = .t.
>
>oWord.Documents.Open(m.thisform.wdFile, , m.ReadOnlyMode)
>
Thanks for the help. I was looking thru the Microsoft Office Automation with Visual Foxpro book I have and didn't see anything about opening as readonly.
``` Appreciate a normal day, it is always better than a bad one ```

Kev
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform