Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Document Options
Message
 
To
25/01/2000 15:20:33
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00322387
Message ID:
00322395
Views:
22
>Hi Cetin,
>I wonder if you could help me. I've been doing quite a bit with Word and oword.documents.open(theDoc+'.doc') works fine for me. I wanted to add readonly to this, but I'm not sure how. I tried doing this: oword.documents.open filename:=theDoc+'.doc', readonly:=True but it doesn't like it. I also stored the value of theDoc+'.doc' to theDoc and tried ...filename:=&theDoc, readonly:=True but it doesn't like that either. I really need to be able to open a file as REadOnly and also, in another instance, have a password. I'd really appreciate hearing from you.

oword.documents.Open("c:\mydoc.doc", .t., .t.)
ReadOnly is 3-rd parameter (the second parameter is ConfirmConversions)

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform