Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automatic InsertSymbol
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Word Automatic InsertSymbol
Miscellaneous
Thread ID:
00840443
Message ID:
00840443
Views:
54
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
Next
Reply
Map
View

Click here to load this message in the networking platform