× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello,

    cell = HSSFRow_GetCell(Row:  85);        <-------------ERROR (cell=0)
[SNIP]
Cell no. 85 returns with 0 (zero) which indicates 'no cell found'
and the program dumps in line 3 of the section.

There is nothing wrong with cell no. 85 in the row as I can see.
All fields that gives the error is char. fields.

To conserve space, Excel will only include cells if they're not empty. The empty cells are not saved to the file.

Therefore, you may get this error when trying to update a cell that's empty in your spreadsheet. I suggest that you check it by coding something like the following (untested):

    cell = HSSFRow_getCell(row: 85);
    if cell = *NULL;
        cell = HSSFRow_createCell(row: 85);
    endif;

Good luck


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.