public DialogResult ShowDialog(RepDoc repDoc) { rpt = repDoc; this.Text += " - " + rpt.SummaryInfo.ReportTitle; this.crv.ReportSource = rpt; return(base.ShowDialog()); }
public RepPreview(string ReportSource, string SelectionFormula) { ReportSourceFileName = ReportSource; // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // rpt = new RepDoc(ReportSource, SelectionFormula); }