Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Visio Export and Import (Read 2322 times)
willod
YaBB Newbies
*
Offline



Posts: 2
Joined: Jun 23rd, 2007
Visio Export and Import
Jun 23rd, 2007 at 8:30pm
Print Post  
I am trying to use the Visio import and export in FlowchartX Pro and cant get it to work! Is there any VB sample code available?
Thanks  Smiley
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Visio Export and Import
Reply #1 - Jun 25th, 2007 at 6:59am
Print Post  
Hi,

Are you using the .NET or the ActiveX control? When exporting to Visio, the VisioExport.vxt file must be in the same folder where your executable file is. In addition, the MSXML runtime must be installed on the systems where the ActiveX import/export components are used.

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



Posts: 2
Joined: Jun 23rd, 2007
Re: Visio Export and Import
Reply #2 - Jul 2nd, 2007 at 4:59pm
Print Post  
Hi Stoyan
I am using the ActiveX version. I have the VisioExport.vxt in the .exe directory and a reference to MSXML.

If i use the folowing code I do get a .vdx diagram created (a blank one as expected).
Dim Visio_flow As New FcxVisioExportLib.VisioExporter
Dim flow As New FLOWCHARTLib.FlowChart
Visio_flow.ExportVDX(flow, "D:\test.vdx")

But if I try and refer to my existing flow chart such as

Dim Visio_flow As New FcxVisioExportLib.VisioExporter
Dim flow As New FLOWCHARTLib.FlowChart
flow = AxFlowChart_Process_Flow
Visio_flow.ExportVDX(flow, "D:\test.vdx")

I get an 'Specified cast is not valid' error.

If i refer to the flowchart directly such as
     Visio_flow.ExportVDX(AxFlowChart_Process_Flow, "D:\test.vdx")

I get a 'No such interface supported'!

So the export seems to be working ok until I refer to my existing flowchart!
Thanks for your help
Will

  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Visio Export and Import
Reply #3 - Jul 3rd, 2007 at 5:30am
Print Post  
Hi Will,

Is AxFlowChart_Process_Flow a FlowchartX instance on a VB form?

This is a test project we use to test the export and import components, please check if it works your system:

https://www.mindfusion.org/_temp/VisioTester.zip

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint