예제 #1
0
        public void PrintSummary(SummaryInfo si, RowsInfo ri)
        {
            rprtCostSummary rprt = new rprtCostSummary();
            FPreviewAR      pv   = new FPreviewAR();

            pv.projNumber = si.project;

            rprt.SummaryInformation = si;
            rprt.RowsInfo           = ri;
            rprt.Run();
            rprt.Document.Print(true, false);
        }
예제 #2
0
        public void PreviewSummary(SummaryInfo si, RowsInfo ri)
        {
            rprtCostSummary rprt = new rprtCostSummary();
            FPreviewAR      pv   = new FPreviewAR();

            rprt.SummaryInformation = si;
            rprt.RowsInfo           = ri;
            rprt.Run();

            pv.projNumber = si.project; //*******************************Added 9/30/2015
            pv.ViewReport(rprt);
            pv.ShowDialog();
        }