Solved

Export and Import contents into visio file

Posted on 2012-04-09
4
864 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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
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 …
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…

821 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