I am trying to print reports over the Web (client side) using the CRViewer control. I can view the report using the standard code:
Sub window_onLoad()
Page_Initialize()
End Sub
Sub Page_Initialize
On Error Resume Next
Dim webBroker
Set webBroker = CreateObject("WebReportBroker.WebReportBroker"
if err.number <> 0 then
window.alert "The Seagate Software ActiveX Viewer is unable to create it's resource objects. To rectify this problem, please install Internet Explorer 4.0 or install DCOM for Windows 95 and the latest Microsoft Scripting Engine. These files are available at Microsoft's web site."
CRViewer.ReportName = " else
Dim webSource0
Set webSource0 = CreateObject("WebReportSource.WebReportSource"
webSource0.ReportSource = webBroker
'Make Certain that the
webSource0.URL = " webSource0.PromptOnRefresh = True
CRViewer.ReportSource = webSource0
end if
CRViewer.ViewReport
End Sub
But I can't just print it using "CRViewer.PrintReport" in place of "CRViewer.ViewReport". Using "CRViewer.PrintReport" brings up the Report same as "CRViewer.ViewReport" does.
Ideally I don't even want the viewer to display anything I just want the reports to start print as soon as the previous page makes it's Request.
Chris Schaller
NIT, Inc
Sub window_onLoad()
Page_Initialize()
End Sub
Sub Page_Initialize
On Error Resume Next
Dim webBroker
Set webBroker = CreateObject("WebReportBroker.WebReportBroker"
if err.number <> 0 then
window.alert "The Seagate Software ActiveX Viewer is unable to create it's resource objects. To rectify this problem, please install Internet Explorer 4.0 or install DCOM for Windows 95 and the latest Microsoft Scripting Engine. These files are available at Microsoft's web site."
CRViewer.ReportName = " else
Dim webSource0
Set webSource0 = CreateObject("WebReportSource.WebReportSource"
webSource0.ReportSource = webBroker
'Make Certain that the
webSource0.URL = " webSource0.PromptOnRefresh = True
CRViewer.ReportSource = webSource0
end if
CRViewer.ViewReport
End Sub
But I can't just print it using "CRViewer.PrintReport" in place of "CRViewer.ViewReport". Using "CRViewer.PrintReport" brings up the Report same as "CRViewer.ViewReport" does.
Ideally I don't even want the viewer to display anything I just want the reports to start print as soon as the previous page makes it's Request.
Chris Schaller
NIT, Inc