ReoGrid Forum

Fast and powerful .NET Spreadsheet Component

You are not logged in.

Announcement

This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.

https://github.com/unvell/ReoGrid/issues

#1 2016-03-22 15:56:01

kwebster
Member
Registered: 2016-03-21
Posts: 9

Error Saving XLSX?

Just downloaded latest version. This code was working in the older version.

It's throwing:
"Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index" error on save.

Stack trace:
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at unvell.ReoGrid.Worksheet.e(Int32 A_0)
   at b1.a(b2 A_0, Worksheet A_1)
   at b1.a(IWorkbook A_0, Stream A_1)
   at dm.Save(IWorkbook workbook, Stream stream, Encoding encoding, Object arg)
   at ae.Save(Stream stream, FileFormat fileFormat, Encoding encoding)
   at ae.Save(String path, FileFormat fileFormat, Encoding encoding)
   at unvell.ReoGrid.ReoGridControl.Save(String path, FileFormat fileFormat, Encoding encoding)
   at unvell.ReoGrid.ReoGridControl.Save(String path, FileFormat fileFormat)
   at CheckRegister.frmCheckLog.PB_OK_Click(Object sender, EventArgs e) in C:\Users\xxxxxxxx\Documents\Visual Studio 2010\Projects\CheckRegister\CheckRegister\frmCheckLog.vb:line 131

Calling code:
                    Dim F As IO.FileFormat
                    Select Case TK.RightOf(Strings.Right(lsLastPath, 5).ToUpper, ".")
                        Case "XLSX"
                            F = IO.FileFormat.Excel2007
                        Case "CSV"
                            F = IO.FileFormat.CSV
                        Case Else
                            MsgBox("Don't know how to save that format (" + TK.RightOf(Strings.Right(lsLastPath, 5).ToUpper, ".") + ").", MsgBoxStyle.Information, "Save Check Log")
                    End Select

                    If Not IsNothing(F) Then
                        Me.GC1.Save(lsLastPath, F)
                    End If


Never order the french onion soup in a Chinese restaurant.

Offline

#2 2016-03-22 15:58:32

kwebster
Member
Registered: 2016-03-21
Posts: 9

Re: Error Saving XLSX?

FYI, I back-leveled the DLL to 1.1.0.0 and it works. 1.2.1.0 is failing.


Never order the french onion soup in a Chinese restaurant.

Offline

#3 2016-03-23 03:18:47

Jingwood
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: Error Saving XLSX?

Thanks for report. This bug will be fixed in next release.

Offline

#4 2016-03-23 10:34:04

Jingwood
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: Error Saving XLSX?

Please try the latest version 1.2.2: https://reogrid.net/download/

Offline

Board footer

Powered by FluxBB