using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace OSS { public partial class PrintReceipt : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { PreviewReceipt.Report = CreateReport(); } ReceiptGepg CreateReport() { try { ReceiptGepg report = new ReceiptGepg(); report.Parameters["InvoiceID"].Value = Convert.ToInt64(Request.QueryString["InvoiceID"]); report.CreateDocument(); return report; } catch { long InvoiceID = 0; ReceiptGepg report = new ReceiptGepg(); report.CreateDocument(); return report; } } } }