Hi,

i hope the question hasn't been allready asked but i couldn't figure out
how to search this mailing list.

I want to draw some static checkboxes in a sheet.
The drawings allways applies only to a single cell.

Here is what i do:

                HSSFClientAnchor anchor = new HSSFClientAnchor(
                                0,
                                0,
                                1023,
                                255,
                                (short)column,
                                row,
                                (short)column,
                                row
                );
                anchor.setAnchorType(3);

(The meaning of the magic 1023 and 255 numbers for the lower right point
in the second cell are not well documented.)

Next i create the drawing patriach and a HSSFShapeGroup.
The shape group contains the box (group.createShape(new
HSSFChildAnchor(50, 50, 175, 175) as
HSSFSimpleShape.OBJECT_TYPE_RECTANGLE) and the text (HSSFTextbox).

Problem:
The first rendered box in a cell with witdh=x looks good. All other
boxes in cells with width!=x are streched or compressed. The text is
never affected of this behavior - only the boxes. It looks like
"anchor.setAnchorType(3);" is ignored.

I tested with poi-3.0.1-final and poi-3.0.2-beta1-20071204.jar.

Did i miss something ?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to