× 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.




Yes, Scott, it was me who had the problem with the open. And you did tell
me how to fix it. I'm using the 'access' API and it works beautifully. The
problem is that the workbook DOES exist.

Yes, I know it exists. If it didn't exist, you couldn't possibly get the error you posted.

I'm missing something. Why are you telling me about the access() API? I mean, I'm glad it helped you, and I'm glad that part of it is working, but it's not really relevant to today's error message.

You wrote a message this morning saying (I'm paraphrasing) that you thought it was strange that HSSF_open() would return 0 (which is *NULL) when it got an error opening a file. I told you that I changed HSSF_open() so that it traps any error reported by the Java routines, and if an error occurred that preventred it from opening the file, it returns *NULL. Yes, I did this in response to the SAME issue that caused you to use access(), but that doesn't make them the same thing!

So it's not strange that you're getting a zero returned. That's what it's supposed to do when it receives an error. Not just a "file not found" error, but ANY error. (RPG is not capable of monitoring for a particular error message to be thrown from Java, it has to trap all possible errors.)


Now, in production, the original sheet has been emailed to the salesman,
who's changed it and emailed it back to me. I save his sheet to my desktop
and then drag it to the 'inbound' folder in the IFS. I don't know what
version of Excel he uses to save his sheet. Should it matter? I've tried
re-saving his sheet using MY Excel version and the read ('open') still
fails.

It could very well matter. Obviously Excel 2003 supports more features than Excel 2002. And I'm sure Excel 2002 supports more features than HSSF.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.