Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word and VFP
Message
De
18/07/2002 04:29:12
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
17/07/2002 15:38:58
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00679751
Message ID:
00679899
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform