java - JExcel Warning: Could not add cell at A257 because it exceeds the maximum column limit' -


I asked to add the average amount of data in my web-app (basically a list from SQL) to download Was the Excel file, so I did a servlet to generate Excel.

The problem is that the jxl API does not like more than 256 rows, and my data is more than thousands

Is there any way to go around this limit? If I could, I would like to use this API (there is no need to set up a separate API in the server and it is easy to use). But if I want I will change

Thanks for all!

PS: Here is the main code of servlet:

  list & gt; Table project & gt; Sql = (list & gt; TableProject & gt;) session.getAttribute ("sql"); Response.setContentType ("application / vnd.ms-excel"); Response.setHeader ("content-displacement", "attachment; file name = export .xls"); W = workbook Secure Workbook (response.getOutputStream ()); S = w.createSheet ("Consultation Project", 0); For (int i = 0; i & lt; sql.size (); i ++) {S.Dedel (new label (i, 0, sql.get (i) .getCod_project ())); S.addCell (new label (i, 1, sql.get (i) .gettext_project ())); S.addCell (new label (i, 2, sql.get (i) .getDate_notification ())); S.addCell (new label (i, 3, sql.get (i) .getDate_last_action ())); S.addCell (new label (i, 4, sql.get (i) .getTxt_personal ())); S.addCell (new label (i, 5, sql.get (i) .gettext_estate ())); S.addCell (new label (i, 6, sql.get (i) .getTxt_provider ())); } W.close (); W = null;  

  s.addCell (new label (i, 0, sql.get (I) .getCod_project ()));  

should be

  s.addCell (new label (0, i, sql.get (i) .getcod_project ()));  

And so on, this is not the line limit you are facing, but the column border. Check out.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -