public void PrintForecastRemainingNew(int ENGPLSPM) { rprtForecastRemaining r = new rprtForecastRemaining(); FPreviewAR pv = new FPreviewAR(); //if (usePipe == true) // r.SetAsPipeline(); if (ENGPLSPM == 1) //********************Added 9/30/2015 { pv.Title = r.SetAsEngineering(); } if (ENGPLSPM == 3) { pv.Title = r.SetAsPM(); } DataSet ds = CBProjectSummary.GetForecastRemainingNew(ENGPLSPM); r.DataSource = ds; r.DataMember = "Table"; pv.ViewReportWithExcel(r); pv.ShowDialog(); }
public void PrintForecastRemainingBHam() { rprtForecastRemaining r = new rprtForecastRemaining(); FPreviewAR pv = new FPreviewAR(); pv.Title = r.SetAsBHam(); DataSet ds = CBProjectSummary.GetForecastRemainingBHam(); r.DataSource = ds; r.DataMember = "Table"; pv.ViewReportWithExcel(r); pv.ShowDialog(); }
public void PrintForecastRemaining(bool usePipe) { rprtForecastRemaining r = new rprtForecastRemaining(); FPreviewAR pv = new FPreviewAR(); if (usePipe == true) { r.SetAsPipeline(); } DataSet ds = CBProjectSummary.GetForecastRemaining(usePipe); r.DataSource = ds; r.DataMember = "Table"; pv.Title = "Pipeline Forecast Remaining Report"; //********************Added 9/30/2015 pv.ViewReportWithExcel(r); pv.ShowDialog(); }