crystal reports in C# in windows application

Posted by Mohan9382 under C# on 3/23/2011 | Points: 10 | Views : 8332 | Status : [Member] | Replies : 1
Hello frndz...

I tried load report using Application.StartupPath("\\report\\center.rpt"); it throws error ...but instead of using direct system path ex. rpt.Load(@"c:\project\report\center.rpt"); it is working perfectly..
i need solution using Application path load report using queries..

Thanks & Regards




Responses

Posted by: Bugwee on: 3/28/2011 [Member] Starter | Points: 25

Up
0
Down
in VB.net
rpt.Load(Application.StartupPath + "\report\center.rpt")


i dont try this on C# but maybe this one would do
rpt.Load(Application.StartupPath + "\\report\\center.rpt");


Mohan9382, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response