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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Report Preview from VB-Form 1

Status
Not open for further replies.

intervb

Instructor
Nov 16, 2001
7
0
0
OM
Hello there,

I have problems running Crystal Report-8 from VB-6

I placed the Ocx control for Crystal Report, Connected my Crystal Report file (emp_rpt.rpt) to that. Then on the form

Private Sub cmdRpt_click()

CrystalReport1.PrintReport

End Sub

!!! But it shows cannot load Crystal Report Error Message..

The same coding worked well with VB5 & Crystal Report 4.6

Any Help would be highly regarded.

Thanx & REgards.

REx




 
Have you tried the Crystal web site. They have a huge amount of information on programming reports from VB6. I have programmed similar situations and refer to their site whenever I've had a problem. They usually have the answer.


Just follow the links from Crystal help.

Andy.
 
the property u use for previewing the report is not printreport but it is :

crptwhatever.action=1

before u do this, set the connect property like this:

crptwhatever.connect="dsn=yourdsn;uid=yourid;pwd=yourpwd"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top