Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal 10 VCL + Delphi 7

Status
Not open for further replies.

garylafferty

Programmer
May 1, 2002
8
GB
Hi all,

I have downloaded the Crystal 10 VCL , and successfully installed this into Delphi. I have added the TCRPE component to my application, and got it working fine on my own PC. However, the application will simply NOT work on any PC which does not have Crytal 10 installed.

I have been through the 'rdc10_deployment.pdf' file, and created a deployment package which has been installed onto the PC that does not have Crystal 10 on it ... no luck.

As a test, I create a blank Delphi project , added a TCRPE component, and compiled the application. (The application is completely blank apart from 'Form1' and 'TCRPE' ... TCRPE is not referenced in any way , it just "exists").

This application WILL NOT RUN on the PC which does not have Crystal 10 installed (even though the Deployment Package has been installed okay). As soon asI take out the TCRPE component, the application runs.

Has ANYBODY got the Crystal 10 VCL to work with Delphi 7 corretly ? I have strugged to find any solutions to this problem anywhere, just seems to be more people like me who cannot get it to work.

Any assistance would be GREATLY appreciated, otherwise I'll have to forget Crystal & look at another reporting package.

Thanks,

Gary

 
Hi Gary

I'm also facing the same problem. i.e i have installed Crystal Report 10 in my system and Delphi 7.0 and when i try to run the report i'm getting the TCRPE Componet Error 536 : Invalid log on parameter When i tried to debug the delphi application i saw that the password is not set and the connection string is taken from the user name and password that is set in the report and not dynamically from the ini file that we are using. can u help us in solving this issue. Awaiting an earnest reply.
Thanx in advance
Swaminathan B
 
I'm not sure about Crystal 10, but in earlier versions there was a separate "developer" help file that included information about which .dll files had to be included, the folders they were supposed to be in, and which ones had to be registered using regsvr32.

Gary, it sounds like that's the type of specific information you need. Have you also tried looking in the KnowledgeBase ([URL unfurl="true"]http://support.businessobjects.com/search/advsearch.asp[/url])? The PDF file you mentioned is there along with a number of other items.

Swaminathan, your problem is a very different one. You'll need to look at the properties and methods of the VCL component to determine where you can set those values in your program.

-Dell

A computer only does what you actually told it to do - not what you thought you told it to do.
 
I am still trying to get my deployment to work.
with Delphi 7 and Crystal 10

I tried using Instalshield express and there is an error problem with delphi 7

how do I intergrate crystal 10 into install shield and or INNO
 
It may not be of drastic help, but I have recently upgraded my ERP solution which bumped its reporting tool from CR8.5 to CR10. The runtime install was passed along to me directly and I don't get _any_ hits on the name by way of Google: CrystalReportsViewerV10.msi

With that installed the CrystalVCL10.exe downloaded from Crystal Decisions and a lot of trial and effort I was able to get the VCL to work.

One thing I noticed is that the param structure has changed a lot --in the following code, look at the highlighted section for how to handle date range. It also will not retain a password value in the connect section, it must be coded in (yech). Here is the code, somewhat dummied up:

Code:
     crpe1.ReportName := 'X:\custom\OE-OpnOrdr.rpt';
     Crpe1.Connect.ServerName := 'Chempax';
     Crpe1.Connect.UserID := 'auserid';
     Crpe1.Connect.Password := '*******';
     Crpe1.Connect.DatabaseName := 'chempax';

     Crpe1.Output := toWindow;
     for i := 0 to crpe1.ParamFields.Count -1 do
     begin
        if crpe1.ParamFields.Items[i].Name = 'Ship Date Range' then
        begin
           [highlight]crpe1.ParamFields.Items[i].Ranges.Add;
           crpe1.ParamFields.Items[i].Ranges[0].RangeStart := FormatDateTime('yyyy,mm,dd', MCal1.date);
           crpe1.ParamFields.Items[i].Ranges[0].RangeEnd   := FormatDateTime('yyyy,mm,dd', MCal2.date);
        end;
[/highlight]
        if crpe1.ParamFields.Items[i].Name = 'Ship from Warehouse' then
        begin
           crpe1.ParamFields.Items[i].CurrentValue := whouse; //warehouse
        end;

        if crpe1.ParamFields.Items[i].Name = 'Salesman' then
        begin
           crpe1.ParamFields.Items[i].CurrentValue := tempstr; //salesman initials or 'all'
        end;

        if crpe1.ParamFields.Items[i].Name = 'Grouping' then
        begin
          if RG_Grouping.ItemIndex = 0 then //shipdate
             crpe1.ParamFields.Items[i].CurrentValue:= 'Shipdate'
          else //customer
             crpe1.ParamFields.Items[i].CurrentValue:='Customer';
        end;

     end;
     crpe1.Execute;

I made extensive use of the "Design Time Controls" to figure this all out, as it helped populate my parameters but they give exactly zilch about handling Ranges...


Hope this helps [thumbsup2]
Scotto the Unwise
 
I had a similar problem deploying the Crystal components with a Delphi 7 app. I found out the Crystal merge modules do not include crpe32.dll and crpe32_res_en.dll. I had to manually include them in InstallShield, putting them in C:\Program Files\Common Files\Crystal Decisions\2.5\bin. After that the program worked fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top