Looks like somebody submitted it for you :)

You'll have to find the link on the site somewhere, a lil busy here to hunt it down atm.

[EMAIL PROTECTED] wrote:

Hi Danny,

I have write the Junit class to test it, it look like a bug, could you
please have a look at the attached file as Junit test case.

BTW, how can I submit it bugzilla?

(See attached file: TestWorkbook.java)

Regards
Jimmy Zhang

Application Engineer
e-Business Division
Acer Computer Australia Pty Ltd
Tel: (612) 8762 3072
Fax: (612) 9764 2588
Email: [EMAIL PROTECTED]


|---------+----------------------------> | | Danny Mui | | | <[EMAIL PROTECTED]| | | m> | | | | | | 06/23/2004 03:23 | | | AM | | | Please respond to| | | "POI Users List" | | | | |---------+----------------------------> >------------------------------------------------------------------------------------------------------------------------------| | | | To: POI Users List <[EMAIL PROTECTED]> | | cc: | | Subject: Re: Problems in HSSFWorkbook setRepeatingRowsAndColumns(). | >------------------------------------------------------------------------------------------------------------------------------|




if this is a repeatable bug, can you please create junit to test for this failure and submit it bugzilla?

Thanks

[EMAIL PROTECTED] wrote:


Hi all,

When I try to use the "setRepeatingRowsAndColumns" method in HSSFWorkbook
object, it seems doed not work for me.

But when I instance a new HSSFWorkbook instead of instance it from a
existing xls file, it works.

Can any one tell me why?

The code are bellow:

   // Get the tempolate here
   byte[] template = XLSDatabaseRetriever.getXLS(url.toString());

   ByteArrayInputStream is = null;

   try {

     // Create POI file system
     is = new ByteArrayInputStream(template);
     POIFSFileSystem fs = new POIFSFileSystem(is);

     // Create the work book
     _workbook = new HSSFWorkbook(fs);

     _workbook.createSheet("Main");

     // Create the the repeating print area
     _workbook.setRepeatingRowsAndColumns(_workbook.getSheetIndex

("Main"),

-1, -1, 0, 0);
}catch (Exception e) {}

Regards
Jimmy Zhang

Application Engineer
e-Business Division
Acer Computer Australia Pty Ltd
Tel: (612) 8762 3072
Fax: (612) 9764 2588
Email: [EMAIL PROTECTED]



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


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







------------------------------------------------------------------------

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

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



Reply via email to