We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

.getText() is sometimes different than shape.Text in Visio (Aspose.Diagram Java 22.9, .vsd files)

Aspose.Diagram for Java returns different values for the “text” field compared to what is visible in Visio for vsd files.

Visio version: MS Visio Professional 2016

Aspose.Diagram version (Java): aspose-diagram-22.9

I’ve attached an example file, you can check the text from visio with the following Visual Basic macro (select the shape in visio - e.g. with mouse or in drawing explorer - before running the script).

 Sub GetText()
    Set sel = ActiveWindow.Selection
    sel.IterationMode = 0
    Set shp = sel.PrimaryItem
    Debug.Print shp.Text
End Sub
  • wrong_text_empty.vsd
    • id: 388
    • correct text: HVt 67
    • aspose text:

wrong_text_empty.zip (21.1 KB)

Similar (but different) issue, maybe it helps.

@msardi

Another ticket as DIAGRAMJAVA-51033 has been logged in our issue tracking system for the sake of investigation. We will surely look into its details and let you know once the ticket is resolved. Please be patient and spare us some time.

We are sorry for the inconvenience.