hi there ,
i need some help on using the crviewer ctrl of CR version 8.5 and am using vb6.
i want to display a report on the web which is in my c:\ drive.
i used the following code but i could see only the viewer but no content in it.
<HTML>
<BODY BGCOLOR=C6C6C6 LANGUAGE=VBScript ONLOAD="main">
<CENTER>Interface Header.</CENTER>
<BR>
<CENTER>
<OBJECT ID="CRViewer" CLASSID="CLSID:C4847596-972C-11D0-9567-00A0C9273C2A" WIDTH=100% HEIGHT=90%
CODEBASE="/viewers/activeXViewer/activexviewer.cab#Version=8,0,0,371">
<PARAM NAME="EnableRefreshButton" VALUE=1>
<PARAM NAME="EnableGroupTree" VALUE=0>
<PARAM NAME="DisplayGroupTree" VALUE=0>
<PARAM NAME="DisplayToolbar" VALUE=1>
<PARAM NAME="EnableNavigationControls" VALUE=0>
<PARAM NAME="EnableStopButton" VALUE=0>
<PARAM NAME="EnableCloseButton" VALUE=0>
<PARAM NAME="EnableProgressControl" VALUE=0>
<PARAM NAME="EnableSelectExpertButton" VALUE=0>
<PARAM NAME="EnablePrintButton" VALUE=0>
<PARAM NAME="EnableExportButton" VALUE=0>
<PARAM NAME="EnableDrillDown" VALUE=0>
<PARAM NAME="EnableSearchControl" VALUE=0>
<PARAM NAME="EnableAnimationControl" VALUE=1>
<PARAM NAME="EnableZoomControl" VALUE=0>
</OBJECT>
<OBJECT ID="WebSource" Width=0 Height=0
CLASSID="CLSID:F2CA2115-C8D2-11D1-BEBD-00A0C95A6A5C"
CODEBASE="viewers/ActiveXViewer/swebrs.dll#Version=1.2.0.5">
</OBJECT>
<OBJECT ID="WebBroker" Width=0 Height=0
CLASSID="CLSID:F2CA2119-C8D2-11D1-BEBD-00A0C95A6A5C"
CODEBASE="viewers/ActiveXViewer/swebrs.dll#Version=1.2.0.5">
</OBJECT>
<OBJECT ID="Export" Width=0 Height=0
CLASSID="CLSID:BD10A9C1-07CC-11D2-BEFF-00A0C95A6A5C"
CODEBASE="viewers/ActiveXViewer/sviewhlp.dll#Version=1.0.0.4">
</OBJECT>
</CENTER>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub main
Dim webBroker
Dim webSource
Set webBroker = CreateObject("WebReportBroker.WebReportBroker"
Set webSource = CreateObject("WebReportSource.WebReportSource"
webSource.ReportSource = webBroker
webSource.URL ="c:\codelist.rpt"
CRViewer.ReportSource = webSource
CRViewer.ViewReport
End Sub
-->
</SCRIPT>
<CENTER>Interface Footer.</CENTER>
</BODY>
</HTML>
and the report has no parameters.
i dont know what is the reason..
plz any kind of help is highly apprecaited
i need some help on using the crviewer ctrl of CR version 8.5 and am using vb6.
i want to display a report on the web which is in my c:\ drive.
i used the following code but i could see only the viewer but no content in it.
<HTML>
<BODY BGCOLOR=C6C6C6 LANGUAGE=VBScript ONLOAD="main">
<CENTER>Interface Header.</CENTER>
<BR>
<CENTER>
<OBJECT ID="CRViewer" CLASSID="CLSID:C4847596-972C-11D0-9567-00A0C9273C2A" WIDTH=100% HEIGHT=90%
CODEBASE="/viewers/activeXViewer/activexviewer.cab#Version=8,0,0,371">
<PARAM NAME="EnableRefreshButton" VALUE=1>
<PARAM NAME="EnableGroupTree" VALUE=0>
<PARAM NAME="DisplayGroupTree" VALUE=0>
<PARAM NAME="DisplayToolbar" VALUE=1>
<PARAM NAME="EnableNavigationControls" VALUE=0>
<PARAM NAME="EnableStopButton" VALUE=0>
<PARAM NAME="EnableCloseButton" VALUE=0>
<PARAM NAME="EnableProgressControl" VALUE=0>
<PARAM NAME="EnableSelectExpertButton" VALUE=0>
<PARAM NAME="EnablePrintButton" VALUE=0>
<PARAM NAME="EnableExportButton" VALUE=0>
<PARAM NAME="EnableDrillDown" VALUE=0>
<PARAM NAME="EnableSearchControl" VALUE=0>
<PARAM NAME="EnableAnimationControl" VALUE=1>
<PARAM NAME="EnableZoomControl" VALUE=0>
</OBJECT>
<OBJECT ID="WebSource" Width=0 Height=0
CLASSID="CLSID:F2CA2115-C8D2-11D1-BEBD-00A0C95A6A5C"
CODEBASE="viewers/ActiveXViewer/swebrs.dll#Version=1.2.0.5">
</OBJECT>
<OBJECT ID="WebBroker" Width=0 Height=0
CLASSID="CLSID:F2CA2119-C8D2-11D1-BEBD-00A0C95A6A5C"
CODEBASE="viewers/ActiveXViewer/swebrs.dll#Version=1.2.0.5">
</OBJECT>
<OBJECT ID="Export" Width=0 Height=0
CLASSID="CLSID:BD10A9C1-07CC-11D2-BEFF-00A0C95A6A5C"
CODEBASE="viewers/ActiveXViewer/sviewhlp.dll#Version=1.0.0.4">
</OBJECT>
</CENTER>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub main
Dim webBroker
Dim webSource
Set webBroker = CreateObject("WebReportBroker.WebReportBroker"
Set webSource = CreateObject("WebReportSource.WebReportSource"
webSource.ReportSource = webBroker
webSource.URL ="c:\codelist.rpt"
CRViewer.ReportSource = webSource
CRViewer.ViewReport
End Sub
-->
</SCRIPT>
<CENTER>Interface Footer.</CENTER>
</BODY>
</HTML>
and the report has no parameters.
i dont know what is the reason..
plz any kind of help is highly apprecaited