How to get visio to re-evaluate formulas when opening a document with an unreliable visio

I have a module that creates a Visio (VDX) file outside of Visio. According to the SDK, this refers to "untrusted" XML. I created my xml file by copying Masters from my stencil and then referring to them using an XML sparse file.

In my sparse xml, I override the location and size of the form as follows:

<Shape ID="154" Master="0">
       <Text>Text of the shape</Text>
       <XForm>
         <PinX>2.90625</PinX>
         <PinY>3.895833333333333</PinY>
         <Width F="No Formula">0.75</Width>
         <Height F="No Formula">0.5</Height>
       </XForm>
</Shape>

My figure is a group with sub-figures.

It works, Visio can open it, but sub-forms have the default width and height of the wizard. Also, links between shapes are not routed correctly.

If I copy / paste the same from a new file, then I get the expected result.

I tried to force the width and height of the subforms. I get the same problem.

VBA , trigger() Cell, . , . , enter , .

, visio , .

, , . , .

.

+3
2

http://blogs.office.com/2013/01/29/10-tips-for-developers-working-with-the-visio-vsdx-file-format/

RecalcDocument docPropscustom.xml. , VDX, . , , RecalcDocument . . custom.xml RecalcDocument .

DCtDZ.png

0

Source: https://habr.com/ru/post/1718209/


All Articles