Conditional Format Problem

Hi, im reading this file using Aspose.Cells, it has an pivot table, and this pivot table has conditional format for a column on it. when I write some data to the book and save it, the conditional formnat get lost.

Can you help me?

thanks in advance.

Code used to write to the book:

Workbook wb=new Workbook();
try {
if(is!=null && is.available()>0){
wb.open(is);
}
}catch(IOException eIO){
System.out.println(“IOException Occurred:”+eIO.getMessage());
wb=null;
}


and some lines before …

for(int i=1;i<=iColumns;++i){
cell = sheet.getCells().getCell(iFirstRow-1, i-1);
switch(meta.getColumnType(i)){
case Types.BIT:
case Types.BOOLEAN:
case Types.TINYINT:
case Types.INTEGER:
case Types.SMALLINT:
case Types.BIGINT:
intValue = rs.getInt(i);
if(!rs.wasNull()){
cell.setValue(intValue);
}
break;
case Types.NUMERIC:
case Types.DECIMAL:
case Types.FLOAT:
case Types.REAL:
case Types.DOUBLE:
doubleValue = rs.getDouble(i);
if(!rs.wasNull()){
cell.setValue(doubleValue);
}
break;
case Types.DATE:
case Types.TIMESTAMP:
dateValue = rs.getDate(i);
if(!rs.wasNull()){
cell.setValue(dateValue);
}
break;
case Types.NULL:
break;
case Types.TIME:
default:
stringValue = rs.getString(i);
if(!rs.wasNull() && !stringValue.trim().equals("")){
cell.setValue(stringValue);
}
break;
}
}

Hi,

I have found the issue after an initial test, we will figure it out soon.

Your issue has been logged into our issue tracking system with an issue id: CELLSJAVA-12493.

Thank you.

Ok, thanks, I’ii be waitting the hotfix.

Hi,

Thank you for considering Aspose.

Please try the attached new fix(2.1.1.10). Currently, we do not support to parse such kind of Conditional Format of Excel2007. We just keep the original data of such kind of Conditional Format and re-save it back when saving file as excel2007. We will support to parse and manipulate such Conditional Formats in future.

Thank You & Best Regards,

Sorry about the delay, I was searching for another solution.
The fix doesn’t work, I still having the same problem.

Hi,

Well, we have conduct some tests, opening your template file, filling some data to the source range for the pivot table and then re-save the file, the conditional formatting are not lost. We appreciate if you could create a simple console application (with all the details) to reproduce the issue. Also, post your saved file here to point out where the issue lies. We will check your issue soon.

Thank you.





The issues you have found earlier (filed as 12493) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.