-
Crystal Reports Examples
Hi,
Can someone send me few lines of code on
how to use Crystal Report Viewer Control.
I have my code pasted below which is not working.
I dont see the report.
Private Sub Form_Load()
CRViewer1.EnableExportButton = True
Set webBroker = CreateObject("WebReportBroker.WebReportBroker")
Set webSource = CreateObject("WebReportSource.WebReportSource")
webSource.ReportSource = webBroker
webSource.URL = "file:///C:\Documents and Settings\ishaikh\Desktop\Report2.rpt"
webSource.PromptOnRefresh = False
CRViewer1.ReportSource = webSource
CRViewer1.ViewReport
End Sub
Please rate the article if it is of any use to you. This encourages me to reply more and more and more.