I'm getting an error when using dx1 and dx2 to resize the borders of my HSSFRichTextString HSSFClientAnchor(int dx1, int dy1, int dx2, int dy2, short col1, int row1, short col2, int row2)constructor. The mistery is : After fixxing a value do dx1, when I'm finding a value do dx2, beggining with 1023, and then 800, etc. always decreasing. And exacly when dx2 become less than dx1, the draw get mad. It swaps the values of dx1 and dx2.
   Trying to find a solution, all that I found was the explanation below:
 HSSFClientAnchor

 public HSSFClientAnchor(int dx1,
                         int dy1,
                         int dx2,
                         int dy2,
                         short col1,
                         int row1,
                         short col2,
                         int row2)

Creates a new client anchor and sets the top-left and bottom-right coordinates of the anchor.

 Parameters:
     dx1 - the x coordinate within the first cell.
     dy1 - the y coordinate within the first cell.
     dx2 - the x coordinate within the second cell.
     dy2 - the y coordinate within the second cell.
     col1 - the column (0 based) of the first cell.
     row1 - the row (0 based) of the first cell.
     col2 - the column (0 based) of the second cell.
     row2 - the row (0 based) of the second cell.



But I think that the description to dx2 and dy2 are wrong. Isn't it LAST CELL, instead of second cell, for dx2 and dy2 descriptions ??

But this doesn't solve my problem. So, here I am writing this message to you.

What can I do ? Is this a mistake mine ? Forget HSSF for a while ? Is there comming a solution to this problem ? When ?

 here is my code:
         //      Include value 2005
         HSSFTextbox valueYear = patriarch.createTextbox(
new HSSFClientAnchor(823,0,1023,0,(short)10,5,(short)12,7));
         valueYear.setString(new HSSFRichTextString("2005") );
when decreasing dx2, in the moment that dx1 become greater than dx2, the problem arise.

PS: I don't know if i'm using the right channel to discuss about a possible error in HSSFClientAnchor constructor, but you probably knows where to forward this message to. Or answer me where can I find a list group for this subject.

Thanks a lot,

Guilherme

_________________________________________________________________
MSN Busca: fácil, rápido, direto ao ponto.  http://search.msn.com.br


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/

Reply via email to