The Contains HTML Tags property specifies whether the boilerplate text or field object includes HTML tags.
Oracle Reports 10g Release 2 (10.1.2) introduces text formatting enhancements that allow you to use a defined set of HTML formatting tags to format text style (bold, italics, underline, and strikethrough) and text attributes (font name, font color, and font size), and generate formatted text objects in all bitmap output formats supported by Oracle Reports when the objects' Contains HTML Tags property is set to Yes.
Applies to |
Boilerplate and fields, text file link, and placeholder columns. | ||||
Values |
| ||||
Default |
No | ||||
Required/Optional |
Optional |
The supported output formats are: PDF, RTF, HTML, HTMLCSS, spreadsheet, and PostScript.
This property setting is effective only when the command line includes
CONTAINSHTMLTAGS
=YES
.
If you run the report from the command line with CONTAINSHTMLTAGS
=NO
,
Oracle Reports will not interpret the HTML tags for the report, regardless
of the object's Contains HTML Tags property setting, and the HTML tags themselves
will appear as is in the report output.
If you need to pass the object width and height as parameters, you can
use the ObjectWidth
and ObjectHeight
variables,
as shown in the Example 3, below.
Beginning with Oracle Reports 10g Release 2 (10.1.2), when you set a text object's Contains HTML Tags property to Yes:
Any HTML formatting tags in the text object are interpreted and the formatting is applied in all bitmap output formats supported by Oracle Reports. The HTML tags supported by this feature, and examples, are listed in About HTML formatting.
The Vertical Elasticity and Horizontal Elasticity properties are enabled for the boilerplate text or field object.
Consider a text boilerplate text that is defined as follows:
<i><b>Design time format</b> is merged with <span
style="font-family:Arial; color:#00F">run time formatting instructions.</span></i>
With its Contains HTML Tags property set to Yes, this will format as:
Design time format is merged with run time formatting instructions.
With its Contains HTML Tags property set to No, this will format in the report output as:
<i><b>Design time format</b> is merged with <span style="font-family:Arial; color:#00F">run time formatting instructions.</span></i>
In a boilerplate text object, you can type the following text:
<a href=http://your_webserver/reports/my_report.html>
<img src=oracle.gif> </a>
With the Contains HTML tags property set to Yes, this object will appear in
HTML/HTMLCSS report output as a graphic (oracle.gif
) , which the
end user can click to link to my_report.html
.
In a boilerplate text object, you can type the following Java Applet, called
NervousText.class
, which takes the object width and height as parameters:
<base href=http://cagney.uk.oracle.com/java/NervousText/>
<applet code="NervousText.class" width=&ObjectWidth height=&ObjectHeight>
<param name=text value="&deptno">
</applet>
With the Contains HTML tags property set to Yes, this object will be interpreted with the parameters replaced with their actual values, as follows:
<base href=http://cagney.uk.oracle.com/java/NervousText/>
<applet code="NervousText.class" width=84 height=72>
<param name=text value="10">
</applet>
Creating a boilerplate text object for HTML tags
Linking an HTML object to a file
Selecting HTML tags from the database
The white paper titled Oracle Reports Inline HTML Formatting,
available on the Oracle
Technology Network Oracle Reports 10g page
(http://www.oracle.com/technology/products/reports/index.html
).
Click Getting Started. In the list of topic sections on the left, click
Index. On the Index page, in the Collateral Type list, choose
White Papers & How To Documents, and click Search.
In the list that displays, click Oracle Reports Inline HTML Formatting.
Copyright © 1984, 2005, Oracle. All rights reserved.