Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic VisioExporter (Read 5689 times)
jemp
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Aug 3rd, 2010
VisioExporter
Aug 4th, 2010 at 7:18am
Print Post  
Dear Sirs,

I do not manage to use the ExportVDX method, it seems that I do not well understood what it request as first argument flowChartDoc ?!?

My following c# example throw an InvalidCastException with no explicit message...

Could someone drive me to the right path ?

FcxVisioExportLib.VisioExporter vx = new FcxVisioExportLib.VisioExporter();
vx.ExportVDX(this.axFlowChart1, @"C:\Test.vdx");

Thank you in advance for your help.

Best Regards
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: VisioExporter
Reply #1 - Aug 4th, 2010 at 8:05am
Print Post  
Hi,

The following should work; GetOcx() returns the IDispatch pointer represented by the .NET wrapper class:

vx.ExportVDX(axFlowChart1.GetOcx(), @"C:\Test.vdx");

For .NET applications better use this control, it has all FlowchartX features implemented as a pure .NET class library:
https://www.mindfusion.eu/FCNetDemo.zip

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


I love YaBB 1G - SP1!

Posts: 4
Joined: Aug 3rd, 2010
Re: VisioExporter
Reply #2 - Aug 4th, 2010 at 8:16am
Print Post  
Hi,

Thank you very much, it works like that...

I agree with you for the .net components, but unfortunately my clients just bought the ActiveX version and they are not ready to pay for another version...

Thanks

Best Regards
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: VisioExporter
Reply #3 - Aug 4th, 2010 at 8:35am
Print Post  
Hi,

If they just bought it and don't actually need the ActiveX control, we can exchange their license for the .NET control for no additional cost, to save you from the torture that COM interop is Smiley Otherwise they can get a discount for additional licenses.

Stoyan
  
Back to top
 
IP Logged
 
jemp
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Aug 3rd, 2010
Re: VisioExporter
Reply #4 - Aug 4th, 2010 at 8:55am
Print Post  
Hi Stoyan,

It would be very nice if they can change their license with the .net version...

I have some doubt about it anyway :

I already developed 70% of their application, will it have a lot of things to change from the ocx version ?

And another thing : their application will have to exchange some diagram from an external application (which is not mine) saved with the axFlowChart1.SaveToFile() and axFlowChart1.LoadFromFile() methods...

Will it still work if they are generated by an activex version and loaded with the .net version ?

Thank you.

Best Regards
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: VisioExporter
Reply #5 - Aug 4th, 2010 at 9:05am
Print Post  
Hi,

It will work only if using SavetoXml and LoadFromXml. The APIs are very different though, so I suppose you'll stick to the ActiveX control.

Stoyan
  
Back to top
 
IP Logged
 
jemp
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Aug 3rd, 2010
Re: VisioExporter
Reply #6 - Aug 4th, 2010 at 9:16am
Print Post  
Hi,

Thank you for your answer...

As I have no control on the other application and that it is not exporting with xml method, like you said I am condemned to the ActiveX Control...

Thank you very much anyway...

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