I am using apache poi to generate excel file.When i used sheet.autoSizeColumn(column no) its really effecting performance when generating the report.Is there a way that i can manually adjust the column width for specific fields?
Related
Can anyone suggest how to apply filters in Excel using Apachepoi to specific columns?
I cannot Use CellRange Address as I am not using continuous columns.
I read this article. The program (from website) allows the user to generate a customized Word document use Apache POI. I found the code from these two websites that can generate Excel file use agent, however the output is generate the view in Excel format only.
Is it possible to export view to Excel in specify format without use Apache POI?
Instead of using Apache POI, is it possible to write code in agent to generate a customized Excel file?
No and Yes. You deal with Java on XPages. You could reinvent the wheel and write all was POI does yourself, so yes you could.
You also could output a HTML table but send a header of application\vnd-excel to get the table automatically opened in Excel (but no formula here)
What would stop you from using POI?
I am using POI library to deal with an Excel file, what I need is
am dealing with an application in that if you modify anything the changes should be shown in red color.
Example: In my application one of the records has
"stackflowisgood" and then I modify it with "stackoverflowisgood",
now the new change is "over".
So there will be a link available to download an Excel file. After downloading, the Excel should be like "stackoverflowisgood" showing the "over" in red color in the same cell. So here my data changes all the time depends on the user change, so I cannot use any fixed index to color it,
this code is applicable for specific string
HSSFRichTextString richString = new HSSFRichTextString("Hello, World!");
richString.applyFont(6, 10, blueFont);
but I need for dynamic string.
I'm uploading an Excel document from a JSP to a Servlet. I'm using Apache Poi to read the Excel file. My exact requirement is to get the sum of the values of a known column.
Please tell me if there's a direct way than iterating one by one
folks, I am able to read the excel sheet using apache POI in grails
using this I am inserting the cell values into different tables of mysql,
My problem is, I am not able to get the cell style like, bold or italic etc along with the data.
generally text area will automatically give the style of text while inserting into database.
I need to insert the data along with its style from each cell, please help me in solving it.
http://poi.apache.org/apidocs/org/apache/poi/hssf/usermodel/HSSFCell.html#getCellStyle()
This should get the CellStyle from the cell, which then you can use to get the information you want.