Crystal Reports 2008中支持哪些HTML标记 [英] What HTML tags are supported in Crystal Reports 2008

查看:243
本文介绍了Crystal Reports 2008中支持哪些HTML标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道通过右键单击Crystal Reports中的一些文本字段,您可以告诉Crystal将该报表呈现为 HTML (请参见下面的屏幕截图)。我想知道这些字段中可用的标签是什么和CSS /样式的功能。谢谢!

I know by right clicking some text fields in Crystal Reports you can tell Crystal to render that report as HTML (See screenshots below). I'm wondering what the possible tags available in those fields is and what CSS/styling capabilities there are. Thanks!

右键单击字段并选择格式化字段

Right click a field and select "Format Field"

单击段落标签和文本解释组合框。

Click the Paragraph Tag and the Text Interpretation combo box.

推荐答案

我在论坛帖子中找到了这个。不确定它是否有效,但它似乎是合法的。

I found this in a forum post. Not sure about it's validity, but it seems legit.

看起来Crystal Reports只支持一小部分的HTML标签和属性。

It appears that Crystal Reports only supports a small subset of HTML tags and attributes.

支持的标签是:

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 attributes are:

align
face
size
color
style
font-family
font-size
font-style
font-weight 

不确定CSS,I很肯定你不能做任何造型超出你在这里看到的。

Not sure about CSS, I'm pretty sure you can't do any styling beyond what you see here.

这篇关于Crystal Reports 2008中支持哪些HTML标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆