Solved

dll list for calling crystal report in power builder

Posted on 2003-11-07
10
3,614 Views
Last Modified: 2013-12-26
i need list of dll that required to run crystal report calling in power builder

thank
M Raheel
0
Comment
Question by:MRaheel
  • 5
  • 3
10 Comments
 
LVL 5

Expert Comment

by:gafoor78
ID: 9700226
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
 

Author Comment

by:MRaheel
ID: 9700261

i am using ole control , using api and thats why problem occure
error is
Failed to Load Database Information
0
 

Author Comment

by:MRaheel
ID: 9700265
i am not  using ole control , using api and thats why problem occure
error is
Failed to Load Database Information
0
 
LVL 5

Expert Comment

by:gafoor78
ID: 9700293
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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 5

Expert Comment

by:gafoor78
ID: 9700348
Hi

check out this link. i think this will help u

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

rgrds
gafoor

0
 
LVL 5

Expert Comment

by:gafoor78
ID: 9700354
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
 

Author Comment

by:MRaheel
ID: 9700410

if u provide me a complete code using ocx
0
 
LVL 5

Accepted Solution

by:
gafoor78 earned 50 total points
ID: 9704417
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now