How to set crystal report path in exe
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pravin GhadgeRank #1,340 · 1.3K reputationPosted Jan 8, 2012, 9:01 PM EST
Application.StartupPath+"urreportname.rpt"
AartiRank #2,383 · 594 reputationPosted Jan 8, 2012, 9:05 PM EST
If it's a web application
report.Load(Server.MapPath("Report1.rpt"));
else if it's a windows application
report.Load(Application.StartupPath + "Report1.rpt");