Information générale
Catégorie:
COM/DCOM et OLE Automation
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement