Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp and word
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00428455
Message ID:
00441805
Vues:
14
Can anybody tell me what the 'Threshold' version of Word was that
implemented better OLE functionality. We are running Windows98 w/ Word 6
and I hate to invest any more time into development of routines
that will not be compatible with more recent and future editions of Word?
Also I don't want to have to retrain everybody on any Wordprocessing
interface that would be foriegn to them.

REGARDLESS

Here is what I'm finding works for me.
I was just about to give up, as the Word 6 Wordbasic seems to be clunky
at best and without some kind of object browser it seems like flying blind.

The following does work though with a workaround.

But I've had to resort to using a macro in MSWORD 6 in order to get this to cooperate



oWord = CREATEOBJECT("Word.Basic") &&Is the BASIC functions
oWord.AppShow()
oWord.AppMaximize()
oWord.FileNewDefault()
oWord.ToolsMacro("Legal",1)
oWord.FileprintPreview() && check it out.


WBasic contents of "Legal" macro.
Sub MAIN
FilePageSetup .ApplyPropsTo = 4, .PageHeight = "14in"
End Sub

WBasic contents of "Letter" macro.
Sub MAIN
FilePageSetup .ApplyPropsTo = 4, .PageHeight = "11in"
End Sub
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform