c# - Get report path from project folder in win-forms -


i crystal report winforms app drive:

 rpd.load("c:\\emprep\\crystalreport1.rpt"); 

i want load project folder, error. how can fix this?

 rpd.load("reports\\crystalreport1.rpt"); 

try code:

rpd.load(application.startuppath + "\\reports\\crystalreport1.rpt"); 

Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -