void btnCreateDeliveryNote_Click(object sender, EventArgs e) { NameValueCollection reportParams = new NameValueCollection(); DataSet dsDelivery = null; Orchestrator.Facade.IOrder facOrder = new Orchestrator.Facade.Order(); if (OrderID > 0) { dsDelivery = facOrder.GetDeliveryNoteDataForOrderIDs(OrderID.ToString()); //------------------------------------------------------------------------------------- // Load Report Section //------------------------------------------------------------------------------------- Session[Orchestrator.Globals.Constants.ReportTypeSessionVariable] = eReportType.DeliveryNote; Session[Orchestrator.Globals.Constants.ReportParamsSessionVariable] = reportParams; Session[Orchestrator.Globals.Constants.ReportDataSessionTableVariable] = dsDelivery; Session[Orchestrator.Globals.Constants.ReportDataSessionSortVariable] = String.Empty; Session[Orchestrator.Globals.Constants.ReportDataMemberSessionVariable] = "Table"; // Show the user control Page.ClientScript.RegisterStartupScript(this.GetType(), "onload", "<script language=\"javascript\">window.open('" + Page.ResolveClientUrl("../reports/reportviewer.aspx?wiz=true") + "');</script>"); } }