Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 909
  • Last Modified:

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.
0
ShaileshShinde
Asked:
ShaileshShinde
  • 2
1 Solution
 
Scott HelmersVisio 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

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now