Solved

Export and Import contents into visio file

Posted on 2012-04-09
4
846 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
Comment Utility
0
 
LVL 30

Accepted Solution

by:
Scott Helmers earned 100 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks All!
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now