-
-
Notifications
You must be signed in to change notification settings - Fork 406
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
Getting Error - Exception thrown: 'System.ArgumentOutOfRangeException' in unvell.ReoGrid.dll #516
Comments
By default, a new worksheet in ReoGrid is initialized with 200 rows and 100 columns. Given your text file has 400 rows, you'll need to explicitly set the number of rows in your target worksheet to accommodate all the data from your file before loading the data. worksheet.Resize(400, 74); |
Yes, this helps, Thank you @jingwood but now I end up in new error in later part of code. While writing data in my target excel file which is .xlsx file that contains Pivot tables using this data. After loading data in Excel Sheet, if I open Excel file Excel complains Does this saving is not possible in ReoGrid, were only data is loaded, or it is related to option used Thanks in advance. |
I can't help without more information about the error. If possible can you please share the Excel file? |
I use GeoGridControl. The Load () method loads excel file to GeoGridControl control, prompt System. ArgumentOutOfRangeException:" |
Description
I am a new coder in C#, I am using ReoGrid dll to read a text file and load it in a target Excel sheet.
The test text file, I am using has about 400 rows and 74 columns and I am using semicolons as column separators in a text file.
I am getting an error on row 201 of my data, in the section " // Load the data into the worksheet" to load the data part to the grid.
I am creating a console app in .net framework 4.8
using System;
using System.Globalization;
using System.IO;
using unvell.ReoGrid;
using unvell.ReoGrid.IO;
namespace LoadTextFiletoExcelSheet
{
internal class Program
{
static void Main(string[] args)
{
}
To Reproduce
I am getting an error on row 201 of my data, I am creating a console app in .net framework 4.8
Screenshots
Edition
Environment
Windows 10
OS: English
I would also like to use this tool in Chinese machines
The text was updated successfully, but these errors were encountered: