Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp and word
Message
De
15/11/2000 10:04:47
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00428455
Message ID:
00442087
Vues:
20
>I've resorted to the following using a Macro as a workaround in MSWORD.
>
>I'm unsure as to how wise it is to invest any more time in getting Word 6
>to cooperate, as it does not seem to implement OLE in the easiest or
>most consistent way. Can anyone tell me what version of WORD was
>the first to have OLE Browser and more reliable OLE capacity?
>
>oWord = CREATEOBJECT("Word.Basic") && Load BASIC functions
>oWord.AppShow()
>oWord.AppMaximize()
>oWord.FileNewDefault()
>oWord.ToolsMacro("Legal",1) && See Legal macro Wordbasic contents below
>oWord.FileprintPreview() && check it out.
>
>; WordBasic macro
>Sub MAIN
>FilePageSetup .ApplyPropsTo = 4, .PageHeight = "14in"
>End Sub

Word97 (I think 8.0) and up have new object model. IMHO you should be strict to not to support old format. I don't know the prices in US but yet don't think an upgrade costs more than 10-12 hrs of a developer. With support of old version I think they would have to pay more hours to developer. I might be more than a newbie in automation but honestly speaking no fresh automation code (not using code in bucket) gets less than a day (if not really a simple one).
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