You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by "Singh, Arshi (Indsys)" <Ar...@geind.ge.com> on 2003/07/08 15:16:23 UTC

creating second hssf sheet

Hi,
   I have created a new workbook using POI hssf and made one excel sheet
containing a number of fonts, styles etc. After that when i try to create a
second sheet , it gives problems.
	If i try to create a small sheet 2 with a few lines of different
fonts then the fonts do not show as desired in sheet 2 and if i try to
create a big sheet 2 having tables and orientations then the my output excel
file does not even open up and shows the error "Too Many Different Cell
Formats".
	Can somebody please help me detect the error. Could it be because of
some buffer in memory ????
Thanks,
Arshi.


"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this 
communication is strictly Prohibited. 
If you have received this message by error, please notify us 
immediately, return the original mail to the sender and delete the 
message from your system."


RE: creating second hssf sheet

Posted by Avik Sengupta <av...@apache.org>.
oops.. sorry and thanks
On Wed, 2003-07-09 at 09:29, Michael Zalewski wrote:
> It probably doesn't help much, cuz the real URL is
> 
> http://jakarta.apache.org/poi/faq.html#faq-N100C2
> 
> And the short answer is that you have to limit the number of HSSFStyle
> objects that you create. If you create a new one for each cell, you make too
> many for Excel to handle. The FAQ contains good sample code.
> 
> -----Original Message-----
> From: Avik Sengupta [mailto:avik@apache.org]
> Sent: Tuesday, July 08, 2003 11:32 AM
> To: POI Users List
> Subject: Re: creating second hssf sheet
> 
> Does this help?
> http://jakarta.apache.org/poi/faq#faq-N100C2
> 
> 
> On Tue, 2003-07-08 at 18:46, Singh, Arshi (Indsys) wrote:
> > Hi,
> >    I have created a new workbook using POI hssf and made one excel sheet
> > containing a number of fonts, styles etc. After that when i try to create
> a
> > second sheet , it gives problems.
> >       If i try to create a small sheet 2 with a few lines of different
> > fonts then the fonts do not show as desired in sheet 2 and if i try to
> > create a big sheet 2 having tables and orientations then the my output
> excel
> > file does not even open up and shows the error "Too Many Different Cell
> > Formats".
> >       Can somebody please help me detect the error. Could it be because of
> > some buffer in memory ????
> > Thanks,
> > Arshi.
> >
> 
> [useless trailers snipped]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: poi-user-help@jakarta.apache.org
> 
-- 
Avik Sengupta <av...@apache.org>


RE: creating second hssf sheet

Posted by Michael Zalewski <za...@optonline.net>.
It probably doesn't help much, cuz the real URL is

http://jakarta.apache.org/poi/faq.html#faq-N100C2

And the short answer is that you have to limit the number of HSSFStyle
objects that you create. If you create a new one for each cell, you make too
many for Excel to handle. The FAQ contains good sample code.

-----Original Message-----
From: Avik Sengupta [mailto:avik@apache.org]
Sent: Tuesday, July 08, 2003 11:32 AM
To: POI Users List
Subject: Re: creating second hssf sheet

Does this help?
http://jakarta.apache.org/poi/faq#faq-N100C2


On Tue, 2003-07-08 at 18:46, Singh, Arshi (Indsys) wrote:
> Hi,
>    I have created a new workbook using POI hssf and made one excel sheet
> containing a number of fonts, styles etc. After that when i try to create
a
> second sheet , it gives problems.
>       If i try to create a small sheet 2 with a few lines of different
> fonts then the fonts do not show as desired in sheet 2 and if i try to
> create a big sheet 2 having tables and orientations then the my output
excel
> file does not even open up and shows the error "Too Many Different Cell
> Formats".
>       Can somebody please help me detect the error. Could it be because of
> some buffer in memory ????
> Thanks,
> Arshi.
>

[useless trailers snipped]


Re: creating second hssf sheet

Posted by Avik Sengupta <av...@apache.org>.
Does this help?
http://jakarta.apache.org/poi/faq#faq-N100C2


On Tue, 2003-07-08 at 18:46, Singh, Arshi (Indsys) wrote:
> Hi,
>    I have created a new workbook using POI hssf and made one excel sheet
> containing a number of fonts, styles etc. After that when i try to create a
> second sheet , it gives problems.
> 	If i try to create a small sheet 2 with a few lines of different
> fonts then the fonts do not show as desired in sheet 2 and if i try to
> create a big sheet 2 having tables and orientations then the my output excel
> file does not even open up and shows the error "Too Many Different Cell
> Formats".
> 	Can somebody please help me detect the error. Could it be because of
> some buffer in memory ????
> Thanks,
> Arshi.
> 
> 
> "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
> ADDRESSEE and may contain confidential and privileged information.
> If the reader of this message is not the intended recipient,
> you are notified that any dissemination, distribution or copy of this 
> communication is strictly Prohibited. 
> If you have received this message by error, please notify us 
> immediately, return the original mail to the sender and delete the 
> message from your system."
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: poi-user-help@jakarta.apache.org
> 
-- 
Avik Sengupta <av...@apache.org>


Re: creating second hssf sheet

Posted by "Andrew C. Oliver" <ac...@apache.org>.
http://jakarta.apache.org/poi/faq.html#faq-N100C2

On 7/8/03 9:16 AM, "Singh, Arshi (Indsys)" <Ar...@geind.ge.com> wrote:

> Hi,
>  I have created a new workbook using POI hssf and made one excel sheet
> containing a number of fonts, styles etc. After that when i try to create a
> second sheet , it gives problems.
> If i try to create a small sheet 2 with a few lines of different
> fonts then the fonts do not show as desired in sheet 2 and if i try to
> create a big sheet 2 having tables and orientations then the my output excel
> file does not even open up and shows the error "Too Many Different Cell
> Formats".
> Can somebody please help me detect the error. Could it be because of
> some buffer in memory ????
> Thanks,
> Arshi.
> 
> 
> "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
> ADDRESSEE and may contain confidential and privileged information.
> If the reader of this message is not the intended recipient,
> you are notified that any dissemination, distribution or copy of this
> communication is strictly Prohibited.
> If you have received this message by error, please notify us
> immediately, return the original mail to the sender and delete the
> message from your system."
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: poi-user-help@jakarta.apache.org
> 

-- 
Andrew C. Oliver
http://www.superlinksoftware.com/poi.jsp
Custom enhancements and Commercial Implementation for Jakarta POI

http://jakarta.apache.org/poi
For Java and Excel, Got POI?