Alternative Text Disappears

D

Denis

I'm working on a Visual Studio Tools for Office (VSTO) addin which takes
advantage of the alternativetext property on shapes in Office Apps such as
Powerpoint/Publisher.

I've encountered an odd bug that if you click on a table and readjust the
dimensions of the rows/columns, the alternative text is cleared.

Is there any way to catch this event so that the alt text can be saved and
rewritten or any other means of ensuring that the alt text doesn't get wiped?

Thanks,

Denis
 
S

Steve Rindsberg

I'm working on a Visual Studio Tools for Office (VSTO) addin which takes
advantage of the alternativetext property on shapes in Office Apps such as
Powerpoint/Publisher.

I've encountered an odd bug that if you click on a table and readjust the
dimensions of the rows/columns, the alternative text is cleared.

Is there any way to catch this event so that the alt text can be saved and
rewritten or any other means of ensuring that the alt text doesn't get wiped?

Is this happening in PowerPoint or Publisher? I can't repro it in PowerPoint.

I do find it suspicious that there's no UI for setting Alt/Web text on tables
(in PPT 2007 or in 2003). Possibly the fact that we can apply ALT text to
tables at all is a bug?

One possible workaround:

When applying the Alt text, also apply a tag to the table object, along the
lines of:

Call .Tags.Add("AltText", "your alt text here")

Then when you need to retrieve the alt text you can either use the tag itself
or use code to test for blank/missing ALT text on the shape itself and if
blank, replace it with the text from the tag.
 
Top