Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: ReportPath Post Reply Post New Topic
Author Message
MrTy
Newbie
Newbie


Joined: 28 Oct 2010
Online Status: Offline
Posts: 1
Quote MrTy Replybullet Topic: ReportPath
    Posted: 28 Oct 2010 at 7:02am
I am building reports for a Winforms project which will be distributed to different users. I am new to Crystal Reports and just relying on examples given in the internet.  I was able to succesfully create one report, creating a .rpt file and using the reportviewer to render it. In the application code, I have explicitly set the path of the report file (*.rpt). When I deploy the project to the users, the *.rpt file will not be where the code is expecting it to be and will definitely hit an error. How do I get around this kind of situation.
Thanks and any help or leads is appreciated.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 04 Nov 2010 at 11:24am
we included them as embedded resources and they have their own dll, so that the location is known.
 
HTH
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.