|
C++ Builder 6 and Crystal Report |
|
28.04.2006, 11:00
|
#1
|
Младенец
Join Date: 04 2006
Location: Mauritius
Age: 41
Posts: 12
Rep Power: 0
|
C++ Builder 6 and Crystal Report
Hi,
I have an C++ Builder application. I want to print a report with the values appearing in my application. I get these values from my database.
I already have a crystal report format of how the report should be printed.
How to do this?
Kind Regards,
Rowin
|
|
|
|
Re: C++ Builder 6 and Crystal Report |
|
28.04.2006, 11:08
|
#2
|
Академик
Join Date: 01 2002
Location: Shambala
Age: 45
Posts: 7,016
Rep Power: 6
|
Re: C++ Builder 6 and Crystal Report
you need a Crystal Report Component for CBuilder6 installed
|
|
|
|
Re: C++ Builder 6 and Crystal Report |
|
28.04.2006, 11:11
|
#3
|
hex god
Join Date: 03 2002
Location: Yerevan, AM
Age: 46
Posts: 3,172
Rep Power: 0
|
Re: C++ Builder 6 and Crystal Report
Hi.
If you have the CR installed on your PC, ot should register the crystl32.ocx file. If not, find it in your CR distribution packet and register it.
Than, open the Component->Import ActiveX Control in your BCB menu. Choose the Crystal Report Control line in the list and press Install. It will install the new TCrystalReport component in the ActiveX tab. Enjoy
__________________
Ленинградское время 0 часов 0 минут
|
|
|
|
Re: C++ Builder 6 and Crystal Report |
|
28.04.2006, 11:15
|
#4
|
hex god
Join Date: 03 2002
Location: Yerevan, AM
Age: 46
Posts: 3,172
Rep Power: 0
|
Re: C++ Builder 6 and Crystal Report
Here is some sample code (it is for Deplhi5, but it's easy to translate it to BCB syntax)
Code:
with CrystalReport1 do
begin
DiscardSavedData:=True;
ReportFileName:=ExtractFileDir(ParamStr(0))+'\Yourreportfilename.rpt';
Destination:=1;
PrintReport;
Destination:=2;
PrintFileType:=17;
PrintFileName:=ExtractFileDir(ParamStr(0))+'\files\Yourreportfilename.doc';
PrintReport;
end;
|
|
|
|
Re: C++ Builder 6 and Crystal Report |
|
28.04.2006, 11:22
|
#5
|
Младенец
Join Date: 04 2006
Location: Mauritius
Age: 41
Posts: 12
Rep Power: 0
|
Re: C++ Builder 6 and Crystal Report
Quote:
Originally Posted by erexa
you need a Crystal Report Component for CBuilder6 installed
|
Which Crystal Report Component do I need?
Kind Regards,
Rowin
|
|
|
|
Re: C++ Builder 6 and Crystal Report |
|
28.04.2006, 11:22
|
#6
|
hex god
Join Date: 03 2002
Location: Yerevan, AM
Age: 46
Posts: 3,172
Rep Power: 0
|
Re: C++ Builder 6 and Crystal Report
Finally, you may install the VCL components provided with the Crystal Reports version 8.5 Professional or higher
|
|
|
|
Re: C++ Builder 6 and Crystal Report |
|
28.04.2006, 11:25
|
#7
|
Младенец
Join Date: 04 2006
Location: Mauritius
Age: 41
Posts: 12
Rep Power: 0
|
Re: C++ Builder 6 and Crystal Report
Quote:
Originally Posted by Griffon2-7
Hi.
If you have the CR installed on your PC, ot should register the crystl32.ocx file. If not, find it in your CR distribution packet and register it.
Than, open the Component->Import ActiveX Control in your BCB menu. Choose the Crystal Report Control line in the list and press Install. It will install the new TCrystalReport component in the ActiveX tab. Enjoy
|
I have Crystal 8.5 installed on my PC.
I can't find the crystl32.ocx file. Where should it be normally?
Kind Regards,
Rowin
|
|
|
|
Re: C++ Builder 6 and Crystal Report |
|
28.04.2006, 11:42
|
#8
|
hex god
Join Date: 03 2002
Location: Yerevan, AM
Age: 46
Posts: 3,172
Rep Power: 0
|
Re: C++ Builder 6 and Crystal Report
Quote:
Originally Posted by Rowin
I have Crystal 8.5 installed on my PC.
I can't find the crystl32.ocx file. Where should it be normally?
Kind Regards,
Rowin
|
It should be in the [windows folder]\system32 folder.
filesize ~830kb
Please also check: [Your CR distribution packet folder]\windows\system32 folder.
|
|
|
|
Re: C++ Builder 6 and Crystal Report |
|
28.04.2006, 11:49
|
#9
|
Академик
Join Date: 01 2002
Location: Shambala
Age: 45
Posts: 7,016
Rep Power: 6
|
Re: C++ Builder 6 and Crystal Report
i have one VCL component, but it's ~18 Mb, i do not know how can i send it to you
it's simple easy component for CR 9
|
|
|
|
Re: C++ Builder 6 and Crystal Report |
|
28.04.2006, 11:55
|
#10
|
Младенец
Join Date: 04 2006
Location: Mauritius
Age: 41
Posts: 12
Rep Power: 0
|
Re: C++ Builder 6 and Crystal Report
Quote:
Originally Posted by Griffon2-7
It should be in the [windows folder]\system32 folder.
filesize ~830kb
Please also check: [Your CR distribution packet folder]\windows\system32 folder.
|
There's no such files!!
Kind Regards,
Rowin
|
|
|
|
Re: C++ Builder 6 and Crystal Report |
|
28.04.2006, 12:09
|
#11
|
Академик
Join Date: 01 2002
Location: Shambala
Age: 45
Posts: 7,016
Rep Power: 6
|
Re: C++ Builder 6 and Crystal Report
do not work with ActiveX in Builder, try VCl components, find out it from here
http://www.businessobjects.com/produ...cl/default.asp
|
|
|
|
Re: C++ Builder 6 and Crystal Report |
|
28.04.2006, 12:17
|
#12
|
hex god
Join Date: 03 2002
Location: Yerevan, AM
Age: 46
Posts: 3,172
Rep Power: 0
|
Re: C++ Builder 6 and Crystal Report
Quote:
Originally Posted by Rowin
There's no such files!!
Kind Regards,
Rowin
|
. I have such files. My version is CR 8.5 Professional
Try the following:
[Crystal reports distibution packet]\ProgramF\SEAGAT~1\CRW\DEV\VCL
You should find some VCL installation packets for Delphi and/or Builder.
|
|
|
|
Re: C++ Builder 6 and Crystal Report |
|
28.04.2006, 12:23
|
#13
|
Младенец
Join Date: 04 2006
Location: Mauritius
Age: 41
Posts: 12
Rep Power: 0
|
Re: C++ Builder 6 and Crystal Report
Quote:
Originally Posted by erexa
|
Thanks.
I'll try it
Kind Regards,
Rowin
|
|
|
|
Re: C++ Builder 6 and Crystal Report |
|
28.04.2006, 12:25
|
#14
|
Младенец
Join Date: 04 2006
Location: Mauritius
Age: 41
Posts: 12
Rep Power: 0
|
Re: C++ Builder 6 and Crystal Report
Quote:
Originally Posted by Griffon2-7
. I have such files. My version is CR 8.5 Professional
Try the following:
[Crystal reports distibution packet]\ProgramF\SEAGAT~1\CRW\DEV\VCL
You should find some VCL installation packets for Delphi and/or Builder.
|
In my folder, there's no dev\vcl..
Its:
Program Files\Seagate Software\Crystal Reports and in Crystal Reports there are only Help and Samples as folders.
Kind Regards,
Rowin
|
|
|
All times are GMT. The time now is 13:44. |
|
|