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
正文
div
(导致断句)tr
(仅导致断句;不保留表格的列结构)跨度
字体
p
(导致断句)br
(导致段落中断)h1
(导致段落中断,使字体加粗和两倍默认大小)h2
(导致段落中断,使字体加粗和默认大小的 1.5 倍)h3
(导致段落中断,使字体加粗和默认大小为 9/8)h4
(导致段落中断,使字体变粗)h5
(导致段落中断,使字体加粗和默认大小为 5/6)h6
(导致段落中断,使字体变为粗体和 5/8 默认大小)中心
big
(将字体大小增加 2 磅)small
(如果是 8 磅或更大,则将字体大小减小 2 磅)b
我
s
罢工
u
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
支持的属性有:
对齐
人脸
尺寸
颜色
风格
字体系列
字体大小
字体样式
字体粗细
不确定 CSS.我敢肯定,除了您在此处看到的内容之外,您无法进行任何样式设置.
Not sure about CSS. I'm pretty sure you can't do any styling beyond what you see here.
相关文章