Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3682
  • Last Modified:

dll list for calling crystal report in power builder

i need list of dll that required to run crystal report calling in power builder

thank
M Raheel
0
MRaheel
Asked:
MRaheel
  • 5
  • 3
1 Solution
 
gafoor78Commented:
Hi

I think u only need crystl32.ocx registered in ur system to call crystal report from PB

if u hav any pblm  calling crystal report from PB just follow this link. after then if u hav any more doubts let me know


http://oldlook.experts-exchange.com/Programming/Programming_Languages/PowerBuilder/Q_20776699.html

rgrds
gafoor
0
 
MRaheelAuthor Commented:

i am using ole control , using api and thats why problem occure
error is
Failed to Load Database Information
0
 
MRaheelAuthor Commented:
i am not  using ole control , using api and thats why problem occure
error is
Failed to Load Database Information
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
gafoor78Commented:
hi

can u just paste ur code for calling crystal report here... that will be gud 4 others also to help u.

rgrds
gafoor
0
 
gafoor78Commented:
Hi

check out this link. i think this will help u

http://support.crystaldecisions.com/library/kbase/articles/c2008905.asp

rgrds
gafoor

0
 
gafoor78Commented:
Additionally, there are a number of utilities that come with Crystal Reports which are very useful for tackling Runtime File problems.  Some of these are installed in the same directory as CRW32.EXE, and others can be found in the Tools directory on the Install CD:

I will recommend to you to check these 2 utilities :

RPTCHK32.EXE - The purpose of this utility is to load a Report, analyse it for the Runtime Files it requires, and then provide you with the results of the analysis.  

CRWCHK32.EXE - This utility was meant to be run on a client machine.  You tell it what Crystal version you are distributing, and which options you want to scan for, and it will search out the DLL's and tell you if the versions are what was expected or not.  It will list all the versions of the files that it finds in the Windows search path, along with their versions, dates, and sizes.  It will also record any that it does not find.  

0
 
MRaheelAuthor Commented:

if u provide me a complete code using ocx
0
 
gafoor78Commented:
Hi

i think using ocx is the best method thru odbc ( if u already used ODBC  in ur application )

here is the complete step if u like to use ocx

1.) click the ole control from ur control list in PB
2.) then click the tab ' insert control '  from the opened window
3.) from the control list select ' crystal report control '. ( if u cudn't see, then u hav to register its ocx crystal32.ocx with regsvr32 or from that window itself by clicking register new ). this will be automatically registered if u installed crystal report in ur system

4.) put the control in ur window
5.) then code this to view the report

  //connect report with dsn
  ole_1.object.Connect = "ODBC;DSN=ur_dsn_name;UID=ur_uid;PWD=ur_pwd_here"

  ole_1.object.ReportFileName = "put_path_of_report_file" // full path of  report file ( .rtp file )

  // view report
  ole_1.object.action = 1

6.) run ur application, then u can see the report in the report viewer control of crystal report

rgrds
gafoor
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now