473,387 Members | 1,465 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

DataSet.WriteXML writes decimals in Scientific Notation

I have a DataSet that contains a table with about 6 columns of high accuracy
decimal values. When I try to write out the DataSet using the WriteXML()
function the XML is written fine, but the decimal values are written out in
scientific notation ("9.984348392E+08"). This wouldn't be a problem except
when I try to READ the XML file back into a DataSet I keep getting a
System.FormatException saying "Input string was not in a correct format." Is
there a way to get the DataSet to write out the number without using
Scientific Notation? Or is there someway to have it parse the scientific
notation when reading the numbers in? Thanks for any help.

Smoke

May 26 '06 #1
2 2738
See http://support.microsoft.com/default...en-us%3B321542

MS has a hot fix for this issue.

Cheers,

Greg Young
MVP - C#
"rSmoke" <rS****@discussions.microsoft.com> wrote in message
news:E2**********************************@microsof t.com...
I have a DataSet that contains a table with about 6 columns of high
accuracy
decimal values. When I try to write out the DataSet using the WriteXML()
function the XML is written fine, but the decimal values are written out
in
scientific notation ("9.984348392E+08"). This wouldn't be a problem except
when I try to READ the XML file back into a DataSet I keep getting a
System.FormatException saying "Input string was not in a correct format."
Is
there a way to get the DataSet to write out the number without using
Scientific Notation? Or is there someway to have it parse the scientific
notation when reading the numbers in? Thanks for any help.

Smoke

May 27 '06 #2
Thanks for the link!

"Greg Young" wrote:
See http://support.microsoft.com/default...en-us%3B321542

MS has a hot fix for this issue.

Cheers,

Greg Young
MVP - C#
"rSmoke" <rS****@discussions.microsoft.com> wrote in message
news:E2**********************************@microsof t.com...
I have a DataSet that contains a table with about 6 columns of high
accuracy
decimal values. When I try to write out the DataSet using the WriteXML()
function the XML is written fine, but the decimal values are written out
in
scientific notation ("9.984348392E+08"). This wouldn't be a problem except
when I try to READ the XML file back into a DataSet I keep getting a
System.FormatException saying "Input string was not in a correct format."
Is
there a way to get the DataSet to write out the number without using
Scientific Notation? Or is there someway to have it parse the scientific
notation when reading the numbers in? Thanks for any help.

Smoke


May 30 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Simon | last post by:
Hi all, I have a process, where I take a dataset from an SQL call, and need to write an XML file from that dataset. The data set can contain 10's of tables, each with 100's of rows, and I have...
1
by: Rahul Agarwal | last post by:
Hi I am trying to write data back to the client using dataset.WriteXML and I have set the Thread.CurrentThread.CurrentCulture to "no" (norwegian) just before writing the data using WriteXML....
3
by: Joe98765 | last post by:
I have data coming from SQL Server and need to write out some XML. I have a schema(xsd) for this XML file. Right now I am bringing in the DataSet and writing out the elements and attributes myself...
0
by: Greg | last post by:
I am working on an application that requires working with numbers in scientific notation. I am using SqlServer as the database and I have created strongly typed data adapters and datasets. The...
2
by: David Richards | last post by:
Hi, I was wondering if anyone could help me. I have DataSet that contains the following data tables Customers, Calls, Quotes, QuoteDetails, Competitors, Contacts, Notes, and I have setup...
2
by: UJ | last post by:
It appears when you do a DataSet.WriteXml ( <filename>, <writemode> ) it doesn't close the file immediately. Is that true ? The reason I think that is I have two programs that are going to be...
5
by: revansx | last post by:
Hi folks, I am programming a page that displays scientific data retrieved from a data source to an asp-web page and i would like to force all number to be formatted/displayed in scientific...
2
by: rrflore2 | last post by:
Ok. I'm writing and deleting to an xml file using a dataset. I have a function in my codebehind page that binds a listbox to the dataset that performs the writes/deletes. Everything seems to be...
3
by: Sin Jeong-hun | last post by:
This code, DS1 = new DataSet("DataSet 1"); DataTable dt1 = new DataTable("Table 1"); DataColumn dc1 = new DataColumn("Column 1", typeof(String)); DataColumn dc2 = new DataColumn("Column 2",...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.