Unzip XSN file in C# - InfoPath Dev
in

InfoPath Dev

Unzip XSN file in C#

Last post 02-26-2006 01:38 PM by AndersR. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-26-2006 12:44 AM

    Unzip XSN file in C#

    I need to extract XSL file from XSN file in C#.
    I try to unzip XSN using library Java.util.zip.

    When I use class ZipFile I get the following exception:
    "Exception of type java.util.zip.ZipException was thrown." without any additional information.

    If I use class ZipInputStream no entry is available:

    FileInputStream fis=new FileInputStream(txtXsn.Text);
    BufferedInputStream bis=new BufferedInputStream(fis);
    ZipInputStream zis=new ZipInputStream(bis);
    ZipEntry ze=null;
    while ((ze=zis.getNextEntry())!=null)
    {
    .
    .
    .
    }


    Is XSN file can be unziped from C#? Which classed should I use?

    Thanks.
  • 02-26-2006 01:38 PM In reply to

    The XSN file is really a CAB file. Try checking out the Microsoft CAB SDK here

    http://support.microsoft.com/?scid=kb;EN-US;310618

    hth
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.