c# - Visio Document Variable -
i store variable data inside of visio file similar how can in word file, unable find similar visio. word example be:
worddocument.variables("myvar").value = "myvariable";
alternatively, can store file (xml instance) inside of visio file, read , write file @ run time?
first option voiced @jon fournier. documentsheet visio way store document-specific values. check out article, gives more details: http://visualsignals.typepad.co.uk/vislog/2011/11/shapes-with-global-values.html
the second option document.solutionxmlelement, allows store arbitrary xml fragment in visio file document. https://msdn.microsoft.com/en-us/library/office/aa218416.aspx
third option (note bit archaic) create hidden master , store document data in there (in it's shapesheet).
note visio not support "customdocumentproperties" way other office application do. see more information here: https://social.technet.microsoft.com/forums/office/en-us/85fbc601-1612-4e63-91f4-b900a59109bd/how-to-access-visio-document-properties-builtindocumentproperties-customdocumentproperties-from?forum=visiogeneral
although there "normal" office document properties exposed via api; likte "title" , "company" can accessed directly document properties (i.e. "document.company"), user custom ole compound document properties not exposed directly , not available visio api. if interested in might find out topic useful: http://visguy.com/vgforum/index.php?topic=6535.0
Comments
Post a Comment