public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { report_feedback rpt = new report_feedback(); rpt.Site = this.Site; return(rpt); }
void cetak() { SqlConnection conn = konn.GetConn(); { conn.Open(); da = new SqlDataAdapter("select suka, tidaksuka FROM tb_feedback", conn); ds = new DataSet(); da.Fill(ds, "tb_feedback"); report_feedback myreport = new report_feedback(); myreport.SetDataSource(ds); crystalReportViewer1.ReportSource = myreport; crystalReportViewer1.Refresh(); } }