富文本报告

发布于 2024-07-29 08:55:24 字数 434 浏览 3 评论 0原文

我构建了一个 ASP.net Web 应用程序,它允许用户查看日历事件列表并做笔记。 这些注释在所见即所得编辑器中编辑,该编辑器输出为 HTML 文本(但也可以输出为 RTF),然后将其另存为 MSSQL05 数据库中的文本。

现在我必须向日历应用程序添加打印功能。 在此版本之前,打印是通过SSRS05完成的,但现在我添加了富文本注释,这种方法将不再起作用。

我可以在网络浏览器中以打印机友好的格式呈现整个日历,但我的用户有两个问题:首先,我无法关闭打印期间添加的页眉和页脚,而且用户有点太基本了解如何自行关闭它; 其次,当注释太长时,文本就会不太优雅地换行到下一页。 不幸的是,他们使用 IE7,因此无法识别 page-break-inside 属性,并且升级到 IE8 或使用其他浏览器是不可能的(我已经问过:P)

因此有了这些信息,最好的方法是什么生成具有富文本功能的报告?

I've built an ASP.net web application which allows the users to view and make notes on a list of calendar events. The notes are edited in a WYSIWYG editor that outputs to HTML text (but could also output to RTF), which is then saved as text in an MSSQL05 database.

Now I've got to add a printing function to the calendar application. Prior to this version, the printing was done through SSRS05, but now that I've added rich text notes, this method will no longer work.

I can render the whole calendar in a printer-friendly format in the web browser, but my users have two issues with that: first, I can't turn off the header and footer added during the print, and the users are a little too basic to understand how to turn it off themselves; and second, when a note gets too long, the text gets wrapped not-too-gracefully to the next page. Unfortunately, they use IE7, so the page-break-inside attribute isn't recognized, and upgrading to IE8 or using a different browser is out of the question (I already asked :P)

So with that information, what's the best way to generate a report which features rich text?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

み青杉依旧 2024-08-05 08:55:24

我建议 DataDynamics ActiveReports。 非常强大,领先光年水晶。 试一试!

I suggest DataDynamics ActiveReports. Very powerful, lightyears ahead Crystal. Give it a try!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文