Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Word Automatic InsertSymbol
I am attempting to use Word automation to insert a box symbol into a Word Table. Everytime i get to the range inside of the table cell, I get the following error:
OLE IDispatch exception code 0 from Microsoft Word: This method or property is not available because the object does not refer to simple range or selection...
My code is something like this:
otable = oword.activedocument.tables.add( 1,5)
ocell = otable.cell( 1,3)
orange = ocell.range
orange.InsertSymbol( 9633,'',1 )
Can anyone help me to do this without the error?
DB
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