Ejemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            crptChartOfAccount rpt = new crptChartOfAccount();

            rpt.Site = this.Site;
            return(rpt);
        }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     crptChartOfAccount rpt = new crptChartOfAccount();
     rpt.Site = this.Site;
     return rpt;
 }
Ejemplo n.º 3
0
 /// <summary>
  ///  Function to print  ChartOfAccounts in curresponding Crystal report
 /// </summary>
 /// <param name="dtblChartOfAccounts"></param>
  internal void PrintChartOfAccounts(DataTable dtblChartOfAccounts)
  {
      try
      {
          crptChartOfAccount crptChartofAccounts = new crptChartOfAccount();
          crptChartofAccounts.Database.Tables["dtblChartOfAccounts"].SetDataSource(dtblChartOfAccounts);
          this.crptViewer.ReportSource = crptChartofAccounts;
          SettingsSP spSettings = new SettingsSP();
          if (spSettings.SettingsStatusCheck("DirectPrint") == "No")
          {
              base.Show();
              this.BringToFront();
          }
          else
          {
              crptChartofAccounts.PrintToPrinter(1, false, 0, 0);
          }
      }
      catch (Exception ex)
      {
          MessageBox.Show("CRV21:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
      }
  }