Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help using crviewer control to display report on web

Status
Not open for further replies.

sudi123

Programmer
May 8, 2002
20
0
0
US
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=&quot;main&quot;>

<CENTER>Interface Header.</CENTER>
<BR>
<CENTER>
<OBJECT ID=&quot;CRViewer&quot; CLASSID=&quot;CLSID:C4847596-972C-11D0-9567-00A0C9273C2A&quot; WIDTH=100% HEIGHT=90%

CODEBASE=&quot;/viewers/activeXViewer/activexviewer.cab#Version=8,0,0,371&quot;>
<PARAM NAME=&quot;EnableRefreshButton&quot; VALUE=1>
<PARAM NAME=&quot;EnableGroupTree&quot; VALUE=0>
<PARAM NAME=&quot;DisplayGroupTree&quot; VALUE=0>
<PARAM NAME=&quot;DisplayToolbar&quot; VALUE=1>
<PARAM NAME=&quot;EnableNavigationControls&quot; VALUE=0>
<PARAM NAME=&quot;EnableStopButton&quot; VALUE=0>
<PARAM NAME=&quot;EnableCloseButton&quot; VALUE=0>
<PARAM NAME=&quot;EnableProgressControl&quot; VALUE=0>
<PARAM NAME=&quot;EnableSelectExpertButton&quot; VALUE=0>
<PARAM NAME=&quot;EnablePrintButton&quot; VALUE=0>
<PARAM NAME=&quot;EnableExportButton&quot; VALUE=0>
<PARAM NAME=&quot;EnableDrillDown&quot; VALUE=0>
<PARAM NAME=&quot;EnableSearchControl&quot; VALUE=0>
<PARAM NAME=&quot;EnableAnimationControl&quot; VALUE=1>
<PARAM NAME=&quot;EnableZoomControl&quot; VALUE=0>

</OBJECT>
<OBJECT ID=&quot;WebSource&quot; Width=0 Height=0
CLASSID=&quot;CLSID:F2CA2115-C8D2-11D1-BEBD-00A0C95A6A5C&quot;
CODEBASE=&quot;viewers/ActiveXViewer/swebrs.dll#Version=1.2.0.5&quot;>
</OBJECT>
<OBJECT ID=&quot;WebBroker&quot; Width=0 Height=0
CLASSID=&quot;CLSID:F2CA2119-C8D2-11D1-BEBD-00A0C95A6A5C&quot;
CODEBASE=&quot;viewers/ActiveXViewer/swebrs.dll#Version=1.2.0.5&quot;>
</OBJECT>
<OBJECT ID=&quot;Export&quot; Width=0 Height=0
CLASSID=&quot;CLSID:BD10A9C1-07CC-11D2-BEFF-00A0C95A6A5C&quot;
CODEBASE=&quot;viewers/ActiveXViewer/sviewhlp.dll#Version=1.0.0.4&quot;>
</OBJECT>

</CENTER>

<SCRIPT LANGUAGE=&quot;VBScript&quot;>
<!--
Sub main
Dim webBroker
Dim webSource
Set webBroker = CreateObject(&quot;WebReportBroker.WebReportBroker&quot;)
Set webSource = CreateObject(&quot;WebReportSource.WebReportSource&quot;)
webSource.ReportSource = webBroker
webSource.URL =&quot;c:\codelist.rpt&quot;
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top