Export and Import contents into visio file

Hello Experts,

I got bunch of visio files  for translation. For this, I would like to export the text from the visio file into xml as source and target. once target gets translated import back the translated text into visio file.

Can you please suggest how this can be achieve using MS Visio, Perl or Macro in visio itself.

Thanks in Advance!
Shail.
LVL 1
ShaileshShindeAsked:
Who is Participating?
 
Scott HelmersConnect With a Mentor Visio Consultant, Trainer, Author, and DeveloperCommented:
Exporting to XML will be a bit easier and may not require any code: the Visio reporting feature includes an XML output format. In Visio 2010, on the Review tab click the Shape Reports button. In the report wizard, select the New button then step through the wizard. If all you need is the text displayed on each shape, choose <Displayed Text> and <Shape ID> on the second page of the wizard (shown below on the left). Save the report. Then when you run it choose XML as the output type (see dialog on the right below). dialogs If you need the contents of additional fields you can add them to the report definition.

The XML report output is fairly verbose but you will find both the shape ID and the text for each shape.

To get modified text back into the shapes will require writing code. You will use the Shape ID from the XML to identify each shape and will use the .Text property of the shape object to rewrite the text.
0
 
ShaileshShindeAuthor Commented:
Hello Expert,

Will try this option and get back to you if there is any issue.

Thanks,
Shail
0
 
ShaileshShindeAuthor Commented:
Thanks All!
0
All Courses

From novice to tech pro — start learning today.