Markup Text
Trouble seeing the images? Right click on images and open in new tab to enlarge or zoom in on the page (Ctrl + mousewheel).
Article Goal: Create a Finished Report that leverages the labels with the Allow Markup Text option enabled.
In this article we are going to cover the steps to create a Finished Report that leverages labels with the Allow Markup Text option enabled.
Try it out using our Sample View! Just click the link to download the View (saved with data).
Why Enable Allow Markup Text?
Enabling the Allow Markup Text option will give you the ability to use simplified HTML tags to format text strings.
Example: Formatting Label with Markup Text / Expression Logic
Example: Results
Where Do You Enable Allow Markup Text?
Markup Text can be enabled by selecting the desired label and then clicking on the checkbox for the Allow Markup Text property located in the Behavior properties.
Video Tutorial:
Available Format Tags / Syntax / Examples
Text Format Tags
-
Bold text
- Syntax: <b></b>
- Example: '<b>Bold text</b>'
-
Italic text
- Syntax: <i></i>
- Example: '<i>Italic text</i>'
-
Strikethrough text
- Syntax: <s></s>
- Example: '<s>Strikethrough text</s>'
-
Underlined text
- Syntax: <u></u>
- Example: '<u>Underlined text</u>'
-
Combination text
- '<b><u> Bold and Underlined text </u></b> '
- The <r> tag applies normal text formatting, resetting any existing bold, italic, underlined, and strikethrough formats following the tag.
- '<b><u> Bold and Underlined text<r>Normal or Reset Format Text </u></b>'
MISC Format Tags
-
Size
- Syntax: '<size=value></size>'
- Example: '<size=10>10pt text</size>'
-
Color
- Syntax: '<color=value></color>'
- Example: '<color=red>Red Text</color>'
-
Backcolor
- Syntax: <backcolor=value></backcolor>
- Example: '<backcolor=red>Red Highlight</backcolor>'
-
Line break
- Syntax: <br>
- Example: 'Hello<br>World'
-
Font
- Syntax: <font></font>
- Example: '<font=Helvetica>Helvetica text</font>'
-
Subscript & Superscript
- Syntax: <sub></sub>, <sup></sup>
- Example: '<sub>Subscript Text</sub>' or '<sup>Superscript Text</sup>'
-
Hyperlink
- '<href=value>Your URL</href>' or '<a href=value>Your URL</a>'
- If the value contains a space, put the string in quotes.
- value = the URL you want.
-
Non-breaking Space
- Syntax:<nbsp>
- Example: 'Hello<nbsp>World'
Steps to Enable and Use Markup Text.
1. Open the Finished Reports Designer.
2. Select the desired label you want to enable Allow Markup Text on.
3. Click on the Behavior properties for the selected label.
4. Enable the Allow Markup Text option on all desired labels.
5. Enter the expression editor for the label's text and create your expressions.
NOTE: Each argument in the expression editor needs to be separated with a plus ( + )
TIP: If you mouse over the section of text in the expression editor, you will see a preview of what the text will look like.
6. Save the desired changes.
Try it out using our Sample View! Just click the link to download the View (saved with data).
Comments
0 comments
Please sign in to leave a comment.