export column groups to excel - excel

I'm trying to know how to export a datatable with column groups into excel with the correct format. I'm using icefaces datatable, but with primefaces datatable it will be the same.
header has a recursive structure, so you can parse like xml file, but I can't see the way to reflect into excel file, just using jxl or poi.
I suppose somebody have the needs to export column groups into excel and right now I can't find a tool for do this.
Any idea??
Thanks

Related

JasperReport: footer field in xls participate in sorting

I have such xls file generated by jasper:
Bold sum is in <pageFooter> tag. After sorting it mixes up with data:
Is there any opportunity to make footer fields fixed and make them not participating in column sorting?
No, unfortunately not, as this is Excel behaviour not Jasperreports behaviour and can't be controlled by the jasperreports.export configuration.
You could, instead, prevent the footer from being exported and convert the data to a table once in Excel which, although it's a manual step for the end-user, should resolve your problem.
The only other way is to ensure that, once exported to Excel, only the data rows are selected for sorting.
Regards,

Get sum of a column of an Excel Apache Poi

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

Exporting a Trinidad Table to Excel

How do I export a trinidad table into an excel format?
I have <tr:table> and some values in it that are displayed using <tr:column>.
I want to export those values into an excel sheet.
You can't generate Excel sheets using Apache Trinidad. What you need to do is write an action which:
converts the data to an Excel sheet (for example using Apache POI or Java Excel API) and
gets the HttpServletResponse, resets it, sets the correct headers and outputs your Excel sheet.
See:
Create Excel file in Java
How to provide a file download from a JSF backing bean?

Sharepoint 2010: How to programmatically update a RTF column with formattings

I've a RTF text field in a list. Users can edit and format this column in many ways, and it also shows up with this formatting in views, which is very beautiful.
However, is it possible to update the RTF column somehow programmatically - e.g. within a workflow? My idea is to use the RTF column for creating formatted reports.
I already created a Workflow which automatically updates the RTF column, but so far, I'm only able to create plain text. No formatting, no new lines, etc. --- can anyone help ?
Use html tags for your content.
EDIT:
item["RTF_Field"] = "<b>this is a strong text</b>";

Reading cell styles along with data-Excel sheet reading using apache POI

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.

Resources