Crystal reports

Posted on 2006-06-04
Last Modified: 2010-04-17
I have developed my application in 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 100

    Expert Comment

    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

    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).
    LVL 2

    Accepted Solution


    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
    Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now