private void PrintPreview(bool IsPrint) { if (txtChallanNo.Text == "") { MessageBox.Show("You have not created any Invoice. Please create an Invoice.", "Information"); } else { string sql = ""; Hashtable ht = new Hashtable(); ht.Add("paramCompany", bllUtility.LoggedInSystemInformation.CompanyName); ht.Add("paramComAddress", bllUtility.LoggedInSystemInformation.CompanyAddress); ht.Add("paramComContact", bllUtility.LoggedInSystemInformation.CompanyContactNo); ht.Add("paramRptTitle", "Challan"); sql = "print_challan '" + txtChallanNo.Text.Trim() + "'"; rptSalesInvoice_Large obj_rpt = new rptSalesInvoice_Large(); iReportUtility.PrintPreview(obj_rpt, sql, ht, IsPrint); } }
private void PrintPreview(bool IsPrint) { if (lblInvoiceNo.Text == "") { MessageBox.Show("You have not created any Invoice. Please create an Invoice.", "Information"); } else { string sql = ""; Hashtable ht = new Hashtable(); ht.Add("paramCompany", bllUtility.LoggedInSystemInformation.CompanyName); ht.Add("paramComAddress", bllUtility.LoggedInSystemInformation.CompanyAddress); ht.Add("paramComContact", bllUtility.LoggedInSystemInformation.CompanyContactNo); ht.Add("paramRptTitle", "Sales Invoice"); //string invoiceID = "PUR00000000038"; sql = "print_sales_invoice '" + lblInvoiceNo.Text.Trim() + "'"; rptSalesInvoice_Large irptrptSalesInvoice_Large = new rptSalesInvoice_Large(); iReportUtility.PrintPreview(irptrptSalesInvoice_Large, sql, ht, IsPrint); } }