public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            InvPurDebCreCrystalReport rpt = new InvPurDebCreCrystalReport();

            rpt.Site = this.Site;
            return(rpt);
        }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     InvPurDebCreCrystalReport rpt = new InvPurDebCreCrystalReport();
     rpt.Site = this.Site;
     return rpt;
 }
 //Invoice Purchase Debtors and creditors View
 public bool InvPurDebCre(Telerik.Windows.Controls.RadGridView radGridView)
 {
     try
     {
         CristalReportDataSourch(radGridView, MainWindow.petuniaDataSet.InvPurDebCrePaymentView, Variables.OperationTrypes.InvPurDebCre);
         InvPurDebCreCrystalReport invPurdebtCristalReport = new InvPurDebCreCrystalReport();
         invPurdebtCristalReport.SetDataSource(MainWindow.petuniaDataSet);
         invPurdebtCristalReport.SetParameterValue("CompanyName",Variables.CompanyInfo[0]);
         invPurdebtCristalReport.SetParameterValue("CompanyTitle",Variables.CompanyInfo[1]);
         invPurdebtCristalReport.SetParameterValue("CompanyAddress",Variables.CompanyInfo[2]);
         ReportViewer InvPurDebCreReportViewer = new ReportViewer();
         InvPurDebCreReportViewer.ReportViewerView.ViewerCore.ReportSource = invPurdebtCristalReport;
         InvPurDebCreReportViewer.ShowDialog();
         InvPurDebCreReportViewer.ReportViewerView.ViewerCore.CloseView(invPurdebtCristalReport);
         invPurdebtCristalReport.Close();
         invPurdebtCristalReport.Dispose();
         MainWindow.petuniaDataSet.InvPurDebCrePaymentView.Clear();
         MainWindow.petuniaDataSet.InvPurDebCrePaymentView.Dispose();
         return true;
     }
     catch (Exception x)
     {
         MessageBox.Show(x.Message);
         return false;
     }
 }