using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CrystalDecisions.CrystalReports.Engine; public partial class frmRptPurchaseOrder : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button2_Click1(object sender, EventArgs e) { GenRep(); } private void GenRep() { ReportDocument reportdocument = new ReportDocument(); try { reportdocument.Load(Server.MapPath("PurchaseOrder.rpt")); reportdocument.SetDatabaseLogon("", "", "", ""); reportdocument.SetParameterValue("@p_fin_year_id", "8"); reportdocument.SetParameterValue("@p_bracnh_id", "4"); reportdocument.SetParameterValue("@p_po_id", "3792"); CrystalReportViewer1.ReportSource = reportdocument; } catch { } finally { reportdocument = null; } } protected void CrystalReportViewer1_Navigate(object source, CrystalDecisions.Web.NavigateEventArgs e) { GenRep(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)