public byte[] serialize() {
                int wbsize    = m_workBook.getSize();
                int totalsize = wbsize;
                for (int k = 0; k <= m_numOfSheets;k++){
                        m_workBook.setSheetBof(k, totalsize);
                        totalsize += getSheet(k).getSize();
                }
                if(totalsize < 4096) {
                        totalsize = 4096;
                }
                byte[] workBookStream = new byte[totalsize];
                int pos = serializeWorkBook(workBookStream);
                pos += this.serializeSheets(workBookStream,pos);
                for(int k = pos; k < totalsize; k++){
                        workBookStream[k] = 0;
                }
                System.out.println("TotalSize="+totalsize+" and Pos="+pos);
                return workBookStream;
        }


hey thanks a lot i shall try converting the whole code to Usermodel based
but i am a newbie so finding it difficult...is there any site which provides
suggestions or information on alternative methods with the same use...this
is a part of the code  ...i would like to build the remaining based on this
...
-- 
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/Using-HSSF-record-methods-for-a-SS-usermodel-tp3246532p3247955.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to