C
Charles Jacobus
I'm finding that in some documents in Word 2003 (5+ pages, especially
documents with tables) pictures (Shapes) aren't made visible after
converting them from inline shapes using the ConvertToShape function. This
only seems to be a problem in Word 2003; the same scenario in prior versions
of Word works fine.
If I manually refresh the Word document (e.g., switch views, Ctrl+Home and
Ctrl+End, etc.), then the picture becomes visible.
I've tried ScreenUpdating and ScreenRefresh with no luck, but any
suggestions are welcome.
Anyone else experience this? Any known solution/workaround.
Thanks.
Charles.
####################################
Code sample:
Set TheInlineShape =
m_WordApp.ActiveDocument.InlineShapes.AddPicture(ImageLoc, False, True,
m_WordApp.Selection.Range)
Set TheShape = TheInlineShape.ConvertToShape
TheShape.WrapFormat.Type = wdWrapNone
TheShape.Name = TICKMARK_NAME_PREFIX & ShapeID
TheShape.Visible = True
documents with tables) pictures (Shapes) aren't made visible after
converting them from inline shapes using the ConvertToShape function. This
only seems to be a problem in Word 2003; the same scenario in prior versions
of Word works fine.
If I manually refresh the Word document (e.g., switch views, Ctrl+Home and
Ctrl+End, etc.), then the picture becomes visible.
I've tried ScreenUpdating and ScreenRefresh with no luck, but any
suggestions are welcome.
Anyone else experience this? Any known solution/workaround.
Thanks.
Charles.
####################################
Code sample:
Set TheInlineShape =
m_WordApp.ActiveDocument.InlineShapes.AddPicture(ImageLoc, False, True,
m_WordApp.Selection.Range)
Set TheShape = TheInlineShape.ConvertToShape
TheShape.WrapFormat.Type = wdWrapNone
TheShape.Name = TICKMARK_NAME_PREFIX & ShapeID
TheShape.Visible = True