|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Can't read xml to Excel (dataset.WriteXml)I'm using this code to generate an XML-file:
If File.Exists("d:\k2b.xls") Then File.Delete("d:\k2b.xls") Dim fs As New System.IO.FileStream("d:\k2b.xml", IO.FileMode.CreateNew) dsP.WriteXml(fs) fs.Close() fs.Dispose() When importing to Excel 2000 (10.0) it shows the entire xml-code (as if opened with text editor). I'm I doing something wrong? /Snedker Morten Snedker wrote:
Show quoteHide quote > I'm using this code to generate an XML-file: If you save it with an extension of .xls instead, does Excel then > > If File.Exists("d:\k2b.xls") Then File.Delete("d:\k2b.xls") > Dim fs As New System.IO.FileStream("d:\k2b.xml", > IO.FileMode.CreateNew) > > dsP.WriteXml(fs) > > fs.Close() > fs.Dispose() > > > When importing to Excel 2000 (10.0) it shows the entire xml-code (as > if opened with text editor). I'm I doing something wrong? "understand" it? Andrew
Startup Form's Name
populating variables from dynamically created controls how do I customize a vb.net deployment project multiple selection from checkboxes into text box For each and form controls VB command line compiler vbc.exe AND type "Int32" is not defined Inherited UserControls do not in appear in Toolbox (VB.NET 2005) How to use VB.Net user controls with in VB.6 Visual Basic 2005 Express SQL Server Locks/ProcessID - Is this a problem? |
|||||||||||||||||||||||