473,395 Members | 2,006 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,395 software developers and data experts.

Unable get Boolean and Numeric values from XLS into Dataset and Datagrid


Hi All
I am presently dealing with a project,in which I have to convert an XLS file
into XML file.
To accomplish this I have used Dataset as intermediatory to store the data
from XLS and
writting the data to XML file.

But unfortunately I am not getting Boolean and Numeric values from the given
XLS file into
Datset.For all other XLS file its working fine.So,can anyone please help me
in this regard
what went wrong with the XLS file.

Thanks in advance.
Regards
Vighnesar

Nov 17 '05 #1
4 1445
Vighnesar,

Post a small portion of the code you are using to convert and indicate
the line of code that should show a converted value but isn't being
converted.

Best Regards
Johann Blake

Nov 17 '05 #2
Vighnesh,

Can you show us some of your code that you are using?

Cor
Nov 17 '05 #3
Vighnesh,

Searching in the newsgroup, did I see that Paul Clement on 26th and 27th of
july was helping you in this subject.

I think that to get the best answer you would set this message as a reply to
Paul in that messagethread. Paul is one of the experts in this. (You need an
ini file for this, however Paul knows that much better than me).

I hope this helps,

Cor
Nov 17 '05 #4
On Thu, 4 Aug 2005 14:40:32 +0530, "vighnesh" <vi******@nannacomputers.com> wrote:

¤
¤ Hi All
¤ I am presently dealing with a project,in which I have to convert an XLS file
¤ into XML file.
¤ To accomplish this I have used Dataset as intermediatory to store the data
¤ from XLS and
¤ writting the data to XML file.
¤
¤ But unfortunately I am not getting Boolean and Numeric values from the given
¤ XLS file into
¤ Datset.For all other XLS file its working fine.So,can anyone please help me
¤ in this regard
¤ what went wrong with the XLS file.
¤

If you have columns with a mix of alpha and numeric characters you need to add the IMEX parameter to
your connection string.

MyConnection = New System.Data.OleDb.OleDbConnection( _
"provider=Microsoft.Jet.OLEDB.4.0; " & _
"data source=D:\Documents and Settings\Administrator\My Documents\import.xls;" & _
"Extended Properties=""Excel 8.0;IMEX=1""")
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 17 '05 #5

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

Similar topics

0
by: Fidias Gil de Montes | last post by:
In a Distributed Windows application, I receive the following message when the client calls the server: ************** Exception Text ************** System.InvalidCastException: Unable to cast...
1
by: A Traveler | last post by:
Hello, i am having this problem. The exact error message is: "Unable to generate code for a value of type 'System.Web.UI.Page'. This error occurred while trying to generate the property value for...
3
by: vighnesh | last post by:
Hi All I am presently dealing with a project,in which I have to convert an XLS file into XML file. To accomplish this I have used Dataset as intermediatory to store the data from XLS and...
2
by: Brett Romero | last post by:
I convert a collection to DataSet, reference the first table and throw that into a DataTable. The DataTable is used as a DataSource for a DataGrid. The DataGrid has an associated GridTableSyle. ...
4
by: Abi | last post by:
We able to generate this error in our test environment and were able to research this enough to understand that the issue is NOT with an abject that needs to be serialized but rather as the stack...
1
by: whidbey | last post by:
Hello friends, I am whidbey, new to thescripts and dot net as well.I am working over Online Shopping Cart,web application.I design a page (webform5.aspx) where user search books then select the books...
0
by: whidbey | last post by:
Hello friends, I am whidbey, new to thescripts and dot net as well.I am working over Online Shopping Cart,web application.I design a page (webform5.aspx) where user search books then select the books...
0
by: geeteshss | last post by:
the present problem is that i am unable to display data in datagrid....... but the data is visible in database..below is the code what should i do...earlier i could view it also below this code is...
6
Cintury
by: Cintury | last post by:
Hi all, I've developed a mobile application for windows mobile 5.0 that has been in use for a while (1 year and a couple of months). It was developed in visual studios 2005 with a back-end sql...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.