简体   繁体   English

SQL Server Reporting Services 2005; 订阅

[英]SQL Server Reporting Services 2005; subscriptions

I have an issue with the comments in subscriptions in report manager. 我在报表管理器中的订阅中有评论问题。

No matter what format I create the comment in, format is lost when the report is mailed out and the paragraphs in the comment are removed, leaving just sentences. 无论我以哪种格式创建注释,当邮寄报告并删除注释中的段落时,格式都会丢失,仅留下句子。 Since our reporting is new to users, I need to include some instructions and they require paragraphs. 由于我们的报告对用户来说是新的,因此我需要提供一些说明,并且这些说明需要段落。

使用HTML标签<br/>

this is line one. <br/> this is second line. <br/><br/> add two blank spaces.

Following some tests, I don't think this is possible. 经过一些测试,我认为这是不可能的。

I just tried creating a data-driven subscription using a stored procedure, and set the comment to use a value from my stored procedure results. 我只是尝试使用存储过程创建数据驱动的订阅,然后将注释设置为使用存储过程结果中的值。 I hard coded this value as: 我将此值硬编码为:

'abc' + CHAR(13) + CHAR(10) + 'def'

If you select this expression in SSMS with results to text , you'll see it displays over multiple lines. 如果您在SSMS中select此表达式并将结果显示为text ,则会看到它显示在多行上。 However, in the email it was still on one line! 但是,在电子邮件中它仍然在一行上!

Edit Check out this article on MS Connect. 编辑在MS Connect上查看本文 It looks like it was fixed in 2008 R2 which isn't much use to you. 看来它是在2008 R2中修复的,对您来说用处不大。 However there is a suggested workaround which is to use HTML markup such as <br /> tags. 但是,有一个建议的解决方法是使用HTML标记,例如<br />标记。 This to me seems ugly, but if you can be sure your recipients use HTML email then it might solve the problem? 在我看来,这很难看,但是如果您可以确定收件人使用HTML电子邮件,那么它可以解决问题吗?

电子邮件是使用HTML生成的,因此,如果您将标准HTML标签(例如<br>用于换行符等)使用,则格式将保留在电子邮件中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM