Using Microsoft Excel

IWS‘s database interface lets you store information in and retrieve information from Microsoft Excel spreadsheet (XLS or XLSX) files.

You do not need to have Excel installed on the same computer as IWS; IWS can directly read from and write to an existing XLS/XLSX file. However, you do need to use Excel to create the initial file — either a blank spreadsheet for new data or a populated spreadsheet for reference data. Once you’ve created the file, you can move it to any location and establish a connection to it there.

Note: This procedure was last tested using Microsoft Excel 2007 (12.0.6331.5000).
To establish a connection between your IWS project and your XLS/XLSX file:
  1. In the Database Configuration property sheet, click the Browse button ().
    The Data Link Properties property sheet is displayed:
    Figure 1. Selecting the OLE DB Provider
    Web Studio Help data link office12 1 Using Microsoft Excel

  2. Select the appropriate OLE DB Provider for your database:
    • For a Microsoft Excel 2003 spreadsheet file, select Microsoft Jet 4.0.
    • For a Microsoft Excel 2007 spreadhseet file, select Microsoft Office 12.0 Access Database Engine.
  3. Click Next.

    The Connection tab of the property sheet is displayed:

    Figure 2. Specifying the location of the file
    Web Studio Help data link office12 2 Using Microsoft Excel

  4. In the Data Source text box, type the complete file path for your XLS/XLSX file.
    Although the file can be located anywhere on your computer or network, it may be useful to keep it in your project folder. For example:
      C:UsersusernameDocumentsInduSoft Web Studio v7.1 Projectsproject_nameBook1.xlsx  

    If you do this, however, then you must update the file path whenever you move the project folder.

  5. Click the All tab.
  6. Select Extended Properties and then click Edit Value.

    The Edit Property Value dialog is displayed.

  7. In the Property Value text box, type one of the following values:
    • For a Microsoft Excel 2003 spreadsheet file, type Excel 11.0.
    • For a Microsoft Excel 2007 spreadhseet file, type Excel 12.0.
  8. Click OK to close the Edit Property Value dialog.
    Web Studio Help data link office12 5 Using Microsoft Excel

    Editing the value of Extended Properties

  9. Click the Connection tab.
  10. Click Test Connection.

    If a connection can be successfully established, then an appropriate message is displayed.

  11. Click OK to save your changes and return to the Database Configuration property sheet.
Note: Be sure to select (check) the Disable Primary Keys option in the Database Configuration dialog. If you do not, then IWS will not be able to connect to your Excel spreadsheet.
Important: Desktop office applications such as Microsoft Access and Microsoft Excel cannot efficiently handle large amounts of data. If you try to save all of your project’s historical data in an Access database or Excel spreadsheet, then the queries will become slow and you might get unexpected results. Therefore, we recommend that Access or Excel be used only as a Secondary Database, with the Store and Forward option enabled, or to relay data to third-party software.

To handle large amounts of historical data, we recommend that you use either IWS‘s proprietary format or a dedicated relational database such as Microsoft SQL Server or ORACLE.

Using Microsoft Excel