Unable to get xml file from VSDX file

Started by harsha652, August 13, 2014, 07:57:43 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

harsha652

Hi,

Recently i have migrated to Visio 2013 and it doesn't allows me to save visio in VDX format.

The javascript programme reads VDX file and generates the report.

Issue is my javascript programme can't load VSDX file.

Can you pls suggest how to get atleast xml file from VSDX


Thanks

JuneTheSecond

Change file extension to zip, and unzip.
Best Regards,

Junichi Yoda
http://june.minibird.jp/

harsha652

Couldn't change the file extension to ZIP. Do i need to have admin access to system to change, pls suggest.

harsha652

Hi

I'm able to do it manually, can you pls suggest how it can be done through programme (VBA).

Thanks.

Nikolay

#4
Visio 2013 does not support VDX format anymore, means there is no way to produce VDX with Visio 2013, this file format was deprecated.

You'll probably need to modify your javascript program to work with new XMLs which are contained in .vsdx (there are a lot of XML files inside of .vsdx, but none of them is old .vdx)

The easiest way to extract files from a .zip (.vsdx) with VBA is to use Shell.Application.Namespace
See for example here:

http://www.rondebruin.nl/win/s7/win002.htm

JuneTheSecond

#5
QuoteI'm able to do it manually, can you pls suggest how it can be done through programme (VBA).

Maybe maybe, FileSystemObject object would do any help.
Best Regards,

Junichi Yoda
http://june.minibird.jp/

harsha652

Hi,

Thanks for sharing the VBA code to unzip a file.

Kindly, can you tell me how to change the VSDX file to ZIP file through VBA. Which will help me to complete both tasks programatically.

Thanks.