在水晶报表中显示HTML内容 [英] Show HTML content in crystal reports

查看:236
本文介绍了在水晶报表中显示HTML内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





目前我正在将一些HTML内容存储到数据库列(sql server 2008),以及其他一些细节。我需要使用该数据生成报告。但是当在Crystal报表文本字段中显示HTML并将文本解释设置为HTML时,某些html标记不能很好地形成。喜欢image()和Table()。

有没有办法在cr报告中显示HTML?



我正在使用Visual Studio 2008.



问候,

Midhun TS



我尝试过:



我目前在文本字段中显示HTML,方法是将文本解释属性设置为HTM解释。

解决方案

根据Crystal Report XI帮助文档 - 我很确定它没有改变 - 支持的标签是;



html

身体

div(导致段落休息)

tr(仅导致段落休息;不保留表的列结构)

span

字体

p(导致段落中断)

br (导致段落中断)

h1(导致段落中断,使字体粗体和两倍默认大小)

h2(导致段落)打破,使字体加粗& 1.5倍默认大小)

h3(导致段落中断,使字体加粗& 9/8默认大小)

h4(导致段落中断,使字体变为粗体)

h5(导致段落中断,使字体变为粗体和5/6默认大小)

h6(导致段落中断,使字体变粗& 5/8默认大小)

中心

大(字体大小增加2点)

小(如果它是字体大小减少2分) 8点或更大)

b

i

s

罢工

u

支持的属性是:



align

face

size

color

style

font-family

font-size

font-style

font-weight



您会注意到列出的表格或img标签都没有列出



种类此致

Hi,

Currently i am storing some HTML Content to Database column (sql server 2008), Along with some other details. And i need to Generate a Report using that data. But when showing that HTML in Crystal report Text field which has Text Interpretation set to HTML , Some html tags are not forming well. Like image () and Table ().
Is there any possible way to show HTML in cr report ?

I am using the Visual Studio 2008.

Regards,
Midhun T S

What I have tried:

I am currently showing the HTML in a Text field , by setting the text interpretation property set to HTM interpretation.

解决方案

According to Crystal Report XI Help documentation - I am pretty sure it has not changed - the supported tags are;

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

You will note that neither table or img tags are listed

Kind Regards


这篇关于在水晶报表中显示HTML内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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