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

Crystal viewer with multiple reports

Status
Not open for further replies.

mficalora

Programmer
Nov 5, 2002
5
US
I am using the crystal viwer to display two reports. How do I check to see if the viewer is closed prior to loading the second report?

Command1_Click()
sReport = "x.rpt"
Set Report = crxApplication.OpenReport(sReport, 1)

clsRE.ReportView Report
Set Report = Nothing

sReport = "y.rpt"
Set Report = crxApplication.OpenReport(sReport, 1)

clsRE.ReportView Report
Set Report = Nothing

Public Sub ReportView(ReportIn As CRAXDRT.Report)

Set Report = ReportIn
Screen.MousePointer = vbHourglass
CRViewer1.ReportSource = Report
CRViewer1.ViewReport
Screen.MousePointer = vbDefault
Visible = True
SetFocus

End Sub

Second report steps on first ones toes!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top