Crystal reports

Posted on 2006-06-04
Medium Priority
Last Modified: 2010-04-17
I have developed my application in vs2003.net.Every thing is fine, when i developed the crystalreports i gave reportsource path is c:\reports\myreport.rpt.when i run the application in my computer it's fine.I installed this application in anohter machine it says report load failed.How do i deployee crystalreports along with the package and exact reportsource path on the target machine?
Question by:hariprasadere
LVL 101

Expert Comment

ID: 16829253
If you are deploying to a specific computer you could put them in that directory or deploy them to the application directory or a REPORTS subdirectory.

Just include them in the installation file or on the installation CD with instructions on where to put them.

If you are deploying to a server based system, put them in a known locatiion and address them appropriately as \\ServerName\...


Expert Comment

ID: 16831433
You need to make sure the report files are properly read by your application on the target computer.

1)  Ensure the .rpt file is on the client machine
  a) By using the install package and include the .rpt files. -OR-
  b) By using XCopy/copy to ensure the .rpt file ends up where it needs to.
2)  The .rpt file needs to be in a place on the destination computer - where your application expects it:
  a) By creating a directory structure on the destination computer that is the same as the one on your computer (c:\reports). -OR-
  b) By using ConfigurationSettings.AppSettings("ReportPath") in VB.NET or ConfigurationSetting.AppSettings["ReportPath"] in C# to fetch the dynamic path to your report file from your web.config (ensure you add a key value to your web config that says ReportPath  (in this example)).
3.  The report file needs to have permissions properly set.
  a) For a WINDOWS app - just make sure that the person executing the .exe as READ permissions to the .rpt file (in fact, the whole directory so your other reports are also read).
  b) For a WEB app - grant READ permissions to the directory holding the rpt files to the <computername>\ASPNET windows account (this is the account used by .NET's web processor to actually do the reading of the file).

Accepted Solution

cwile earned 2000 total points
ID: 16832825

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
No other job is as rewarding and demanding as building an iPhone app is. It is not really in the hands of the developer for the success of an iPhone app. Many factors operate jointly for every iOS application's success in the market.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Six Sigma Control Plans

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question