Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8919885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:08:10+00:00 2026-06-15T06:08:10+00:00

I am creating an excel sheet from my vector which have 127923 records and

  • 0

I am creating an excel sheet from my vector which have 127923 records and when I am trying to entering the records I am getting following exception.

jxl.write.biff.RowsExceededException: The maximum number of rows permitted on a worksheet been exceeded
    at jxl.write.biff.WritableSheetImpl.getRowRecord(WritableSheetImpl.java:1214)
    at jxl.write.biff.WritableSheetImpl.addCell(WritableSheetImpl.java:1151)
    at com.ibm.database.excel.WriteExcel.addLabel(WriteExcel.java:176)
    at com.ibm.database.excel.WriteExcel.write(WriteExcel.java:76)
    at com.ibm.database.excel.FileGenerator.generateExcel(FileGenerator.java:13)
    at com.ibm.database.taxoreader.TaxonomyReader.main(TaxonomyReader.java:46)

and I know because excel sheet does not allow more than 65536 records, but I my code I am trying to create a new sheet everytime I hit 60000 mark but It is not working. Could any one suggest me what am I doing wrong. Here is my code.

public void write (Vector list) throws IOException, WriteException{
    int k=0,row=0,column=0;
    WritableFont times10pt = new WritableFont(WritableFont.TIMES, 10);
    // Define the cell format
    times = new WritableCellFormat(times10pt);
    // Lets automatically wrap the cells
    times.setWrap(true);
    TaxonomyBean bean= null;
    File file = new File("Test.xls");
    WorkbookSettings wbSettings = new WorkbookSettings();
    wbSettings.setLocale(new Locale("en", "EN"));
    WritableWorkbook workbook = Workbook.createWorkbook(file, wbSettings);  
    WritableSheet sheet= workbook.createSheet(""+k,k);
    for(int i=0,j=0;i<list.size();i++,j++){
        if(j==60000){
         k=k+1;
         workbook.createSheet(""+k, k);
         j=0;
        }
        sheet = workbook.getSheet(k);
        bean=(TaxonomyBean)list.elementAt(i);
        column=0;row=i;
        System.out.println("adding "+bean.getDescription()+" at "+j+" in "+k+" and i "+i);
        addLabel(sheet, column, row, bean.getDescription());
        column++;
        addLabel(sheet, column, row, bean.getTaxonomyDescription());
    }
    workbook.write();
    workbook.close();

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T06:08:10+00:00Added an answer on June 15, 2026 at 6:08 am

    You can replace your loop code with that :

    for(int i = 0;i < list.size();i++)
    {
        if(i % 60000 == 0)
        {
            k++;
            workbook.createSheet("" + k,k);
        }
    
        sheet = workbook.getSheet(k);
        bean = (TaxonomyBean)list.elementAt(i);
    
        column = 0;
        row = i % 60000;
    
        addLabel(sheet, column, row, bean.getDescription());
        column++;
        addLabel(sheet, column, row, bean.getTaxonomyDescription());
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating an Excel Worksheet from C# using Microsoft.Office.Interop.Excel, and I have not
I have a C# application where I am creating numerous Excel Files from Data
How reliable and powerful is jxl? I'm trying to create an excel file from
I'm trying to export data from my models to an excel spreadsheet. I have
I'm creating an SSIS package to incrementally load data from an Excel sheet (exported
I have an excel file which contains 250 sheets( 1st sheet contains 250 rows
I am creating a macro to add data from my Excel sheet into my
I am working on creating EXcel sheet in C#. No Of columns:4 Name of
I'm creating an excel file using jxl. I'd like to name the sheets with
I am creating Excel file download using NOPI libraries. I have lot of data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.