简体   繁体   中英

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. However, in the email it was still on one line!

Edit Check out this article on MS Connect. It looks like it was fixed in 2008 R2 which isn't much use to you. However there is a suggested workaround which is to use HTML markup such as <br /> tags. This to me seems ugly, but if you can be sure your recipients use HTML email then it might solve the problem?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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