SSRS 2005 制表符/换行符显示在表中
如何在 SSRS 2005 报告中获取一列来呈现控制字符(例如新行和制表符)?
例如:
SELECT
VW.System_name + CHAR(13) + CHAR(9) + ' > ' + VW.PTS_NAME + CHAR(13) + CHAR(9) + CHAR(9) + ' > ' + VW.FEED_NAME as Name
在 SSRS(以及 SSMS 结果到网格模式)中,表将呈现为:
TRIPLE > HYBRIDS > HYBRID_CASHFLOWS
但我想(如在 SSMS 结果到文本模式中呈现):
TRIPLE
> HYBRIDS
> HYBRID_CASHFLOWS
在 SSRS 2005 中如何做到这一点?
编辑:删除的答案建议我添加 CHAR(10) 和 CHAR(13) 让新行正常工作,但仍然没有选项卡。
How can i get a column in an SSRS 2005 report to render control chars like new lines and tabs?
For example:
SELECT
VW.System_name + CHAR(13) + CHAR(9) + ' > ' + VW.PTS_NAME + CHAR(13) + CHAR(9) + CHAR(9) + ' > ' + VW.FEED_NAME as Name
In SSRS (and SSMS Results to Grid Mode) table will render as:
TRIPLE > HYBRIDS > HYBRID_CASHFLOWS
But i would like (as rendered in SSMS Results to Text Mode):
TRIPLE
> HYBRIDS
> HYBRID_CASHFLOWS
How can this be done in SSRS 2005?
Edit: the deleted answer suggesting i added CHAR(10) as well as CHAR(13) got the new lines working, but still no tabs.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请参阅以下链接:
http://dba.fyicenter.com/faq/sql_server/ Inserting_New_Line_Characters_into_Strings.html
您也可以使用这些:
please see the below link :
http://dba.fyicenter.com/faq/sql_server/Inserting_New_Line_Characters_into_Strings.html
you can use these too:
我建议新行是 char(10)
I'd offer that new line is char(10)