I've got a web page that I use to generate Crystal Reports, it works perfectly but now I want to do it in WinForms. I need you guys to help me out on the exporting to PDF, the ExportToHttpRes ponse won't work on WinForms...
I tried the following but nothing happens when I click on my button.
I'd really appreciate your help, thanks!
Code:
private void btnCK2_Click(object sender, EventArgs e)
{
ReportDocument doc = new ReportDocument();
doc.Load("...\RPT\CK2.rpt");
doc.SetParameterValue("ent_no", txtEntNo.Text);
doc.SetParameterValue("trak_no", txtTrackNo.Text);
doc.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, true, "Certificate");
}
Code:
doc.ExportToDisk(ExportFormatType.PortableDocFormat, "Report");
Comment