I'm trying to access an Excel file through LotusScript. But since Microsoft Office was not installed in my computer, the code prompts an error because it is not possible to create the automation object. Do you know a solution for this problem (without having to install MS Office)?
It sounds like you're using OLE automation. The Notes client doesn't understand Excel format, so it has to communicate with intermediate software -- such as MS Office -- that does know how to read this file.
As I see it, your options are:
Use some other software that knows the Excel file format and has an OLE interface. Lotus 1-2-3 might do.
Use some other software that has a non-OLE API and understands Excel format -- I don't know of one offhand but such software might exist.
You might be able to create an ODBC connection to the file and use ODBCConnection or the LC LSX to read it. The problem here is that I'm not sure whether you can get the ODBC driver for that except as part of Office.
Learn the Excel file format and write an agent in Notes that uses the NotesStream class to read in the file. Admittedly, this is a lot of work.
Do you have comments on this Ask the Expert question and response? Let us know.
Dig Deeper on LotusScript
Learn how you can use LotusScript and OLE to create and populate Microsoft Excel spreadsheets, as well as a little bit about Lotus Symphony.
Discover options you can use if you'd like external users to be able to access a workflow-based Notes Domino application through different ...
Learn why you may receive the error message: "Illegal circular use: Audit Trail" when trying to open Lotus Notes documents that use copied forms.