Beispiel #1
0
        public ReportDrawStruct GetReportStruct(string rptFilePath, DataTable dt, Dictionary <string, int> dicMergeColInfo)
        {
            using (Report report = new Report())
            {
                report.RptFilePath = rptFilePath;
                report.ReadRPT();

                report.Attributes.GrainDirection = 0;

                ReportData reportData = new ReportData(report);
                reportData.InitReportData(dt);
                report.Data = reportData;
                reportData.MergeBlack(report, dicMergeColInfo);
                report.DataValid = true;
                report.RaiseDataChanged();
                report.RaisePropertyChanged();

                return(report.WholeDrawStruct);
            }
        }
Beispiel #2
0
        public void ViewReport(string rptFilePath, DataTable dt, Dictionary <string, int> dicMergeColInfo)
        {
            Report report = new Report();

            report.RptFilePath = rptFilePath;
            report.ReadRPT();

            report.Attributes.GrainDirection = 0;

            ReportData reportData = new ReportData(report);

            reportData.InitReportData(dt);
            report.Data = reportData;
            reportData.MergeBlack(report, dicMergeColInfo);
            report.DataValid = true;
            report.RaiseDataChanged();
            report.RaisePropertyChanged();

            Repaint(report);

            currReport = report;
        }