You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Lior Shliechkorn <li...@yahoo.com> on 2003/12/24 18:50:35 UTC

DANNY MUI: Re: Is there a bug in the setPrintArea()?

I can't really include more of a code segement than I already did...=\. But the problem I'm having doesn't seem to come from the rows themselves, which works fine for me as well, but the problem is in the columns being cut off.
 
I want to print up to column N, but I get cut off at J.
 
Any ideas, or did this happen to you as well?
 
Thanks

Danny Mui <da...@muibros.com> wrote:
I just tried it with row counts from 40-1000 and it seems to work properly.

Perhaps a more comprehensive code snippet to fully duplicate the problem?


Lior Shliechkorn wrote:
> Any ideas on why I can't get it to work?
> 
> Danny Mui wrote:looks simple enough to match the test cases that were written but will 
> investigate nonetheless.
> 
> both calls end up using the same logic so they should be consistently 
> wrong/right hehe.
> 
> 
> Lior Shliechkorn wrote:
> 
>>Hi,
>>
>>I'm trying to set a print area so that my file can fit on one page. However, I'm not getting the results I need from the setPrintArea() - both methods.
>>
>>This is what I'm doing:
>>
>>wb.setPrintArea(0, "$A$1:$N$" + GLOBAL_ROW_COUNT);
>>
>>or
>>
>>wb.setPrintArea(0, 0, 15, 0, (int) GLOBAL_ROW_COUNT);
>>
>>The global_row_count just keeps track on which row I am on the page - pretty self-explanatory.
>>
>>The problem is that it's doing ok on the row side, but on the column side it's still cutting off around column J.
>>
>>Any ideas on how to get around this issue?
>>
>>Thank you very much,
>>
>>Lior Shliechkorn
>>
>>
>>---------------------------------
>>Do you Yahoo!?
>>New Yahoo! Photos - easier uploading and sharing
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: poi-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-user-help@jakarta.apache.org


---------------------------------
Do you Yahoo!?
Yahoo! Photos - Get your photo on the big screen in Times Square

Re: DANNY MUI: Re: Is there a bug in the setPrintArea()?

Posted by Lior Shliechkorn <li...@yahoo.com>.
I have the page set as landscape actually, which is why I think I'm getting cut off the way I am. I'm not sure what else I would be able to do.
 
thanks,
 
Lior

Danny Mui <da...@muibros.com> wrote:
Actually it gets cut off at I hehe. Switch to landscape and you see the 
cutoff change to somewhat larger. We can't print 2 pages worth of stuff 
onto 1 page can we? Might be able to squeeze more in by modifying 
margins and the such but seems like "it's working as intended".

i hate that line ;)

danny

Lior Shliechkorn wrote:

>I can't really include more of a code segement than I already did...=\. But the problem I'm having doesn't seem to come from the rows themselves, which works fine for me as well, but the problem is in the columns being cut off.
> 
>I want to print up to column N, but I get cut off at J.
> 
>Any ideas, or did this happen to you as well?
> 
>Thanks
> 
>



---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-user-help@jakarta.apache.org


---------------------------------
Do you Yahoo!?
Yahoo! Photos - Get your photo on the big screen in Times Square

Re: DANNY MUI: Re: Is there a bug in the setPrintArea()?

Posted by Danny Mui <da...@muibros.com>.
Actually it gets cut off at I hehe.  Switch to landscape and you see the 
cutoff change to somewhat larger.  We can't print 2 pages worth of stuff 
onto 1 page can we?  Might be able to squeeze more in by modifying 
margins and the such but seems like "it's working as intended".

i hate that line ;)

danny

Lior Shliechkorn wrote:

>I can't really include more of a code segement than I already did...=\. But the problem I'm having doesn't seem to come from the rows themselves, which works fine for me as well, but the problem is in the columns being cut off.
> 
>I want to print up to column N, but I get cut off at J.
> 
>Any ideas, or did this happen to you as well?
> 
>Thanks
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-user-help@jakarta.apache.org