如何将Paradox表导出到xml文件啊?

解决方案 »

  1.   

    I haven't used Paradox before
    but in sql server
    you should created a dataset and fill the dataset with data
    then use codes like the following lines:------------------------------------------------private void WriteXmlToFile(DataSet thisDataSet) {
        if (thisDataSet == null) { return; }
        // Create a file name to write to.
        string filename = "myXmlDoc.xml";
        // Create the FileStream to write with.
        System.IO.FileStream myFileStream = new System.IO.FileStream
           (filename, System.IO.FileMode.Create);
        // Create an XmlTextWriter with the fileStream.
        System.Xml.XmlTextWriter myXmlWriter = 
           new System.Xml.XmlTextWriter(myFileStream, System.Text.Encoding.Unicode);
        // Write to the file with the WriteXml method.
        thisDataSet.WriteXml(myXmlWriter);   
        myXmlWriter.Close();
     }---------------------------------------------------hope this will help you
      

  2.   

    我能不能不用BDE引擎就可以导出啊!
      

  3.   

    我现在用的是ADO.net,可是它需要net framework