Hi all,
I’m trying to file shape data for page using:
Diagram diagram = new Diagram(“c:\tmp\Template.vstx”);
Page page = diagram.getPages().get(0);
PropCollection pagePropCollection = page.getPageSheet().getProps();
for (int i = 0; i < pagePropCollection.getCount(); i++) {
Prop prop = pagePropCollection.get(i);
…
prop.getValue().setVal(value)
}
…
diagram.save(outputFileName, diagramSaveOptions);
diagram.dispose();
I can see filled value using another my code:
Page page = diagram.getPages().get(0);
PropCollection pagePropCollection = page.getPageSheet().getProps();
for (int i = 0; i < pagePropCollection.getCount(); i++) {
Prop prop = pagePropCollection.get(i);
String name = prop.getName();
String value = prop.getValue().getVal();
...
But I cannot see any values is Visio “Shape Data - ThePage”!
Can you help me, please?
I’m using:
aspose-diagram-22.10.0.jar
Microsoft® Visio® Plan 2 MSO (Version 2210 Build 16.0.15726.20070) 64-bit
I can send you source code, visio template and result visio file.
BR
Radek