English 中文(简体)
Crystal Report显示HTML文本,但项目符号不显示。为什么?
原标题:Crystal Report showing HTML text, but the bullets don t show. Why?

我正在从SQL Server nvarchar(3000)字段中获取数据,该字段的格式为html,并将其显示在Crystal Reports 11中。数据被保存为项目符号,如果我取出数据并将其放入一个扩展名为html的文本文件中,它就会显示项目符号。但克里斯托却没有。我得到了新的线路,但没有子弹。

保存的字段如下所示:

<HTML><BODY><DIV STYLE="text-align:Left;font-family:Tahoma;font-style:normal;font-weight:normal;font-size:11;color:#000000;"><DIV><DIV><P><SPAN>This is a bulleted list</SPAN></P><UL><LI><P><SPAN>One</SPAN></P></LI><LI><P><SPAN>Two</SPAN></P></LI><LI><P><SPAN>Three</SPAN></P></LI></UL><P><SPAN /></P></DIV></DIV></DIV></BODY></HTML>

在Crystal中,它看起来是这样的:

This is a bulleted list 
One 
Two 
Three

换句话说,没有子弹。为什么不呢?

最佳回答

无论出于何种原因,CrystalReports只支持HTML标记的一个子集。根据这个论坛帖子,子弹不是其中之一。

为了子孙后代的利益,这里是所谓的支持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
问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签