Does anyone know if it is possible to suppress the print dialog box of the CRViewer when pulling a report from the web using the WebReportBroker/WebReportSource.
Are there any other Crystal Report Object that can pull the reports off the Web rather then a File.(Using the WebReportBroker/WebReportSource or any other mechinism)
There is an FAQ but what i can gather is that it assigns MyRpt(MyRpt is neither declared or described) to the CRViewer.ReportSource...(this may be a wrong assumption)
This FAQ code is based of the CR8 sample code that assigns a ICRDesigner to the CRViewer.ReportSource
Below is VB code that I am using. you need just a form with a CRViewer and two buttons.
Requirements:
The report Doesn't have to be viewed but does have to be pulled down from the web with no interaction from the user.
Any ideas?
Thanks in advance
Andy
Private Sub cmdLoad_Click()
Dim webBroker, webSource
Set webBroker = CreateObject("WebReportBroker.WebReportBroker"
Set webSource = CreateObject("WebreportSource.WebReportSource"
webSource.ReportSource = webBroker
webSource.URL= "
CRViewer1.ReportSource = webSource
CRViewer1.ViewReport
End Sub
Private Sub cmdPrint_Click()
'Some how supress the Print Dialog
CRViewer1.PrintReport
End Sub
Are there any other Crystal Report Object that can pull the reports off the Web rather then a File.(Using the WebReportBroker/WebReportSource or any other mechinism)
There is an FAQ but what i can gather is that it assigns MyRpt(MyRpt is neither declared or described) to the CRViewer.ReportSource...(this may be a wrong assumption)
This FAQ code is based of the CR8 sample code that assigns a ICRDesigner to the CRViewer.ReportSource
Below is VB code that I am using. you need just a form with a CRViewer and two buttons.
Requirements:
The report Doesn't have to be viewed but does have to be pulled down from the web with no interaction from the user.
Any ideas?
Thanks in advance
Andy
Private Sub cmdLoad_Click()
Dim webBroker, webSource
Set webBroker = CreateObject("WebReportBroker.WebReportBroker"
Set webSource = CreateObject("WebreportSource.WebReportSource"
webSource.ReportSource = webBroker
webSource.URL= "
CRViewer1.ReportSource = webSource
CRViewer1.ViewReport
End Sub
Private Sub cmdPrint_Click()
'Some how supress the Print Dialog
CRViewer1.PrintReport
End Sub