Hi.
I´m trying to view a report in the browser. I´m using ASP with this code (one exemple, the first one, that Crystal have in their site):
<SCRIPT LANGUAGE="VBScript">
<!--
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 = "test.rpt"
else
Dim webSource0
Set webSource0 = CreateObject("WebReportSource.WebReportSource"
webSource0.ReportSource = webBroker
webSource0.URL = "test.rpt"
webSource0.PromptOnRefresh = True
CRViewer.ReportSource = webSource0
end if
CRViewer.ViewReport
End Sub
At the top of the page i have the object code stuff,too.
When I browse to the report, I can view the viewer inside it, however it doesn´t display any report...
I don´t get any error too.
What can I be doing wrong?
I´m using Crstal Reports 8.0 and ASP in windows 2000.
I´m not running Web component server. in fact, it isn´t even installed. Does I need it to view a report in a browser?
Thank you.
I´m trying to view a report in the browser. I´m using ASP with this code (one exemple, the first one, that Crystal have in their site):
<SCRIPT LANGUAGE="VBScript">
<!--
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 = "test.rpt"
else
Dim webSource0
Set webSource0 = CreateObject("WebReportSource.WebReportSource"
webSource0.ReportSource = webBroker
webSource0.URL = "test.rpt"
webSource0.PromptOnRefresh = True
CRViewer.ReportSource = webSource0
end if
CRViewer.ViewReport
End Sub
At the top of the page i have the object code stuff,too.
When I browse to the report, I can view the viewer inside it, however it doesn´t display any report...
I don´t get any error too.
What can I be doing wrong?
I´m using Crstal Reports 8.0 and ASP in windows 2000.
I´m not running Web component server. in fact, it isn´t even installed. Does I need it to view a report in a browser?
Thank you.