0

我正在使用水晶报表在我的 Windows 应用程序中报告数据。其中有一个字段,整个 HTML 文本将显示在报告中。

现在我想以以下格式显示一些文本:

1) abc text
    a) abc text details
        i) this is sample text.this is sample text.this is sample text.this is sample 
           text.this is sample text.this is sample text.
        ii)this is sample text.this is sample text.this is sample text.this is sample 
           text.this is sample text.this is sample text. 
2) efg text
   a) abc text details
        i) this is sample text.this is sample text.this is sample text.this is sample 
           text.this is sample text.this is sample text.
        ii)this is sample text.this is sample text.this is sample text.this is sample 
           text.this is sample text.this is sample text. 

那么谁能告诉我这种类型的文本如何缩进?

4

1 回答 1

-1

据我所知,CR支持以下html标签:

html
body
div (causes a paragraph break)
tr (causes only a paragraph break; does not preserve column structure of a table)
span
font
p (causes a paragraph break)
br (causes a paragraph break)
h1 (causes a paragraph break, makes the font bold & twice default size)
h2 (causes a paragraph break, makes the font bold & 1.5 times default size)
h3 (causes a paragraph break, makes the font bold & 9/8 default size)
h4 (causes a paragraph break, makes the font bold)
h5 (causes a paragraph break, makes the font bold & 5/6 default size)
h6 (causes a paragraph break, makes the font bold & 5/8 default size)
center
big (increases font size by 2 points)
small (decreases font size by 2 points if it's 8 points or larger)
b
i
s
strike
u
The supported HTML attributes are:
align
face
size
color
style
font-family
font-size
font-style
font-weight

在 Crystal Reports 2008 Service Pack 2 及更高版本中,以下附加 HTML 标记和属性已添加到支持的列表中: 支持的 HTML 标记为:

ul  ( bulleted list )
ol  ( ordered list )
li   ( tag defining a list item used for both list type: ul and ol. )
Note: The bullet will not show up as a regular size bullet, but a small dot.

支持的 HTML 属性是:

strong ( bold )

如果这不能满足您的需求,您始终可以将 html 字段转换为富文本字段,这将为您提供更多的灵活性。

希望有帮助,

克里斯

于 2013-10-11T15:57:59.910 回答