Welcome to the Xceed Community | Help
Community Search  

Write a DataSet to XML and Save in a Zip Folder

Sort Posts: Previous Next
  •  10-12-2008, 9:52 PM Post no. 16032

    Write a DataSet to XML and Save in a Zip Folder

    I need a little help with saving a DataSet as an XML file directly to a ZipFile that is created with the following code. I'm saving the as DataSet.WriteXML(Stream) and

    ZipFile = New DiskFile(NewZipFileDialog.FileName)
    If ZipFile.Exists Then
    ZipFile.Delete()
    End If
    ZipFile.Create()

    I can save the Dataset as XML to a file and then copy it but I would like to skip that step and write it to a stream and save the stream directly into the ZipFile, but I'm getting a bit lost.

    Thanks

    Bill

     

     

  •  10-15-2008, 3:51 PM Post no. 16133 in reply to 16032

    Re: Write a DataSet to XML and Save in a Zip Folder

    I suggest you use Real-Time Zip for .NET, which will permit you to write your stream directly into a zip file.

    You can find a sample on how to do this by going to Start -> All Programs -> Xceed Components -> Our Components In Action -> Xceed FileSystem Snippet Explorer.

    Look at the "8. Real-Time Zip capabilities" topic.

    There is also the "Task-Based Help" topic in the documentation that gives examples on how to use it.

     


    André
    Software Developer and Tech Support
    Xceed Software Inc.
  •  10-18-2008, 12:07 AM Post no. 16212 in reply to 16133

    Re: Write a DataSet to XML and Save in a Zip Folder

    What was the first version to Data Manipulation Suite to include Real time zip?  I have the 2007 version and I don't think that it is included.
  •  10-20-2008, 3:41 PM Post no. 16247 in reply to 16212

    Re: Write a DataSet to XML and Save in a Zip Folder

    Real-Time Zip for .NET was introduced in november 2007, so if you bought the product before, then it is not included in your suite.
    André
    Software Developer and Tech Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.