![]() ![]() Short sTableColumnRelativeSum = ( Short ) xPS1.getPropertyValue( "TableColumnRelativeSum" ) ĭouble dRatio = ( double ) sTableColumnRelativeSum / ( double ) iWidth ![]() Int iWidth = ( Integer ) xPS1.getPropertyValue( "Width" ) Get table Width and TableColumnRelativeSum properties values XPropertySet xPS1 = ( XPropertySet ) UnoRuntime.queryInterface( XText.insertTextContent(xText.getEnd(), xTextTable, false) XTextTable.initialize( 2, 2) // rows, cols XTextTable xTextTable = ( XTextTable ) UnoRuntime.queryInterface(XTextTable.class, xMSF.createInstance( ".TextTable" ) ) Creating a table with 13 rows and 2 columns My code is XMultiServiceFactory xMSF = ( XMultiServiceFactory ) UnoRuntime.queryInterface(XMultiServiceFactory.class, xdocument) Now i want to format the table cell content like giving it background color, changing font, size, alignment. I have created a table using open office api in java.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |