We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Import CSV File

Thread ID:

Created:

Updated:

Platform:

Replies:

81932 May 25,2009 04:27 AM UTC Aug 26,2009 07:23 AM UTC ASP.NET Web Forms (Classic) 3
loading
Tags: XlsIO
Administrator [Syncfusion]
Asked On May 25, 2009 04:27 AM UTC


How to importing the double quotes & special char from CSV File?

Geetha M [Syncfusion]
Replied On May 26, 2009 12:36 PM UTC

Hi Guna,

Thank you for your continued interest in Syncfusion products.

You can import a CSV file using the code snippet given below:

IWorkbook workbook = application.Workbooks.Open("Test.csv",",");

The above code imports the complete CSV file.

Please try this and let me know if you have any questions.

Regards,
Geetha

Jürgen Pannosch
Replied On August 25, 2009 01:03 PM UTC

Hi, I have the same problem, I want to import a csv file with xlsio, know my problem is that if i do so, xlsio transforms the values of the column, for example "00000" -> "0" or "00001" -> "1"

So whats wrong?

Sample for my CSV:
00000,Car
00001,House
00002,Garden

The first and the second columns should be recognized as string.

Hope you can help me,

best regards

Juergen

Geetha M [Syncfusion]
Replied On August 26, 2009 07:23 AM UTC

Hi Juergen,

Thank you for your interest in Syncfusion products.

I was able to see that 00000 and 00001 are displayed as 0 and 1 respectively, and the same behavior is visible with MS Excel. Assigning Text format can be possible only with Excel formats and not with CSV, you can check this by saving it in text format (using Excel) and again load it, 00000 will be displayed as 0.

Please let me know if you have any further questions.

Regards,
Geetha

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;