Solved

Export and Import contents into visio file

Posted on 2012-04-09
4
876 Views
Last Modified: 2012-04-11
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
Comment
Question by:ShaileshShinde
  • 2
4 Comments
 
LVL 17

Expert Comment

by:Anuroopsundd
ID: 37823001
0
 
LVL 30

Accepted Solution

by:
Scott Helmers earned 100 total points
ID: 37827375
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
 
LVL 1

Author Comment

by:ShaileshShinde
ID: 37832118
Hello Expert,

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

Thanks,
Shail
0
 
LVL 1

Author Closing Comment

by:ShaileshShinde
ID: 37832189
Thanks All!
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question