Click here to Skip to main content
16,016,894 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want multiple pdf with single click.my code attached here this is use to at a time only one pdf file..SqlCommand cmd = new SqlCommand("select * from mastfile where mob='"+txtmob.text+"'", con);

SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = cmd;
DataTable datatable = new DataTable();
da.Fill(datatable);

ReportDocument crystalReport = new ReportDocument();
crystalReport.Load(Server.MapPath("~/CrystalPersonInfo.rpt"));
crystalReport.SetDataSource(datatable);
CrystalReportViewer1.ReportSource = crystalReport;

crystalReport.ExportToHttpResponse
(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Response, true, "'"+txtmob.text+"'");
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900