Donate Share

MyXLS

Tracker: Bugs

7 can't open file - ID: 2865300
Last Update: Settings changed ( manmoth )

Hi. -- I have a vb.net app (VS 2008) that is getting an exception when it
tries to open an existing file.

Dim xls As New XlsDocument(filename)

System.ArgumentOutOfRangeException was caught
Message="Specified argument was out of the range of valid values.
Parameter name: offset 1484800 + getLength 512 = 1485312 must be < Length
1485199"
ParamName="offset 1484800 + getLength 512 = 1485312 must be < Length
1485199"
Source="MyXls.SL2"
StackTrace:
at org.in2bits.MyXls.ByteUtil.Bytes.Get(Int32 offset, Int32
getLength, Bytes intoBytes)
at org.in2bits.MyXls.ByteUtil.Bytes.Get(Int32 offset, Int32
getLength)
at org.in2bits.MyOle2.Ole2Document.GetSectorBytes(Bytes fromStream,
Int32 sectorSize, Int32 sid)
at org.in2bits.MyOle2.Ole2Document.GetStream(Stream
fromDocumentStream, Int32 did, Dictionary`2 dir, UInt16 sectorSize, Int32[]
sat, UInt16 shortSectorSize, Int32[] ssat, UInt32 minStandardStreamSize)
at org.in2bits.MyOle2.Ole2Document.Load(Stream stream)
at org.in2bits.MyXls.XlsDocument..ctor(String fileName,
BytesReadCallback workbookBytesReadCallback)
at org.in2bits.MyXls.XlsDocument..ctor(String fileName)
at SalesActivity.Module1.Main() in
C:\VS08\Instawares08\SaleActivity\SalesActivity\Module1.vb:line 45
InnerException:

Any ideas??

Thanks!!


Jonathan Johnson ( jyjohnson0 ) - 2009-09-23 21:59

7

Closed

Invalid

Nobody/Anonymous

Read .XLS

None

Public


Comments ( 2 )




Date: 2009-09-26 18:16
Sender: manmothProject Admin

I am closing this unless/until there is a repro case (file) provided.


Date: 2009-09-24 05:21
Sender: manmothProject Admin

This particular problem will be impossible to track down without a file
with which to reproduce it. Can you provide one? Where did this file come
from (Excel 97? 2007? generated by another utility?) Does it happen on
all files or just this one (what if anything is unique about the file)?
All files of a particular size?

Without more information there is nothing I can do.


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
status_id Open 2009-09-26 18:17 manmoth
resolution_id None 2009-09-26 18:17 manmoth
close_date - 2009-09-26 18:17 manmoth
priority 5 2009-09-24 05:21 manmoth