我的报告在 IIS 中成功生成,现在我想获得 PDF 格式的报告。请指导我 - 我在下面列出了我的来源:
protected void Button1_Click(object sender, EventArgs e)
{
ReportDocument rpt = new ReportDocument();
rpt.Load(Server.MapPath("MR.rpt"));
rpt.SetDatabaseLogon("", "", "RAMYA-BD", "");
rpt.SetParameterValue("MRNO", ddlmrno.SelectedItem.Text);
CrystalReportViewer1.ReportSource = rpt;
Response.ContentType = "application/pdf";
}