• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1002
  • Last Modified:

Packaging VB.net 2008 application with Crystal reports

Dear experts,
I’m trying to create a package (using published folder) for my users. It’s my first time using Crystal report inside my app.
The  exe works fine on my machine. When I copy my publish folder the app works until I call a Crystal report where it says report "Failed to load".
Can someone explain the proper steps to packaging a VB.net 2008 app with Crystal for deployment on user  desktop?
Also does it matter if the files are local on Network drive?

Thanks
Cin
0
cin_champ
Asked:
cin_champ
  • 7
  • 4
  • 4
2 Solutions
 
mlmccCommented:
This tutorial addresses the  issue starting on page 434

http://www.businessobjects.com/global/pdf/dev_zone/VS2005_Walkthroughs.pdf

mlmcc
0
 
hesCommented:
Are you using the Crystal Reports that comes with VS 2008 ?
If so there is no merge modlue. You will have to include the file CRRedist2008_x86.msi  (or x64 for 64 bit OS's) as an additions file in the setup package. And have the users run that before they run your application.
The file is located in the
"C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5"

"CRRedist2008_x86.msi" (for 32bit)
"CRRedist2008_x64.msi" (for 64bit)

0
 
cin_champAuthor Commented:

It's my first app deployment...Sorry tried both solutions... not working for me...

I'm using the CrystalReportViewer and Crystal 8.5 is already installed on the user machine.

My app is on my C drive, I want to be able to set it up on any desktop. My setup package seems to be looking for the files on my computer location on :c/cin/ Mynewapp folder instead of in the package on the user machine.

Can you explain( in the property tab Publish*) what is  the difference
 bet. the Publishing folder and the installation folder? I would like to setup the user app in the C:\program files folder.

Thanks
Cin

0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
mlmccCommented:
I am rather surprised that CR8.5 works with VS2008.  I know I assumed you were using the Crystal that comes with VS2008 or even CR2008.

mlmcc
0
 
cin_champAuthor Commented:
I am using the crystal that comes in the app I am deploying with VS2008 but we also use crystal 8.5 on most older VB apps.
Cin
0
 
mlmccCommented:
The 2 are quite different and there may be an issue if you are using CR8.5 files with your application.

Also CR8.5 may not ba able to be installed along sie other versions.  Crystal made some major changes in CR9 to allow more than one version to be able to be installed on a machine.

mlmcc
0
 
cin_champAuthor Commented:
Crystal 8.5 and Report View work fine on my machine...

I think my problem is, in how I'm setting my package, I can't get that to work. The only time I got anything to work is by copying the publish folder in my project's bin folder. All is well until I try to open a Crystal Report and then I get "Load Report Failed".

Thanks
Cin


0
 
mlmccCommented:
What is Report View?

What CrystalReportViewer  are you using?

mlmcc
0
 
cin_champAuthor Commented:
CrystalDecisiion.windows.form.crystalReportViewer?

Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Imports CrystalDecisions.Windows.Forms
Imports CrystalDecisions.ReportSource

Is this what you mean?
If not, could you please clarify?
Thanks
Cin

0
 
hesCommented:
CR 10.5 is what comes with VS2008 and is not the Crystal Reports full blown version. You need to install the MSI I mentioned earlier on the client pc's
0
 
cin_champAuthor Commented:
When I tried to run the MSI on this machine is says there is already an existing version.

I'm now using a test machine with no prior VB.net on it.

On this  test machine I was able to run the install Crystal 10.5.

But myapp is not working. I fist tried to put the release folder on that machine but everything now seems to point back to my  machine, defaulting into my own folder paths settings.

How do I  bring the application and reports over to this machine? Do I use the release folder or a app.published?
Neither seems to work for me now...

Cin
0
 
hesCommented:
Create a setup project and create a msi
0
 
cin_champAuthor Commented:
mlmcc & ges

The only way  I got my app to work was to build and take the Release folder (from the bin folder) and adjust my Crystal report path to match the new location inside my project. That's where my "Failed to load" error was coming from...
(The hard coded report path in my code was wrong once it got on the other desktop)

Guys can you tell me if this setup is OK? and what is the best practice for distributing .net apps in a small environment; can I put this on a server and have the user use the exe shortcut  or should it be on the user's desktop?

Thanks for your assistance
Cin
0
 
hesCommented:
The best practice where I work is to NEVER just COPY a folder to a PC. You create a Setup project in Visual Studio . For path's you create them under the Visual Studio project folder and add the folder as a dependency to the install and it will create it correctly no mater where the user installs your appliication.

Example:
In Visual Studio I have a Project1
VS creates the folder structure as
Project1
   Project1
       bin
       My Project
       obj

If I need to add some folders I create them in the Visual Studio Project and include them in the Setup project as dependent folders.
So Now I have

Project1
   Project1
       bin
           release
               MyFolder1
               MyFolder2
       My Project
       obj

In the code I look at
System.AppDomain.CurrentDomain.BaseDirectory() for the directory no matter where it is installed on the users PC.


0
 
cin_champAuthor Commented:
Thank you both for you time and assistance!
Cin
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 7
  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now