What are BIRT and Excel doing with <email@madeup.com>?

六眼飞鱼酱① 提交于 2019-12-10 12:22:15

问题


I am running BIRT 4.2.1 using a SQL 2008 R2 data base.

I have some values in a text field that are in this format

  Text words text words <email@madeup.com> more words more words

It looks fine when I preview in the SQL data in the Data set preview. But when it gets to the table on the report the 'text words' & 'more words' are there but

<email@madeup.com> 

is not displayed. This is true in the preview in BIRT, and up through display as a web page (via Apache).

When you export to Excel (xls) it gets more complicated as excel thinks that what the now hidden value of

<email@madeup.com> 

is a command to put the rest of the text field in a new row, with 'more words' correctly aligned in the cell bellow, all other cells are empty on the new row, and borders correctly defined around the now double cells for each value on the table.

Question also posted at BIRT Developer Center


回答1:


This is FAQ.

How did you output the value in BIRT:

Is it with a Data item or with a DymamicText item (or RotatedText item)?

For Data, BIRT interpretes the values as plain text.

For DynamicText and RotatedText, BIRT's default is to interprete the value as HTML. And your value is invalid HTML! So, just change the "Content Type" property from HTML to Plain.



来源:https://stackoverflow.com/questions/21628715/what-are-birt-and-excel-doing-with-emailmadeup-com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!