Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.OverflowException with large numerical values #36

Closed
GoogleCodeExporter opened this issue Dec 17, 2015 · 3 comments
Closed

System.OverflowException with large numerical values #36

GoogleCodeExporter opened this issue Dec 17, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Populate a cell with a large value (9,999,999 for example)
2. Try to save Workbook

What is the expected output? What do you see instead?

Error Type: System.OverflowException
Error Source: mscorlib
Error Message: Value was either too large or too small for a UInt32.
Stack Trace:    at System.Decimal.ToUInt32(Decimal d)
   at System.Decimal.op_Explicit(Decimal value)
   at ExcelLibrary.BinaryFileFormat.WorkSheetEncoder.EncodeCell(Cell cell, 
SharedResource sharedResource)
   at ExcelLibrary.BinaryFileFormat.WorkSheetEncoder.Encode(Worksheet 
worksheet, SharedResource sharedResource)
   at ExcelLibrary.BinaryFileFormat.WorkbookEncoder.EncodeWorkbook
(Workbook workbook)
   at ExcelLibrary.BinaryFileFormat.WorkbookEncoder.Encode(Workbook 
workbook, Stream stream)
   at ExcelLibrary.SpreadSheet.Workbook.Save(String file)



What version of the product are you using? On what operating system?


Please provide any additional information below.

Original issue reported on code.google.com by simonsam...@googlemail.com on 30 Jun 2009 at 12:00

@GoogleCodeExporter
Copy link
Author

File version shows as 1.0.0.0. Windows XP. VB.Net 2005.

Original comment by simonsam...@googlemail.com on 8 Jul 2009 at 11:43

@GoogleCodeExporter
Copy link
Author

I tried worksheet.Cells[2, 0] = new Cell(9999999); nothing wrong. Please use 
latest 
code.

Original comment by China.LiuJunFeng on 29 Jul 2009 at 7:34

  • Changed state: Invalid

@GoogleCodeExporter
Copy link
Author

Agree, it all seems to work fine with the new download.

Original comment by simonsam...@googlemail.com on 31 Jul 2009 at 10:13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant