public partial class dynamicreporttest : Form { public dynamicreporttest() { InitializeComponent(); string reportPath = Application.StartupPath + "\\" + "CrystalReport120514test.rpt"; crystalReportViewer1.ReportSource = reportPath; } private void dynamicreporttest_Load(object sender, EventArgs e) { this.crystalReportViewer1.RefreshReport(); } }
ReportDocument reportDocument = new ReportDocument(); string filePath =Path.Combine(Application.StartupPath, "CrystalReport120514test.rpt"); reportDocument.Load(filePath); crystalReportViewer.ReportSource = reportDocument;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)