You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i currently face the problem of exporting data from a database into an odf-table. Inserting data seems to work fine, but formating goes cracy since i dont want to use simple-odf.
Here is the problem:
After writing a cell and formating it bold or set a background color, the next cell i write also uses this style, not the default plain setting. (as i read a little, this has something to do with automatic styles?)
how do i get this resolved? Some samples down below...
// Calls to formating like thisprotectedvoidfillCompanyInformation(introw) {
// Fill the first cells with company datasetCellTextInItalic(row++, 0, prefs.get(Constants.PREFERENCES_YOURCOMPANY_NAME, ""));
setCellTextInItalic(row++, 0, prefs.get(Constants.PREFERENCES_YOURCOMPANY_OWNER, ""));
setCellTextInItalic(row++, 0, prefs.get(Constants.PREFERENCES_YOURCOMPANY_STREET, ""));
setCellTextInItalic(row++, 0, prefs.get(Constants.PREFERENCES_YOURCOMPANY_ZIP, "") + " " + prefs.get(Constants.PREFERENCES_YOURCOMPANY_CITY, ""));
}
// Formating works like thispublicstaticvoidsetBold(finalOdfTablespreadsheet, finalintrow, finalintcolumn) {
// Get the cell by the row and the columnOdfTableCellcell = getCell(spreadsheet, row, column);
cell.getOdfElement().setProperty(OdfTextProperties.FontWeight, "bold");
}
Thank you for your help in advance.
The text was updated successfully, but these errors were encountered:
I am sorry, I have too little time to dive into it and fix it. Unless someone else fixes this specific problem. You might preformat the spreadsheet you are using.
Otherwise, if the functionality is not doing what is expected. Please assist and try to provide a patch.
Thanks in advance!
Svante
Hi,
i currently face the problem of exporting data from a database into an odf-table. Inserting data seems to work fine, but formating goes cracy since i dont want to use simple-odf.
Here is the problem:
After writing a cell and formating it bold or set a background color, the next cell i write also uses this style, not the default plain setting. (as i read a little, this has something to do with automatic styles?)
how do i get this resolved? Some samples down below...
Thank you for your help in advance.
The text was updated successfully, but these errors were encountered: