You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Katerina Manolaki <Ka...@rulefinancial.com> on 2004/02/06 17:43:43 UTC

Column Hide

I am trying to hide a few columns in the spreadsheet I have created and I
came across the columnInfoRecord class but it does to seem to work for me.

I have tried 2 ways and none of them works:

 1. columnInfoRecord = new ColumnInfoRecord();
    columnInfoRecord.setFirstColumn((short) 3);
    columnInfoRecord.setLastColumn((short) 5);
    columnInfoRecord.setHidden(true);
	
    It compiles runs but the specified columns are not hidden when output.

 2. byte[] test = new byte[3];
	test[0] = 4;
	columnInfoRecord = new ColumnInfoRecord((short) 0x7d, (short) 4,
test);
	columnInfoRecord.setFirstColumn((short) 3);
	columnInfoRecord.setLastColumn((short) 4);
	columnInfoRecord.setHidden(true);

 It compiles but it throws an exception at run time when it reaches line 3
 the exception discription is exception 3.

Please help.


Regards

Katerina Manolaki
Rule Financial
0207 653 5817
07801 345 290

"Featured as one of Britain's fastest growing technology companies in the
2003 Sunday Times ARM Tech Track 100".



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.573 / Virus Database: 363 - Release Date: 28/01/2004
 

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