Example - Add a Multimedia File to a Report

You are a report author at The Sample Outdoors Company, which sells sporting equipment. You want to insert a Microsoft Windows Media Audio/Video file named GO.wmv in a template that serves as a cover page for all reports.

You must have Windows Media Player installed on your computer.

Procedure

  1. Open IBM® Cognos® Report Studio with the GO Data Warehouse (query) package.
  2. In the Welcome dialog box, click Create a new report or template and in the New dialog box, click Blank.
  3. From the Toolbox tab toolbox tab, drag the HTML Item object HTML Item object icon to the report.
  4. Select the HTML Item.
  5. In the Properties pane, double-click the HTML property.
  6. In the HTML dialog box, type the following:

    <OBJECT classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"> <PARAM NAME="URL" VALUE="/c10/webcontent/samples/images/GO.wmv"/> </OBJECT>

Results

When you run the report in HTML format, the multimedia file plays in Windows Media Player.