具有HTML内容格式的水晶报表

具有HTML内容格式的水晶报表

本文介绍了具有HTML内容格式的水晶报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您是否有人在处理HTML数据以填充水晶报告?



我使用Visual studio 2010.
我有一个来自DB的XML数据。其中我能够使用XSL转换为HTML。现在我的下一个任务是把它变成水晶报告。



任何提示都会很好。因为所有的在线资源只是简单地给我有关创建数据集和执行存储过程等的结果。



我能够将我的HTML内容拉到水晶报表。现在嵌入式样式无法应用。我需要调整任何线索吗?



提前感谢。



解决方案

最后,我发现了一个突破,它在内容的性能和质量上非常完美。
$ b

首先我想要的任何内容,我将准备一个html字符串和



要获得PDF使用WKHTMLTOPDF.exe
使用WKHTMLTOIMAGE.exe编写一个图像,并且创建一个字节[]并添加一个新的水晶报告。



然后byte []将喂给控制下降到水晶报告。



它工作完美。没有必要使用itextsharp,或任何其他第三方命令工具来打印图像,打印pdf,打印html。



感谢所有。



注意,
Pavan N


Is anybody of you worked on HTML data populating into crystal reports?

Am using Visual studio 2010.I had an XML data coming from DB. Which am able to convert into HTML using XSL. Now my next task is to get it into crystal report.

Any hint will be greatful. Because all the online resources are simply giving me results related to creating dataset and executing stored procedures etc.

I was able to pull my HTML content to crystal report. Now the embedded styling was not able to get applied. Any clues whr do i need to tweak?

Thanks in advance.

Regards,Pavan N

解决方案

Finally at last i found a breakthough and its very perfect in performance and quality of content.

First whatever the content i want to , i will prepare a html string and

To get a PDF use WKHTMLTOPDF.exeTo prepare a image out of HTML use WKHTMLTOIMAGE.exe and the same image i created into a byte[] and added a new crystal report.

Then the byte[] will be feeded to the control dropped into crystal report.

and it worked perfectly. there is no need of itextsharp, or anything else thirdparty command tools to print a image, to print a pdf, to print a html. Am doing everything now with crystal report feeded with an image.

Thanks to all.

Regards,Pavan N

这篇关于具有HTML内容格式的水晶报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 18:47