Hi there!
I want to generate Report file in windows form,but when i use Application.StartupPath then Exception is Generate 'Not file Associated with this Application '. How can fetch Report file Path from Specified folder..
Please solve my problem..
With Warm Regards
Bvenkat Jeewesh
S/W Developer
I want to generate Report file in windows form,but when i use Application.StartupPath then Exception is Generate 'Not file Associated with this Application '. How can fetch Report file Path from Specified folder..
Please solve my problem..
With Warm Regards
Bvenkat Jeewesh
S/W Developer


Sudhakar ChaudharyRank #1,379 · 1.2K reputationPosted Aug 3, 2012, 5:17 AM EDT
ConnectionInfo connetion= new ConnectionInfo();
rpt.Load("c:\\CrystalReport1.rpt");
rpt.Refresh();
crystalReportViewer1.ReportSource = rpt;
or
report.Load(Application.StartupPath + "Rep1ort1.rpt");