Results 1 to 7 of 7

Thread: Application with Crystal Reports

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2004
    Posts
    22

    Application with Crystal Reports

    I wrote a VB .Net application that uses Crystal reports. It works perfect on my machine, but when I install it on others I get a "Report Load Failure". I do have the report compiled with the program. I use the Bootstrapper that detects .net and I have attached all the Merge Modules for Crystal Reports. I have also put in my reg key for CR in the RegKey merge module. If anyone has any ideas please let me know. I can enclose code if you need but it is fairly long.


    Thanks,
    Craig Schellenbach

  2. #2
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Manila, Philippines
    Posts
    486

    Re: Application with Crystal Reports

    have you include the folder containing your report in your package? if not then loading it will give you an error

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 2004
    Posts
    22

    Re: Application with Crystal Reports

    Thanks for your help. It helped me track down the problem. I was calling it from the Studios folder where I created it. I moved it and fixed the links in the program. I have a new problem now. When it trys to open the report it attempts to logon to a server. This is a local report I created with VS and it reads a .txt file that is on the current computer that this program is run. Is there a way to stop it from trying to logon, or did I make a mistake somehow in creating the report.

    Thanks again,
    Craig Schellenbach

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Oct 2004
    Posts
    22

    Re: Application with Crystal Reports

    I was thinking about the problem I am having and I was wondering if I am approaching it the wrong way. This application needs to be stand alone on a machine. It does not need any network connection. The application reads a text file to get the information out that I need. I then use streamwriter and send it to a file in a CSV format. I then open a Crystal report file that reads the CSV. I created a OBDC connection for that directory that the file is created in and added that csv file as the table. Everything loads perfectly on the machine that I write the code. I can print it and use the application perfectly. When I bootstrap it and put it on another machine (It has the same files) it looks to connect to the database to open the Crystal report. It tries to login and gets and cannot connect. (It asks for the login information). I know it reads and creates the correct CSV file because I can see it running in the background and on the hard drive.

    Is there a better way to do this? I was thinking of maybe using arrays but I want it to be as easy on a machine as possible. I guess I could use a Dbase2 but again it would be on the same machine. Am I connecting to Crystal Reports in the wrong way? I did notice that the name of the report does not show up in the autofill if I go to declare a variable and attach it to it. Does anyone have any suggestions?

    Thanks,
    Craig Schellenbach

  5. #5
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Manila, Philippines
    Posts
    486

    Re: Application with Crystal Reports

    i think it is on the connection to the database, correct me if i am wrong. crystal report finds the database on the path that you sets it.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Oct 2004
    Posts
    22

    Re: Application with Crystal Reports

    I do think it is in the connection but how do you create a connection to a csv file that looks on the local machine? I thought I did that but it trys to login to a server.

    Thanks,
    Craig Schellenbach

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Oct 2004
    Posts
    22

    Re: Application with Crystal Reports

    Anyone have any ideas?

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width