コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            crptDeliveryNoteReport rpt = new crptDeliveryNoteReport();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
ファイル: frmReport.cs プロジェクト: jsoques/openmiracle
        /// <summary>
        ///  Function to print  DeliveryNoteReport in curresponding Crystal report
        /// </summary>
        /// <param name="dsDeliveryNoteReport"></param>
        public void DeliveryNoteReportPrinting(DataSet dsDeliveryNoteReport)
        {
            try
            {

                crptDeliveryNoteReport crptDeliveryNoteReportObj = new crptDeliveryNoteReport();
                foreach (DataTable dtbl in dsDeliveryNoteReport.Tables)
                {
                    if (dtbl.TableName == "Table")
                    {
                        crptDeliveryNoteReportObj.Database.Tables["dtblCompany"].SetDataSource(dtbl);
                    }
                    else if (dtbl.TableName == "Table1")
                    {

                        crptDeliveryNoteReportObj.Database.Tables["dtblDeliveryNoteReport"].SetDataSource(dtbl);


                    }

                }

                this.crptViewer.ReportSource = crptDeliveryNoteReportObj;

                SettingsSP spSettings = new SettingsSP();
                if (spSettings.SettingsStatusCheck("DirectPrint") == "No")
                {
                    base.Show();
                    this.BringToFront();
                }
                else
                {
                    crptDeliveryNoteReportObj.PrintToPrinter(1, false, 0, 0);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("CRV" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
コード例 #3
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     crptDeliveryNoteReport rpt = new crptDeliveryNoteReport();
     rpt.Site = this.Site;
     return rpt;
 }