Convert Crystal Report to RDLC Report in Windows Application

Last Reply 7 months ago By dharmendr

Posted 7 months ago

How to Convert my existing CrystalReport Code & Design to RDLC

Existing CrystalReport Code

DataSet ds = stud.StoreProcedureNamr();
if (ds.Tables[0].Rows.Count > 0)
{
    ReportName rpt = new ReportNamr();
    CrystalReportViewer crv = new CrystalReportViewer();
    rpt.SetDataSource(ds.Tables[0]);
    rpt.SetDatabaseLogon("sa", "123");
    crv.ReportSource = null;
    crv.ReportSource = rpt;
    crv.Dock = DockStyle.Fill;
    crv.ToolPanelView = ToolPanelViewType.None;
    Form f1 = new Form();
    f1.Controls.Add(crv);
    f1.WindowState = FormWindowState.Maximized;
    f1.ShowDialog();
}

 

This question does not have replies that have been liked.