MicroStrategy ONE

Displaying formatted HTML in an HTML container

Steps to insert an HTML container that displays formatted HTML

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

 

For expanded examples, see the Document Creation Help.

HTML containers in MicroStrategy Web

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

HTML tag

This is a paragraph in HTML. The font is gray.

The HTML in it is very simple, but you can use any HTML tags, although note the exceptions for Flash, described in HTML tags supported in Flash Mode below.

In Express Mode, Interactive Mode, and Editable Mode in MicroStrategy Web, all valid HTML is supported. The HTML tags are interpreted by the user's browser.

HTML tags supported in Flash Mode

Not all HTML tags are supported in Flash Mode in MicroStrategy Web. The following HTML tags are supported in Flash Mode:

  • <A href, event, target>

  • <B>

  • <BR>

  • <FONT color, face, size>

  • <IMG src, width, height, align, hspace, vspace, id, checkPolicyFile>

  • <I>

  • <LI>

  • <P align, class>

  • <SPAN class>

  • <TextFormat blockindent, indent, leading, leftmargin, rightmargin, tabstops>

  • <U>

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 Excel

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

HTML tag This is a paragraph in HTML. The font is gray.

In Excel, anything within the following tags is removed, and does not display:

  • <HEAD>

  • <STYLE>

  • <SCRIPT>

For example, this HTML container, shown in Design View:

<head> The quick brown fox </head>

<style> Jumped over </style>

<body> The <b>fence,</b> </body>

<script> --Anonymous </script>

Displays as the following in PDF View:

The fence

Notice that the text within the head, style, and script tags is not displayed, and the word "fence" is not bold.

The HTML tags in the HTML container are not complete; they are used only to demonstrate the concept.

To insert an HTML container that uses HTML tags

  1. Open the document in the Document Editor. How?

  2. Do one of the following:

    • Click the HTML Container icon on the toolbar.

    • From the Insert menu, select HTML Container.

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

  4. By default, an HTML container uses HTML tags rather than a URL (see Displaying a website using a URL (iFrame)). In the Property List, HTML type should be set to HTML text.

  5. Right-click the HTML container and select Edit Text.

  6. Enter the HTML tags in the HTML container. To create a new line, press CTRL+ENTER. When you have finished typing, press ENTER or click anywhere outside the HTML container.

The HTML tags are displayed in the HTML container in Design View. The HTML tags are not rendered until you view the document in MicroStrategy Web.

Related Topics