Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Languages, Compilers, Interpreters > C/C++
Register

Reply
 
LinkBack Thread Tools
Old 28.04.2006, 12:00   #1
Младенец
 
Join Date: 04 2006
Location: Mauritius
Age: 34
Posts: 12
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default 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
Reply With Quote
Old 28.04.2006, 12:08   #2
Академик
 
Join Date: 01 2002
Location: Shambala
Age: 38
Posts: 7,015
Downloads: 11
Uploads: 0
Reputation: 267 | 5
Default Re: C++ Builder 6 and Crystal Report

you need a Crystal Report Component for CBuilder6 installed
Reply With Quote
Old 28.04.2006, 12:11   #3
hex god
 
Griffon2-7's Avatar
 
Join Date: 03 2002
Location: Yerevan, AM
Age: 39
Posts: 3,172
Downloads: 1
Uploads: 0
Reputation: 9 | 0
Default 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 минут
Reply With Quote
Old 28.04.2006, 12:15   #4
hex god
 
Griffon2-7's Avatar
 
Join Date: 03 2002
Location: Yerevan, AM
Age: 39
Posts: 3,172
Downloads: 1
Uploads: 0
Reputation: 9 | 0
Default 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;
Reply With Quote
Old 28.04.2006, 12:22   #5
Младенец
 
Join Date: 04 2006
Location: Mauritius
Age: 34
Posts: 12
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default 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
Reply With Quote
Old 28.04.2006, 12:22   #6
hex god
 
Griffon2-7's Avatar
 
Join Date: 03 2002
Location: Yerevan, AM
Age: 39
Posts: 3,172
Downloads: 1
Uploads: 0
Reputation: 9 | 0
Default 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
Reply With Quote
Old 28.04.2006, 12:25   #7
Младенец
 
Join Date: 04 2006
Location: Mauritius
Age: 34
Posts: 12
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default 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
Reply With Quote
Old 28.04.2006, 12:42   #8
hex god
 
Griffon2-7's Avatar
 
Join Date: 03 2002
Location: Yerevan, AM
Age: 39
Posts: 3,172
Downloads: 1
Uploads: 0
Reputation: 9 | 0
Default 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.
Reply With Quote
Old 28.04.2006, 12:49   #9
Академик
 
Join Date: 01 2002
Location: Shambala
Age: 38
Posts: 7,015
Downloads: 11
Uploads: 0
Reputation: 267 | 5
Default 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
Reply With Quote
Old 28.04.2006, 12:55   #10
Младенец
 
Join Date: 04 2006
Location: Mauritius
Age: 34
Posts: 12
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default 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
Reply With Quote
Old 28.04.2006, 13:09   #11
Академик
 
Join Date: 01 2002
Location: Shambala
Age: 38
Posts: 7,015
Downloads: 11
Uploads: 0
Reputation: 267 | 5
Default 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
Reply With Quote
Old 28.04.2006, 13:17   #12
hex god
 
Griffon2-7's Avatar
 
Join Date: 03 2002
Location: Yerevan, AM
Age: 39
Posts: 3,172
Downloads: 1
Uploads: 0
Reputation: 9 | 0
Default 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.
Reply With Quote
Old 28.04.2006, 13:23   #13
Младенец
 
Join Date: 04 2006
Location: Mauritius
Age: 34
Posts: 12
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default Re: C++ Builder 6 and Crystal Report

Quote:
Originally Posted by erexa
do not work with ActiveX in Builder, try VCl components, find out it from here

http://www.businessobjects.com/produ...cl/default.asp

Thanks.
I'll try it

Kind Regards,
Rowin
Reply With Quote
Old 28.04.2006, 13:25   #14
Младенец
 
Join Date: 04 2006
Location: Mauritius
Age: 34
Posts: 12
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default 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
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 03:16.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.