将 HTML 内容格式化为可打印报告
我一直在使用 AJAX html 编辑器为 .NET 项目创建内容。内容存储为原始 HTML 标记。现在我需要获取该内容并将其注入可打印的格式。我尝试过 Crystal Reports 和/或 ActiveReports 等报告编写器。两者都提到它可以使用 HTML,但只处理一个子集。 (例如:粗体标记有效,带有样式设置的 Span 则无效)
I have been using the AJAX html editor to create content for a .NET project. The content is stored as raw HTML mark-ups. Now I need to take that content and inject it into a printable format. I've tried report writers like Crystal Reports and/or ActiveReports. Both make references that it can consume HTML, but only a subset is processed. (ex: bold markups work, Spans with style setting don't)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我发现的最佳解决方案是通过网络浏览器控件打印它。
http://msdn.microsoft.com/en-us/library/b0wes9a3。祝
你好运。
The best solution I have found is to print it via the webbrowser control.
http://msdn.microsoft.com/en-us/library/b0wes9a3.aspx
Good luck.
如果可以使用许可软件,请使用 BCL easyPDF SDK。可以将 html 输出为可打印的 pdf。在内部,我相信它使用浏览器的渲染引擎。不过,根据我的经验,它并不总是完美的。
easyPdf SDK
If licensing software is a possibility, have had some luck with BCL easyPDF SDK. Can output html to a printable pdf. Internally I believe it uses the rendering engine of a browser. Although, in my experience it's not always perfect.
easyPdf SDK
Rob:
请将几个需要处理的实际 HTML 示例发送到 ActiveReports 支持论坛 或发送至我们的支持电子邮件地址([电子邮件受保护])该团队将考虑将您需要处理的其他 HTML 元素添加到 ActiveReports 中。在我们看到之前我不能做出任何承诺,但产品经理会考虑的。
Rob:
Please send a couple examples of the actual HTML that you need processed to the ActiveReports support forums or to our support email address ([email protected]) and the team will look into adding the additional HTML elements that you need processed to ActiveReports. I can't make any commitments until we see it, but the Product Manager will give it consideration.