Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Visio Import library beta tests (Read 4767 times)
Forum Admin
YaBB Administrator
*****
Offline


Rock and Roll

Posts: 687
Joined: Apr 6th, 2003
Visio Import library beta tests
Aug 8th, 2005 at 3:21pm
Print Post  
A second beta build of the Visio Import library is now available for download here:

https://mindfusion.org/_beta/visio2fcx.zip

It fixes a crash that happened when importing Visio Entity Relationship diagrams.

To try it, unzip the file and use regsvr32.exe to register the FcxVisioImport.dll. The library requires installation of FlowChartX Pro.

The component's progID is "FlowChartX.VisioImporter". At this time the library can import Visio 2003 VDX file (Visio XML Drawings). Visio 2002 files are not supported.

Soon we'll start beta tests for an Export library that creates VDX files from FlowChartX drawings. Stay tuned.
  
Back to top
WWW  
IP Logged
 
Forum Admin
YaBB Administrator
*****
Offline


Rock and Roll

Posts: 687
Joined: Apr 6th, 2003
Re: Visio Import library beta tests
Reply #1 - Aug 15th, 2005 at 11:08am
Print Post  
We have uploaded a new build of the Visio import library beta version, it is available for download here:

https://mindfusion.org/_beta/visio2fcx.zip

The new dll fixes a bug which made the size of imported diagram elements incorrect when using some of the Visio measure units.
  
Back to top
WWW  
IP Logged
 
Forum Admin
YaBB Administrator
*****
Offline


Rock and Roll

Posts: 687
Joined: Apr 6th, 2003
Re: Visio Import library beta tests
Reply #2 - Aug 27th, 2005 at 3:31pm
Print Post  
A new build has been uploaded here:

https://mindfusion.org/_beta/visio2fcx.zip

The import process has been optimized greatly, now importing works much faster!

The API has been changed as follows:
- ImportVDX methods removed
- GetPageCount method added
- ImportPage method added
- ImportAllPages method added

These allow importing specific pages of the Visio document.
  
Back to top
WWW  
IP Logged
 
strong_peng
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 69
Joined: Jul 18th, 2007
Re: Visio Import library beta tests
Reply #3 - Nov 7th, 2007 at 1:19pm
Print Post  
how to use importallpages

virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ImportAllPages(
           /* [in] */ BSTR vdxPathName,
           /* [in] */ IDispatch __RPC_FAR *flowChartDoc,
           /* [retval][out] */ VARIANT __RPC_FAR *Result) = 0;

how to get flowChartDoc?
i have FlowChart m_FlowChart;
could you give me a example.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Visio Import library beta tests
Reply #4 - Nov 7th, 2007 at 1:43pm
Print Post  
If FlowChart is an MFC wrapper class, you can get an IDispatch pointer like this:

IUnknown* pUnk = m_FChart1.GetControlUnknown();
IDispatch* pDisp = NULL;
hr = pUnk->QueryInterface(IID_IDispatch, (void**) &pDisp);
if SUCCEEDED(hr)
{
     importer->ImportAllPages(strPath, pDisp, &varResult);
}

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint