Shape.AlternativeText does not work?

Hi,


I am using Aspose.words v11.6
I am inserting an image into a word document and setting an alternative text to the image.
While the image gets inserted correctly into the document, the alternative text does not get applied.
Here is my code snippet:

Dim doc = New Document()
Dim builder = New DocumentBuilder(doc)
Dim image = builder.InsertImage(imageStream, RelativeHorizontalPosition.Page, 0, RelativeVerticalPosition.Page, 0, builder.PageSetup.PageWidth, builder.PageSetup.PageHeight, WrapType.Inline)
image.AlternativeText = “Some dummy alternate text”
doc.Save(“c:\temp\imagewithAlt.docx”, SaveFormat.Docx)

In the resulting document the image is displayed as expected but when I right click the image, select “format picture” menu and then open the Alt Text tab, there is nothing in that tab.

Can you confirm if I am doing this correctly or does the AlternativeText need to be set in a different way?

Thanks
mqs


Hi Samir,

Thanks for your query. I have managed to reproduce the same issue at my side. I have logged this issue as WORDSNET-6836
in our issue tracking system. I have linked this forum thread to the
same issue and you will be notified via this forum thread once this
issue is resolved.

We apologize for your inconvenience.

Hi,


With some trial and error we found that the AlternativeText property does get set when saving to a “.doc” format. So seems like the issue is restricted to when saving to a “.docx” format only.

We have switched our code to temporarily save our document in the “.doc” format, but certainly would like to be able to work with the “.docx” format in the future.

mqs

Hi Samir,

Thanks for sharing the information. We had already logged this information with the same issue WORDSNET-6836
in our issue tracking system. We will update you via this forum thread once this issue is resolved.

The issues you have found earlier (filed as WORDSNET-6836) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.