Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word and VFP
Message
From
18/07/2002 04:29:12
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
17/07/2002 15:38:58
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00679751
Message ID:
00679899
Views:
19
>Hello,
>
> I need to know if there is a way to unprotect a Word Document via Automation? I am using the old Word.Basic object.
>
>Thanks
>
>Jim


Jim,
If you don't have a good reason use new object model.

oWordBasic = createobject('Word.Basic') && Word.basic
oWordApp = createobject('Word.Application') && Off97 and up

Word.Application object has wordbasic object to support word.basic commands if you want :

oWordApp.Documents.Open(...)
oWordApp.WordBasic.Fileopen(...) && Same as oWordBasic.Fileopen

oWordBasic.FileOpen(lcFileName,,,,lcPasswordDocument,,,lcWritePassword)
oWordApp.Documents.Open(lcFileName,,,,lcPasswordDocument,,,lcWritePassword)

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform