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

crystal report XI from MS Access

Status
Not open for further replies.

urkhan

Programmer
Feb 7, 2007
3
AU
Hello,

I am trying to call a crystal report from MS Access form - but it's not
creating the report object - can anyone help in wrting a code to call crystal
reports ?

I beleive XI version have changes in dll and same method doesn't work as it
use to in earlier version...

here is my code:

Dim oApp As New CRAXDRT.Application
Dim oReport As CRAXDRT.Report
Dim oCRViewer As New CRViewer9

ReportName = "\\FLEG402\UKhan\Data\Crystal\test.rpt"
Set oReport = oApp.OpenReport(ReportName)

oCRViewer.ReportSource = oReport
oCRViewer.ViewReport

thanks in advance,

kanwal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top