开发者

formatting HTML content into a printable report

开发者 https://www.devze.com 2022-12-14 00:05 出处:网络
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 cont开发者_如何学Pythonent and inject it into a printabl

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 cont开发者_如何学Pythonent 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)


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.


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:

Please send a couple examples of the actual HTML that you need processed to the ActiveReports support forums or to our support email address (support@grapecity.us.com) 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.

Scott Willeke
US Tools Division Group Program Manager
GrapeCity
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号