/// <summary>
        /// Function to print the Report
        /// </summary>
        public void Print()
        {
            try
            {
                string  strFromDate      = txtFromDate.Text;
                string  strToDate        = txtToDate.Text;
                decimal decVoucherTypeId = Convert.ToDecimal(cmbVoucherType.SelectedValue.ToString());
                decimal decLedgerId      = Convert.ToDecimal(cmbAccountLedger.SelectedValue.ToString());

                CreditNoteMasterSP SpCreditNoteMaster = new CreditNoteMasterSP();
                DataSet            dsCreditNoteReport = SpCreditNoteMaster.CreditNoteReportPrinting(strFromDate, strToDate, decVoucherTypeId, decLedgerId, 1);
                frmReport          frmReport          = new frmReport();
                frmReport.MdiParent = formMDI.MDIObj;
                frmReport.CreditNoteReportPrinting(dsCreditNoteReport);
            }
            catch (Exception ex)
            {
                MessageBox.Show("CRNTREP6:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Example #2
0
        /// <summary>
        /// Function to print the Report
        /// </summary>
        public void Print()
        {
            try
            {
                string  strFromDate      = txtFromDate.Text;
                string  strToDate        = txtToDate.Text;
                decimal decVoucherTypeId = Convert.ToDecimal(cmbVoucherType.SelectedValue.ToString());
                decimal decLedgerId      = Convert.ToDecimal(cmbAccountLedger.SelectedValue.ToString());

                CreditNoteMasterSP SpCreditNoteMaster = new CreditNoteMasterSP();
                DataSet            dsCreditNoteReport = SpCreditNoteMaster.CreditNoteReportPrinting(strFromDate, strToDate, decVoucherTypeId, decLedgerId, 1);
                frmReport          frmReport          = new frmReport();
                frmReport.MdiParent = formMDI.MDIObj;
                frmReport.CreditNoteReportPrinting(dsCreditNoteReport);
            }
            catch (Exception ex)
            {
                formMDI.infoError.ErrorString = "CRNTREP6:" + ex.Message;
            }
        }
        /// <summary>
        /// Function to print the Report
        /// </summary>
        public void Print()
        {
            try
            {
                string strFromDate = txtFromDate.Text;
                string strToDate = txtToDate.Text;
                decimal decVoucherTypeId = Convert.ToDecimal(cmbVoucherType.SelectedValue.ToString());
                decimal decLedgerId = Convert.ToDecimal(cmbAccountLedger.SelectedValue.ToString());

                CreditNoteMasterSP SpCreditNoteMaster = new CreditNoteMasterSP();
                DataSet dsCreditNoteReport = SpCreditNoteMaster.CreditNoteReportPrinting(strFromDate, strToDate, decVoucherTypeId, decLedgerId, 1);
                frmReport frmReport = new frmReport();
                frmReport.MdiParent = formMDI.MDIObj;
                frmReport.CreditNoteReportPrinting(dsCreditNoteReport);

            }
            catch (Exception ex)
            {
                MessageBox.Show("CRNTREP6:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }