Hi,

> hi i am converting a code which uses poi 2.0 for 'export to excel.xls'
> (entirely hssf based) to one which can 'Export to either .Xls or .xlsx
> format ' using poi 3.6. i have made some of the necessary changes by
> replacing the HSSf.usermodel methods with SS.usermodel methods but there are
> some methods of record class and some other classes which are exclusive to
> HSSF. can anyone please help me out. thank you 
> 
> here are some of the methods which are creating problem:
> getrecords...
> getdimsloc...
> getsheetbof...
> addsstsstring....
> addvaluerecord...
> findfirstrecordbysid...
> getsize...

These low level methods are HSSF specific and have been private since POI 3.5.

If you are using SS then you should not need these.

BTW - POI 2.0 is 7 years old and a lot has changed with numerous bug fixes, 
etc. You will need to examine your use of these methods in each case. Try 
downloading the source distribution of POI 3.7 and see what makes use of these 
methods.

Come back and ask specific questions with code samples and we will try to help 
you find the correct higher level function.

Regards,
Dave

> 
> these are not compatible with the sheet(ss.usermodel.sheet) or the workbook
> (ss.usermodel.workbook)
> the only quick fix suggested by Eclipse is casting..which is not possible 
> -- 
> View this message in context: 
> http://apache-poi.1045710.n5.nabble.com/Using-HSSF-record-methods-for-a-SS-usermodel-tp3246532p3246532.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