Information générale
Catégorie:
COM/DCOM et OLE Automation
Thanks for all of your help. Using the following I'm able now to open
Word.Basic. using the following
#DEFINE wdPaperLetter 2
oWord = CREATEOBJECT("Word.Basic") &&Is the BASIC functions
oWord.AppShow()
oWord.AppMaximize()
oWord.FileNewDefault()
oWord.TogglePortrait
oWord.FilePageSetup.PaperSize = wdPaperLetter
I still get though "Member FILEPAGESETUP does not evaluate to an object."
as an error.
It seems like I must be making some small error in syntax as the other
functions are working fine. Only the last line
oWord.FilePageSetup.PaperSize = wdPaperLetter
continues to give me an error.
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