Linking Objects in Different HTML Documents

If you have a report that is just one part of a series of HTML documents, you might want to add some anchors in key places. The anchors allow you to create other HTML documents that link directly to specific sections in your report.

For example, assume you have a report titled Customer List that includes information about each of your customers (a narrative, a photo or logo image, a link to the customer’s Web site). If you wanted, you could link each customer in this report to another report that contains information about customer product sales

*  To anchor objects in different HTML documents:

  1. Create the anchor.

    Create the anchor for the object you wish to link to.

    To create an anchor:

    • Select an object in the report layout and create the anchor in the Property Explorer:

    • Create the anchor on the HTML property page for the selected object.

      To access the HTML property page, double-click the object in the report layout, or right-click the object and select Object Properties.

    Avoid using spaces, punctuation, and special characters in an anchor. Letters and numbers work best. Do not include the number sign (#) in an anchor name. In this example, since we are linking to a sales report, we could name the anchor Sales.

    When you create an anchor on the HTML property page, you can either type in the anchor, or click the button to the right of the Name field and select a column from the Insert Column Values dialog box. When you select a column from the Insert Column Values dialog box, SQR Production Reporting Studio automatically generates the correct syntax for the anchor.

  2. Link other objects to the anchored object.

    1. Select Create Link in the Property Explorer or on the HTML property page for the object you wish to link from.

    2. In the URL field, enter the URL for the HTML document you wish to link to. Place an anchor for the object you are linking to within the HTML document at the end of the URL.

      When referring to an anchor name in a URL, you must precede the anchor with the number sign (#).

      For example, assume the URL for the report containing information about customer product sales is http://www.products.com/report.html. To link to the section of the report that contains information about sales, you could append the anchor #Sales to the end of the URL as follows:

      http://www.sales.com/report.html#Sales

      When you preview the HTML report, the object you are linking from will appear in a different color. Click the object to go to the anchored object in your report.