Hi Guys,
I made a new HTML to view a report with the activeX viewer. I got the examples from standard Crystal Reports installation (version 9). All the viewers are working proparely, except for the Active X viewer. The viewer is started, but no report is loaded. It just gives back an empty viewer.
I'm quite new to HTML and ASP but I know a lot about crystal.
Can someone help me on this on. Please find enclosed the asp. To my opinion there's something wrong with :
webSource0.URL = "group.rpt"
It doesn't matter what I fill in here. It just doesn't call the report.
Best regards en thanx in advance for your reply.
<OBJECT ID="CRViewer"
CLASSID="CLSID:2DEF4530-8CE6-41C9-84B6-A54536C90213"
WIDTH=100% HEIGHT=99%
CODEBASE="/viewer/activeXViewer/activexviewer.cab#Version=9,2,0,442">
<PARAM NAME="EnableDrillDown" VALUE=1>
<PARAM NAME="EnableExportButton" VALUE=1>
<PARAM NAME="DisplayGroupTree" VALUE=1>
<PARAM NAME="EnableGroupTree" VALUE=1>
<PARAM NAME="EnableAnimationControl" VALUE=1>
<PARAM NAME="EnablePrintButton" VALUE=1>
<PARAM NAME="EnableRefreshButton" VALUE=1>
<PARAM NAME="EnableSearchControl" VALUE=1>
<PARAM NAME="EnableZoomControl" VALUE=1>
<PARAM NAME="EnableSelectExpertButton" VALUE=0>
</OBJECT>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub window_onLoad()
Page_Initialize()
End Sub
Sub Page_Initialize
On Error Resume Next
Dim webBroker
Set webBroker = CreateObject("WebReportBroker9.WebReportBroker"
if err.number <> 0 then
window.alert "_LOC_The Crystal ActiveX Viewer is unable to create it's resource objects._ENDLOC_"
else
Dim webSource0
Set webSource0 = CreateObject("WebReportSource9.WebReportSource"
webSource0.ReportSource = webBroker
webSource0.URL = "group.rpt"
webSource0.PromptOnRefresh = True
CRViewer.ReportSource = webSource0
end if
CRViewer.ViewReport
End Sub
-->
</SCRIPT>
I made a new HTML to view a report with the activeX viewer. I got the examples from standard Crystal Reports installation (version 9). All the viewers are working proparely, except for the Active X viewer. The viewer is started, but no report is loaded. It just gives back an empty viewer.
I'm quite new to HTML and ASP but I know a lot about crystal.
Can someone help me on this on. Please find enclosed the asp. To my opinion there's something wrong with :
webSource0.URL = "group.rpt"
It doesn't matter what I fill in here. It just doesn't call the report.
Best regards en thanx in advance for your reply.
<OBJECT ID="CRViewer"
CLASSID="CLSID:2DEF4530-8CE6-41C9-84B6-A54536C90213"
WIDTH=100% HEIGHT=99%
CODEBASE="/viewer/activeXViewer/activexviewer.cab#Version=9,2,0,442">
<PARAM NAME="EnableDrillDown" VALUE=1>
<PARAM NAME="EnableExportButton" VALUE=1>
<PARAM NAME="DisplayGroupTree" VALUE=1>
<PARAM NAME="EnableGroupTree" VALUE=1>
<PARAM NAME="EnableAnimationControl" VALUE=1>
<PARAM NAME="EnablePrintButton" VALUE=1>
<PARAM NAME="EnableRefreshButton" VALUE=1>
<PARAM NAME="EnableSearchControl" VALUE=1>
<PARAM NAME="EnableZoomControl" VALUE=1>
<PARAM NAME="EnableSelectExpertButton" VALUE=0>
</OBJECT>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub window_onLoad()
Page_Initialize()
End Sub
Sub Page_Initialize
On Error Resume Next
Dim webBroker
Set webBroker = CreateObject("WebReportBroker9.WebReportBroker"
if err.number <> 0 then
window.alert "_LOC_The Crystal ActiveX Viewer is unable to create it's resource objects._ENDLOC_"
else
Dim webSource0
Set webSource0 = CreateObject("WebReportSource9.WebReportSource"
webSource0.ReportSource = webBroker
webSource0.URL = "group.rpt"
webSource0.PromptOnRefresh = True
CRViewer.ReportSource = webSource0
end if
CRViewer.ViewReport
End Sub
-->
</SCRIPT>