Chapter 6. Connecting Microsoft Word

Table of Contents

6.1. Getting Data into Word

6.1. Getting Data into Word

Before starting, to see any results you will have to ensure that you have some kind of data feed into the Cascade DataHub. If your system isn't set up for this yet, you can create a local data feed by following the steps outlined in Section 1.2, “Test with simulated data”.

  1. Right click on the Cascade DataHub system-tray icon and choose Properties.
  2. In the Properties window, select DDE .
  3. Ensure that the box Act as a DDE server is checked, and that the name datahub appears in the DDE Service Name area. If not, click the Add... button and add the name datahub.
  4. Click OK to close the Properties window.
  5. Right click on the Cascade DataHub system-tray icon and choose View Data from the pop-up menu to open the Data Browser.
  6. Select the DataSim domain in the left-hand pane of the window.
  7. Open an MS Word document
  8. In the Data Browser, find the data point DataSim.Sine, click on the name, and drag the point into the Word document.
    You should see the data updating live in the document.

If you want the data to be updated manually instead of automatically, you can follow this procedure:

  1. Click anywhere in the updating number. The background around the number will turn gray.
  2. Press Shift-F9.
    A formula should appear, surrounded by brackets. The word DDEAUTO in the formula causes it to be updated automatically.
  3. To get manually controlled updates, change DDEAUTO to DDE.
  4. Press F9 and the formula will revert back to a number.

Any time you want to update the data, you can click in the number and press F9. If you want to go back to automatic updates, repeat the above procedure, replacing DDE with DDEAUTO.