Interfacing WOW with Excel
WOW has the ability to read an Excel file using a JDBC-ODBC bridge. This may be useful in scenarios where
you want to allow multiple users to see the contents of an Excel file. WOW has the ability to query databases and export the results into
Excel files which is covered in a different section.
Connecting WOW to an Excel File
To connect WOW to a MS Excel file the following steps need to be done:
Create an ODBC System Data Source (DSN) on the same system where the
application server is installed. (Remote access is not supported)
The DSN must reference the desired Excel worksheet.
Connect WOW to the created DSN from step 1 & 2.
NOTE:
Only read access is recommended although limited update capabilities are available.
Support is available via JDBC ODBC Bridge.
Excel files must reside on the same system as the WOW server although mapped drive
support may be possible.
Go to start > Control panel > administrative tool > Data Source(ODBC) as seen in the
screenshot below.
Choose "System DSN" and click on "Add" button.
Under "Create New Data Source" panel, choose "Microft Excel Driver (*.xls)" then hit
"Finish" as in the screenshot below.
Pointing to desired Excel worksheet
After clicking "finish" as the screenshot above, name the "Data Source Name" as desired
and remember this name for using later then click on "Select Workbook." In this example,
the DSN is named "Mexcel."
NOTE: There may be connection problems if trying to connect to a version under
Microsoft Access/Excel 2000.
Point the DSN to the Excel file location (My file in C:\planetj\wowExcel\testWOWExcel.xls)
then click "OK."
NOTE: Only Uncheck the "Read Only" box (screenshot above) when data from excel spreadsheet needs to be updated.
Click "OK" (screenshot below)
Click "OK" (screenshot below)
JDBC Driver: MS Access/Excel (ODBC)
The IP Address: where DSN is located (in example it is “localhost”)
dsn: Mexcel ( this name was created earlier in step 1 of Pointing to the desired
Excel worksheet)
The sample connection string:
JDBC Driver: MS Access/Excel (ODBC)
URL: jdbc:odbc:localhost;dsn=Mexcel;