
ActiveX Problem Using Crystal Reports Viewer
this example uses ocx control
RptConn1.Connect = database connection
RptConn1.ReportFileName = report name
NumOfSub = RptConn1.GetNSubreports
If NumOfSub > 0 Then
RepName = RptConn1.GetNthSubreportName(0)
RptConn1.SubreportToChange = RepName
RptConn1.Connect = sStr
Else
End If
RptConn1.WindowState = crptMaximized
RptConn1.Action = 1
work around it and it can give access to as many reports you have one at a
time
hope this helps
Dib
Quote:
> Ho do you use this control? I would like to view 2 crystal reports (not at
the
> same time) in the same directory as my database (using Access 2000), but I
I'm
> having problems finding code examples on how to use it. Help appreciated.
> Thanks
> Frank