Personal tools
You are here: Home Forum Nice Office Access (NOA) FORMAT_PAINTBRUSH

 • FORMAT_PAINTBRUSH

Replies: 0   Views: 89
Up one level

 • FORMAT_PAINTBRUSH

Posted by u1024 at 2011-07-27 15:01:16
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?
u1024 Member
Posts: 2

Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: