protected void btnPrintReport_Click(object sender, EventArgs e) { if (this.WeekEndDate != null && this.WeekEndDate != new DateTime(1001, 1, 1)) { string pdfpath = GenerateOdsPdf.GeneratePackingReportPDF(this.WeekEndDate); if (File.Exists(pdfpath)) { this.DownloadPDFFile(pdfpath); } } }
protected void btnPrintReport_Click(object sender, EventArgs e) { if (this.WeekEndDate != null && this.WeekEndDate != new DateTime(1001, 1, 1)) { string pdfpath = GenerateOdsPdf.GeneratePackingReportPDF(this.WeekEndDate, int.Parse(this.ddlShipmentMode.SelectedValue), int.Parse(this.ddlShippingAddress.SelectedValue)); if (File.Exists(pdfpath)) { this.DownloadPDFFile(pdfpath); } } }