darknessomi / darknessomi/excellibrary

Unable to load a file

Open
#28 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
C#
Stars
22
Forks
8
PR merge metrics
No merged PRs in 30d

Description

```
What steps will reproduce the problem?
1. use this code on a web project
private void Calculate2()
{
//Locate an xcel file in your server and map that filepath
string filePath = "~\\Files\\myXcl.xls" //just for example
string serverPath = MapPath(filePath);

Workbook workbook = Workbook.Load(serverPath); //exception thrown
//Assert.AreEqual(1, workbook.Worksheets.Count);

Worksheet worksheet = workbook.Worksheets[0];
////Assert.AreEqual("Test1", worksheet.Name);
//Assert.AreEqual(100, worksheet.Cells[0, 1].Value);
//Assert.AreEqual("Test String", worksheet.Cells[2, 0].Value);

}
2.
3.

What is the expected output? What do you see instead?
I expect the library to succesfully open this file, I need to find some
cells info Instead I get this exception: Unable to read beyond the end of
the stream.

I try using a FileStream and open the file in Read Mode but then it said
that it can not fiond the end of the stream.

What version of the product are you using? On what operating system?
the one included un the release folder of the solution in this file :
ExcelLibrary_20090331.zip Archived project code on 2009-03-31.

Please provide any additional information below.

I have all the permissions in the folder.

```

Original issue reported on code.google.com by `ricker.s...@gmail.com` on 2 May 2009 at 12:45

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing Workbook.Load(serverPath) with the archived ExcelLibrary_20090331.zip release and verify the path and FileStream behavior described in the report. Investigate why loading the workbook reaches the end of the stream; done means the reported file loads successfully and worksheet and cell information can be accessed.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.