Superimposing unnecessary styles odfdom-java 0.9.0 #380
Replies: 3 comments 3 replies
-
Hi Nikita, Just some quick remarks:
Does this already help you, Nikita? All the best, |
Beta Was this translation helpful? Give feedback.
-
PS: And in the end - after editing - you might load the your ODS as default instead of the default from the jar with newSpreadsheetDocument()! |
Beta Was this translation helpful? Give feedback.
-
I can't use the latest version of the library because there are 8 java projects on the project and unfortunately I can't raise the version (Tell me more about your idea about Newspread sheetdocument()! And I have to open it in R7 because the customer has this program. Based on this, please help me, I've been suffering for 2 months now. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building tables ranging in size from 15 by 36.
Up to 360 and 400
But with the small ones, and with the big ones, I face the problem of incorrect cell outline, as well as incorrect cell union.
The solution was found by experiment
if you clear the borders across the entire table after creating the table, then the incorrect outline and other unnecessary styles go away.
here is an example
CLEAR_BORDER_UP_TO_COLUMN and CLEAR_BORDER_UP_TO_ROW - The value is 40
OdfSpreadsheetDocument odsFile = OdfSpreadsheetDocument.newSpreadsheetDocument();
ublic void clearTableBorders(OdfSpreadsheetDocument odsDocument, OdfTable table) throws Exception {
OdfOfficeAutomaticStyles styles = odsDocument.getContentDom().getAutomaticStyles();
But I have a 360 by 400 table.
And as you know, you can't go through the cells there.
Has anyone come across this, do you have any advice?
I will be very glad
Beta Was this translation helpful? Give feedback.
All reactions