Hi Team
Please let me know is it possible to extract the inbuilt table style to create new table with same style.
I have written code mentioned below it is not working.
if(documentObject.getDocumentObjectType()==DocumentObjectType.Text_Range){
TextRange textRange = (TextRange) documentObject;
cellTextRed = textRange.getCharacterFormat().getTextColor().getRed();
cellTextGreen = textRange.getCharacterFormat().getTextColor().getGreen();
cellTextBlue = textRange.getCharacterFormat().getTextColor().getBlue();
fontSize = textRange.getCharacterFormat().getFontSize(); // Font Size
fontFamily = textRange.getCharacterFormat().getFontName();
isBold = textRange.getCharacterFormat().getBold();
}
}
cellProps.append("<td ");
cellProps.append("style=\"");
cellProps.append("border:1px solid black;");
cellProps.append("width:" + cellWidth + "px;");
cellProps.append("height:" + cellHeight + "px;");
cellProps.append("background-color:rgb(" + cellBgRed + "," + cellBgGreen + "," + cellBgBlue + ");");
cellProps.append("color:rgb(" + cellTextRed + "," + cellTextGreen + "," + cellTextBlue + ");");
cellProps.append("font-size:" + fontSize + ";");
cellProps.append("font-family:'" + fontFamily + "';");
if(isBold) {
cellProps.append("font-weight:bold;");
}
cellProps.append("padding:" + vPadding + "px " + hPadding + "px" + ";");
cellProps.append("\" ");
cellProps.append("align=\"" + hAlign + "\" ");
cellProps.append("valign=\"" + vAlign + "\" ");
Thanks in advance