如何在RDLC报表中输出RichTextBox中的内容?

weixin_38054840 2017-12-21 02:16:43
RichTextBox中图文混排,如何能在RDLC报表中直接输出?

韩立学
...全文
15 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
weixin_38111513 2017-12-22
  • 打赏
  • 举报
回复
显示HTML内容,参考下面的步骤,来自
https://social.technet.microsoft.com/Forums/sqlserver/en-US/dc88c256-b00b-41b9-9f33-3c2aa0c96a8b/displaying-rich-text-with-formatting-in-rdlc-file?forum=sqlreportingservices


To add HTML from a field in your dataset into a text box
1.    
If the Toolbox is not visible, click
Toolbox on the View menu.
2.    
Double-click or drag a Textbox report item to the design surface.

3.    
Drag a field from your dataset into the text box. A placeholder is created for your field.
4.    
Right-click the placeholder, and then click
Placeholder Properties.
5.    
On the
General tab, verify that the Value box contains an expression that evaluates to the field you dropped in step 3.
6.    
Click
HTML - Interpret HTML tags as styles. This causes the field to be evaluated as HTML.
7.    
Click OK.

微软建议将RTF转化为HTML显示。



专注于.NET ERP/CRM开发框架,C/S架构,SQL Server + ORM(LLBL Gen Pro) + Infragistics WinForms
weixin_38104476 2017-12-22
  • 打赏
  • 举报
回复
显示HTML内容,参考下面的步骤,来自
https://social.technet.microsoft.com/Forums/sqlserver/en-US/dc88c256-b00b-41b9-9f33-3c2aa0c96a8b/displaying-rich-text-with-formatting-in-rdlc-file?forum=sqlreportingservices


To add HTML from a field in your dataset into a text box
1.    
If the Toolbox is not visible, click
Toolbox on the View menu.
2.    
Double-click or drag a Textbox report item to the design surface.

3.    
Drag a field from your dataset into the text box. A placeholder is created for your field.
4.    
Right-click the placeholder, and then click
Placeholder Properties.
5.    
On the
General tab, verify that the Value box contains an expression that evaluates to the field you dropped in step 3.
6.    
Click
HTML - Interpret HTML tags as styles. This causes the field to be evaluated as HTML.
7.    
Click OK.

微软建议将RTF转化为HTML显示。



专注于.NET ERP/CRM开发框架,C/S架构,SQL Server + ORM(LLBL Gen Pro) + Infragistics WinForms
weixin_38120554 2017-12-22
  • 打赏
  • 举报
回复
谢谢回复!
存在2个问题:一是中文乱码,二是图片不显示,但其转换后的html数据,在IE中基本正常。如何解决呢?



韩立学


weixin_38107349 2017-12-21
  • 打赏
  • 举报
回复
谢谢回复!转换为HTML后,RDLC中该选用什么控件呢?韩立学

476

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧