Hi Giorgio,
I have a problem: how can i insert an image in a bookmark into a
textCell?
I utilise the following code:
// oWriter is my document
objBook = oWriter.Bookmarks.getByName("MyBookmark") //--> "MyBookmark"
is a bookmark into a textCell
objCurs=objBook.Anchor.Text.createTextCursorByRange(objBook.Anchor)
...
oWriter.text.insertTextContent(objCurs,objGraph,True) //objGraph is my
graphic object
Now, if "MyBookmark" is placed in a text, i haven't problems;
however if "MyBookmark" is placed into a TextCell i have a program
error and my image is not placed in a table...
Is There anybody that can help me?
P.S.: Sorry for my English
The XText and the XTextCursor in your sample aren't related aren't related.
Removing the line that created the curcsor and then using the line
objBook.Anchor.text.insertTextContent(objBook.Anchor,objGraph,True)
to insert the graphic, should do the trick.
Hope that helps
Regards
Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]