Hello everybody,

I have defined a new table style in my template and I would like 
programmatically to apply this new style when a table is added on a generated 
document.

I found this code example for applying style to a paragraph

XTextRange xTextRange = doc.getText().getStart();
XPropertySet props = UnoRuntime.queryInterface(XPropertySet.class, xTextRange);
props.setProperty("ParaStyleName", "NewParagraphStyle");

But I do not have idea how to do for table case.

Best regards,

Yupanqui


_______________________________________________
LibreOffice mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to