Using HTML code to display HTML

You can directly enter the HTML code when you create an HTML container. When the document is executed in MicroStrategy Web, the HTML code is executed.

Note: In Design View in both Desktop and MicroStrategy Web, the actual HTML code is displayed.

For expanded examples, see the MicroStrategy Report Services Document Creation Guide.

HTML containers in MicroStrategy Web

For example, a document contains an HTML container. In Express Mode in MicroStrategy Web, it displays as shown below:

The HTML code in it is very simple, but you can use any HTML codes.

In Express Mode, Interactive Mode, and Editable Mode in MicroStrategy Web, all valid HTML is supported. The HTML code is interpreted by the user’s browser. Not all HTML codes are supported in Flash Mode in MicroStrategy Web. The following HTML codes are supported in Flash Mode:

Note: For a full description of the HTML that Flash supports, see the Adobe website at livedocs.adobe.com/flex/201/langref/flash/text/TextField.html#htmlText.

HTML containers in PDF and Excel

In PDF View in Desktop, and when the document is exported to PDF or Excel, only the text in the HTML container is displayed. The formatting is determined by the formatting of the HTML container, not the HTML code within it. Notice that the first line is the same size and color as the second line, unlike in the previous sample.

Anything within the following tags is removed, and does not display:

To insert a HTML container that uses HTML code

    1.  

  1. Open a document in Design or Editable Mode.

  2. Do one of the following:

  3. On the Layout area, click and drag in the position in which to insert the HTML container.

  4. Right-click the HTML container and select Properties and Formatting. The Properties and Formatting dialog box opens.

  5. By default, an HTML container uses HTML code rather than a URL (see Displaying a website using a URL (iFrame)). Ensure that HTML Text is selected.

  6. Click OK to save your changes.

  7. Double-click in the HTML container to enter text.

  8. Enter the HTML code in the HTML container. To create a new line, press ENTER.

  9. When you have finished typing click anywhere outside the HTML container. The HTML code is displayed in the HTML container in Design View.

  10. Switch to Express Mode to see the changes.

Related topics