数据显示在PDF文件中 [英] data show in PDF file

查看:102
本文介绍了数据显示在PDF文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从SQL获取数据并通过Query在Crystal Report查看器中显示它,之后我想将该数据保存在Crystal Report中显示的PDF文件中.
请帮助我..............

I have fetch the data from SQL and show it in a crystal report viewer through Query.After that I want to save that data in a PDF file which is shown in Crystal Report.
Please help me..............

推荐答案

您可以使用Crystal Reports导出功能将报告另存为PDF.像这样的东西:

You can use Crystal Reports Export functions to save the report as PDF. Something like this:

report.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, False, "YourReport")



或者如果您使用的是Windows App



or if you are using a Windows App

ReportDocument report = new ReportDocument( );
                report.Load( reportURL );
                report.ExportToDisk( ExportTypeFormat.PortableDocFormat , "yourFilePath" );



希望对您有帮助



Hope this helps


这篇关于数据显示在PDF文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆