Alaska Software Inc. - Excel Viewer
Username: Password:
AuthorTopic: Excel Viewer
Chris Carmac

View the complete thread for this message in:

Excel Viewer
on Tue, 27 Apr 2010 17:42:51 -0400
Hello, everyone!

Microsoft provides a free utility called "Excel Viewer" that allows you 
to open and view Microsoft Excel documents.  It can be downloaded here...

http://www.microsoft.com/downloads/details.aspx?familyid=1cd6acf9-ce06-4e1c-8dcf-f33f669dbc3a&displaylang=en

I am attempting to create an instance of the Excel Viewer object in code 
and use it to import Excel files into my application.  I can already do 
this using the full Excel application, but I would like the option of 
using the Excel Viewer application also.

The Excel Viewer utility is installed on my computer as XLVIEW.EXE in 
the C:\Program Files\Microsoft Office\Office12 folder.  I assumed that 
the following line of code would work, but it doesn't:

oExcel := GetObject( , "Xlview.Application" )	

Nor does this...

oExcel := GetObject("C:\Program Files\MicrosoftOffice\Office12\XlView.exe")

Does anyone have any ideas regarding how I can get this to work?  Any 
help will be appreciated.

Thanks!

Chris Carmac