Author Topic: Unable to get xml file from VSDX file  (Read 9172 times)

0 Members and 1 Guest are viewing this topic.

harsha652

  • Jr. Member
  • **
  • Posts: 19
Unable to get xml file from VSDX file
« on: August 13, 2014, 02:57:43 AM »
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

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Unable to get xml file from VSDX file
« Reply #1 on: August 13, 2014, 03:36:42 AM »
Change file extension to zip, and unzip.
Best Regards,

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

harsha652

  • Jr. Member
  • **
  • Posts: 19
Re: Unable to get xml file from VSDX file
« Reply #2 on: August 13, 2014, 03:50:20 AM »
Couldn't change the file extension to ZIP. Do i need to have admin access to system to change, pls suggest.

harsha652

  • Jr. Member
  • **
  • Posts: 19
Re: Unable to get xml file from VSDX file
« Reply #3 on: August 13, 2014, 04:01:13 AM »
Hi

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

Thanks.

Nikolay

  • Hero Member
  • *****
  • Posts: 1125
    • UnmanagedVisio
Re: Unable to get xml file from VSDX file
« Reply #4 on: August 13, 2014, 06:11:19 AM »
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
« Last Edit: August 13, 2014, 06:37:37 AM by Nikolay »

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Unable to get xml file from VSDX file
« Reply #5 on: August 13, 2014, 06:43:04 AM »
Quote
I'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.
« Last Edit: August 13, 2014, 06:46:29 AM by JuneTheSecond »
Best Regards,

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

harsha652

  • Jr. Member
  • **
  • Posts: 19
Re: Unable to get xml file from VSDX file
« Reply #6 on: August 13, 2014, 06:59:03 AM »
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.

aledlund

  • Hero Member
  • *****
  • Posts: 1412
Re: Unable to get xml file from VSDX file
« Reply #7 on: August 13, 2014, 08:03:34 AM »