Hello,
how can I use GolbalCommands.FORMAT_PAINTBRUSH?
I have to copy the style (border, background color...) of cells because GlobalCommands.COPY and GlobalCommands.PASTE only copy the content format.
doc.setSelection(new XInterfaceObjectSelection(toCopy.getXCellRange()));
frame.getDispatch(GlobalCommands.FORMAT_PAINTBRUSH).dispatch();
// At this moment format paintbrush is selected - ok
doc.setSelection(new InterfaceObjectSelection(target.getXCellRange()));
// -> Surprisingly, nothing happens.
What do I wrong?