|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: |
java.util.ArrayList colours = new java.util.ArrayList();
java.util.ArrayList values = new java.util.ArrayList();
java.util.ArrayList names = new java.util.ArrayList();
java.util.ArrayList l = dbLink.getLookupGroupComplaints(
tbl, fkey,
"order by name asc", "and complaintdate between " + startDate + " and " + endDate + " order by id asc"
);
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat( "d MMM yyyy" );
String heading = sdf.format( new java.util.Date( startDate ) ) + " to " +
sdf.format( new java.util.Date( endDate ) );
Workbook wb = new XLWorkbook(heading);
Worksheet sheet = wb.addSheet(heading);
sheet.addCell(listName + " BY " + heading, "title");
// up to row 11 we want a white background
for (int i = 1; i < 11; i++) {
sheet.getRowAt(i).setStyleID("bg_white");
}
CellPointer cp = sheet.getCellPointer();
cp.moveTo(10, 1);
Address adrF1 = cp.getAddress();
sheet.addCell(listName, "table_heading");
Address adrF2 = cp.getAddress();
sheet.addCell("Number of Complaints", "table_heading");
for( int i = 0; i < l.size(); i++ ) {
cp.moveCRLF();
ccd.beans.GroupList gl = (ccd.beans.GroupList) l.get( i );
sheet.addCell(gl.getName());
sheet.addCell(gl.getList().size());
}
//listName = dbLink.getLookupTableName( tbl, lookupId );
response.setContentType( "application/vnd.ms-excel" );
response.setHeader( "Content-Disposition",
"attachment; filename=\""+listName + "." + heading + ".xls\"" );
These next are my desesperated ways to be creative, but can't find a way yet, some help at this point please.
OutputStream fWb = null;
FileInputStream fis = null;
new XSerializer().serialize(wb,fWb);
response.getOutputStream().(fWb);
|
Advertisement
| Hall of Fame |