你们中有人从事将 HTML 数据填充到水晶报表中的工作吗?
Is anybody of you worked on HTML data populating into crystal reports?
我正在使用 Visual Studio 2010.我有一个来自 DB 的 XML 数据.它能够使用 XSL 转换成 HTML.现在我的下一个任务是将它放入水晶报表中.
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.
我能够将我的 HTML 内容提取到水晶报表中.现在嵌入式样式无法应用.我需要调整的任何线索?
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?
提前致谢.
问候,帕万N
终于找到了一个突破口,在性能和内容质量上都非常完美.
Finally at last i found a breakthough and its very perfect in performance and quality of content.
首先无论我想要什么内容,我都会准备一个html字符串和
First whatever the content i want to , i will prepare a html string and
要获取 PDF,请使用 WKHTMLTOPDF.exe要使用 HTML 准备图像,请使用 WKHTMLTOIMAGE.exe 和我在 byte[] 中创建的相同图像并添加新的水晶报告.
To get a PDF use WKHTMLTOPDF.exe To prepare a image out of HTML use WKHTMLTOIMAGE.exe and the same image i created into a byte[] and added a new crystal report.
然后 byte[] 将被输入到水晶报表中的控件.
Then the byte[] will be feeded to the control dropped into crystal report.
而且效果很好.不需要 itextsharp 或任何其他第三方命令工具来打印图像、打印 pdf 和打印 html.我现在正在使用带有图像的水晶报表来做所有事情.
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.
谢谢大家.
问候,帕万N
这篇关于具有 HTML 内容格式的水晶报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!