public CurvePrintPreview(rptCurvePrintingWithDataset rpt)
 {
     InitializeComponent();
     this.ReportViewer1.ReportSource = rpt;
 }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     rptCurvePrintingWithDataset rpt = new rptCurvePrintingWithDataset();
     rpt.Site = this.Site;
     return rpt;
 }