Quantcast
Channel: Excel Data Reader - Read Excel files in .NET
Viewing all 448 articles
Browse latest View live

New Post: wrong numbers


New Post: Remove formatting from file

New Post: Neither stream 'Workbook' nor 'Book' was found in file

$
0
0
Thanks. I'll add that code into the library


New Post: wrong numbers

$
0
0
not

I changed the excel column and I have removed the decimals.
I set integers

"0,2" for "20"

Source code checked in, #87188

$
0
0
case insensitive when comparing entries in XlsRootDirectory also testapp bits and fix testsettings

Source code checked in, #87190

Source code checked in, #87191

Closed Unassigned: Error loading file [11818]

$
0
0
I'm trying to read the attached file. I'm getting the following error.

xlDataSet = xlReader.AsDataSet();
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

The file appears to be valid, when I open the file in excel and save it again the same code works without a problem.
Comments: Resolved with changeset 87191.

Edited Issue: Exponential problem when load a .xlsx [11773]

$
0
0
I try to load a .xlsx and the decimal number like 2345,12 look like 2,345123637347E+16, i need fix that faster, what can i do?

Edited Issue: Specified argument was out of the range of valid values. [11639]

$
0
0
I run one xls file with one sheet just fine. I run one with multiple sheets, and I get this error:

__Specified argument was out of the range of valid values.
Parameter name: offset__

It's failing on my using line. Here's a snippet fo my code:

_DataSet mDataSet = new DataSet();
using ( IExcelDataReader mExcelReader = ExcelReaderFactory.CreateBinaryReader( upxls.FileContent ) )
{
mDataSet = mExcelReader.AsDataSet();
}_

upxls is a Fileupload class.
Comments: ** Comment from web user: Ian1971 **

Resolved by 11818

Commented Unassigned: Date incorrectly read as Double [11860]

$
0
0
Hi

when trying to read attached file, the reader is incorrectly reading the first column's values (from row 4 down) as double. Instead it should be either string or datetime.

Any fix/workaround for this? We really like this tool but can't use without fixing this.

Thanks,
Stevo
Comments: ** Comment from web user: Ian1971 **

Correct, the nuget version is not the latest version of the code.

I don't have access to update the nuget package, and I don't really know much about updating nuget either (or have the time to find out).

Reviewed: ExcelDataReader v2.1 (jan 29, 2014)

$
0
0
Rated 5 Stars (out of 5) - My need was to read the values from a xlsx file as strings. It was very easy and simple to use. Worked perfectly!

Source code checked in, #87194

$
0
0
was having some weird mstest issue where it had stopped using the deployment folder so currently copying files into output folder

Released: 2.1.2.0 (Jan 30, 2014)

$
0
0
Fixes
  • Fixes for some SSRS sourced files (out of range checks)
  • Missing columns on xlsx generated by google docs
  • Corrupt xls goes into infinite loop
  • No data on xlsx generated by google docs
  • Xlsx with multiple sheets has no first row on last sheet

Created Release: 2.1.2.0 (Jan 30, 2014)

$
0
0
Fixes
  • Fixes for some SSRS sourced files (out of range checks)
  • Missing columns on xlsx generated by google docs
  • Corrupt xls goes into infinite loop
  • No data on xlsx generated by google docs
  • Xlsx with multiple sheets has no first row on last sheet

Source code checked in, #87195

Commented Task: Nuget package [11518]

$
0
0
I can see this package is not updated on Nuget yet.
Comments: ** Comment from web user: vertigo093i **

Please find attached a corrected version of the package. Changed;

1. Removed ICSharpCode.SharpZipLib.dll. It is specified as a dependency since should not be redistributed.
2. Removed app/web.config.transform files. It's solely NuGet's due to maintain binding redirects. Anyway the is a mistake in those files missing the required **xmlns** declaration within the **assemblyBinding** element.

New Post: Reading excel sheet without saving

$
0
0
Hi Team,
      I want user to give option to browse and upload excel sheet and then load worksheet data into sql server table.
     Dev Server its fine, But in Prod.Server I don't have write access on any directory. So, I have to read it directly from the memory stream without saving it. Following code am executing with the help of ExcelData Reader dll, could you please suggest if am on the right track to avoid any write permission issue on web server?

    if (FileUploadControl.HasFile)
        {
            try
            {
                string fileExt = System.IO.Path.GetExtension(FileUploadControl.FileName);

                if (fileExt == ".xls")
                 {
                   Stream myStream = FileUploadControl.PostedFile.InputStream;

                    IExcelDataReader excelReader = ExcelReaderFactory.CreateBinaryReader(myStream);

                    excelReader.IsFirstRowAsColumnNames = true;

                    DataSet ds1 = excelReader.AsDataSet();

                     excelReader.Close();
                   }

New Post: Reading formatted strings

$
0
0
Hi,

is it possible to read not the cell value but the actual cell formatted string as seen by the user when he saved the file?

I'm dealing with a file where a column must be a datetime in ISO8601 format. Some users use it as a string, but others use it as a Excel datetime (double) but the use a custom formatting to display it with the correct timezone.

If I parse it from the double I lose the timezone information that the user actually "inserted" using the custom formatting...

How can I handle this?

Commented Task: Nuget package [11518]

$
0
0
I can see this package is not updated on Nuget yet.
Comments: ** Comment from web user: Ian1971 **

Thanks
@SteveHolle - are you able to check/upload this corrected package.

Viewing all 448 articles
Browse latest View live