問題描述
我知道通過右鍵單擊 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.
這篇關于Crystal Reports 2008 支持哪些 HTML 標記的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!