The report and all the merge modules of Crystal are incorporated in the deployment setup project. In my computer (XP, VSN 2003, etc) all run OK but in the computer where I need to install the application, always give me the error:
Load Report Failed.
To see the reports I use a Menus Options with the Application.StartupPath & "\XXX.rpt" code. Thanks for your help...
The application is finished and is urgent for me to install them but I can't solve the problem with reports. Is possible that Win 98 don't supports reports created with Crystal 10? I asked you this because I try to install Crystal 10 in this machine and Win 98 don´t support this version.
I don't think so ... win98 should work just fine with your reports ... as JuggaloBrotha told you, you need to include .rpt files within setup project on same location as they are on developer machine ... cheers
As I say above, Merge Modules, Reports and Database are included in the setup project and in the same Dir as the developed machine but...don´t work!!! Simply, don't work. More even: I copy manually the reports and the DataBase to the application directory (because I use Application.StartUpPath). Result: the error always are:
I need to make 11 reports for the application but in the moment I simply try with a sample and very simple report. Only, when I resolve my problem, I work in the final reports. At moment, I trying.The code for loading is
Private Sub btnReporte_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnReporte.Click
CrystalReportViewer1.ReportSource = Application.StartupPath & "\prueba.rpt"
Note: In the Setup project don't have any error because I install the appplication in three differents machines (all with XP) and all work OK!!! Two of these machines don´t have installed any version of Crystal Reports but read the report without problem and the application run very well after install.
It must be your DB causes the problem ... as it works flawless on my test machine ... no vs.net installed (FW only)
Are you willing to try 1 very simple installation?
If you so .. plz let me know i'll upload to briefcase asyou could get it ...
A little problem: I try your Crystal Program (In the Zip). When install and run in my machine, don't problem but in the machine with W98 allways required a userName and Password. This is strange in a .MDB that was created without password or username. I change your .RPT with the mine (Prueba.mdb), compile again and the problem persist equal. Please, do you know what happen?
Ohh.. I forgot: the problem in the W98 machine was: Copy Dbghelp.dll in Windows.System32 and register the CRQE.DLL
I've told you to not make any connections for CR file ... download again and try as it IS ... just make install/setup project and run on the target machine ... that's how we will know does issue come by CR or DB ... if you succeed to load empty .rpt file then you'll be sure that issue comes from DB .... Cheers
Your empty report run without problem. I created another empy report and run OK. But working with a real report (with data) give me the same problem (Password, UserName) in the W98 machine. I don't undertand this error because :
1- I, acording with your suggestion, don't use any connection.
2- The database is the same I use in all my application, and was created without Password or Username.
3- The setup is similar to the setup you use in your demo.
4- In my machine, all run fine. But in the W98 cause the error...
So.....please, what happen? You concept is very valid: THE PROBLEM IS CAUSED BY THE DATABASE BUT...WHY??? Why in the other machine and not in my machine???
The structure of Caritas.mdb reallly is a very simple Access Database although was composed with many tables and many fields.
ok you are using ... oleDB conection i guess ... could we change it for a hwile and try with ODBC?
Can you provide some short example (.rpt file and db) and attach it here as i could test it ... that's the best i can offer here ... Cheers
kulrom: A last question (I hope at least for this project )
One othe reports for Caritas include this fields of Clients Table: Id, Name, Address, Community (residence of the person) and Account Balance. The Report list all the Clients of all the Communities. How I can permit the user select a list only by a specific Community using, for example, a textbox to define the name of Community? Really, create a filter.
In VB 6.0 I manage many times this situation but in VSN I don't know how and don't find any good answer in all the documentation I have. Resuming: how and where I can create this query? CR manage this type of filter based on a variable value? (Not on a fixed value)
I don't know if the Formulas manage this situation.
It's very hard to guess, but anyway you need to set up parameter ... here is the idea.
set the parameter same like the name of filed you want to ....hmmm ... wait a minute i will make a demo for you ... just verify (find) DB later ... be right back