News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

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.


Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 286 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1138KB.
Tokens: post-login.
Cache hits: 13: 0.00159s for 26,740 bytes (show)
Cache misses: 3: (show)
Queries used: 16.

[Show Queries]