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

server has not yet been opened...

Status
Not open for further replies.
Jun 17, 2004
50
GB
Having trouble using the Crystal Viewer activex object in Access. I have had a similar problem with this connecting to Oracle to export report data and I got around it by using the following;

crxReport.Database.Tables(1).SetLogOnInfo "", "", "", ""

and not the logonserver method.

I know have the same problem with a viewer I have embedded into Access to view a report. My code is as follows;

Const strReportFile As String = "P:\M.I.T\Projects\Excellence in Cities\EIB Data\4_2003 Autumn\DataReturnStatus.rpt"
Public crxApplication As New CRAXDRT.Application

' Declaration of the report object
Public crxReport As CRAXDRT.Report

Private Sub Form_Open(Cancel As Integer)
Set crxReport = crxApplication.OpenReport(strReportFile)
crxReport.Database.Tables(1).SetLogOnInfo "", "", "", ""

Me!ctrlViewer.ReportSource = crxReport
Me!ctrlViewer.ViewReport

End Sub

Whatever I do I get the same annoying message and no report displayed??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top