Crsytal Report PDF查看如何显示到面板中 [英] Crsytal Report PDF view how to show into panel
问题描述
我想将水晶报告pdf视图显示到面板我的代码是这样的
MainClass main = new MainClass(); //主要是私人班级
main.Qurrystring =SELECT * FROM Vehicle_Propfit_Loss;
main.Report_Call(main.Qurrystring);
ReportDocument rpt = new ReportDocument();
rpt.Load(Server.MapPath(Vehicle_Propfit_Loss.rpt));
rpt.SetDataSource(main.dt); < br $>
rpt.SetParameterValue(fdt,txtfdt.Text);
rpt.SetParameterValue(tdt,txttdt.Text);
rpt.ExportToHttpResponse(ExportFormatType.PortableDocFormat,Response,false,ExportedReport);
它的工作原理但是,它应该是priview 在面板中
此后提及所有细节如果你想要快速的话,请清楚地提出问题。正确答案。
基于你的问题(?)&评论,这里的答案。
IFrame [ ^ ]是快速解决方案。将IFrame放入Panel&将PDF加载到IFrame中。就是这样。
或者如果你想轻松工作那么请查看这些文章
在客户端或服务器上未安装Acrobat Reader的ASPP.NET Viewer Viewer用户控件 [ ^ ]
如何使用ASP显示PDF文档。 NET [ ^ ]
i want to show crystal report pdf view into panel my code is like that
MainClass main = new MainClass(); //main is private class
main.Qurrystring = "SELECT * FROM Vehicle_Propfit_Loss";
main.Report_Call(main.Qurrystring);
ReportDocument rpt = new ReportDocument();
rpt.Load(Server.MapPath("Vehicle_Propfit_Loss.rpt"));
rpt.SetDataSource(main.dt);
rpt.SetParameterValue("fdt",txtfdt.Text);
rpt.SetParameterValue("tdt",txttdt.Text);
rpt.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, false, "ExportedReport");
it works but,it should be priview in panel
Hereafter mention all details clearly in your question if you want quick & right answer.
Based on your question(?) & comment(s), here answer.
IFrame[^] is quick solution. Put IFrame inside a Panel & load the PDF into IFrame. That's it.
Or if you want to make easy job then check these articles
ASP.NET PDF Viewer User Control Without Acrobat Reader Installed on Client or Server[^]
How to Display PDF documents with ASP.NET[^]
这篇关于Crsytal Report PDF查看如何显示到面板中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!