Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to Import Visio [.vxd] in .Net Diagram (Read 5255 times)
khurramdbg
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Mar 29th, 2010
How to Import Visio [.vxd] in .Net Diagram
Mar 30th, 2010 at 9:11am
Print Post  
Hi I want to import visio .vxd file into .net diagram. any help.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to Import Visio [.vxd] in .Net Diagram
Reply #1 - Mar 30th, 2010 at 10:32am
Print Post  
Hi,

Add a reference to MindFusion.Diagramming.Import.Visio.dll, create a VisioImporter instance and call its ImportPage method.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
khurramdbg
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Mar 29th, 2010
Re: How to Import Visio [.vxd] in .Net Diagram
Reply #2 - Mar 30th, 2010 at 10:45am
Print Post  
System.Xml.XmlException was caught
  Message="Data at the root level is invalid. Line 1, position 1."
  Source="System.Xml"
  LineNumber=1
  LinePosition=1
  SourceUri=""
  StackTrace:
      at System.Xml.XmlTextReaderImpl.Throw(Exception e)
      at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
      at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
      at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
      at System.Xml.XmlTextReaderImpl.Read()
      at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
      at System.Xml.XmlDocument.Load(XmlReader reader)
      at System.Xml.XmlDocument.LoadXml(String xml)
      at MindFusion.Diagramming.Import.VisioImporter.ImportPage(String vdxPathName, Diagram diagram, Int32 PageIndex)
      at MindFusion.Diagramming.Import.VisioImporter.ImportAllPages(String vdxPathName, Diagram diagram)


getting this exception. any Help
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to Import Visio [.vxd] in .Net Diagram
Reply #3 - Mar 30th, 2010 at 11:30am
Print Post  
VisioImporter only supports Visio XML Drawing files (VDX extension). Are you sure your file was saved in XML format?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint