p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Crystal Reports (http://p2p.wrox.com/forumdisplay.php?f=113)
-   -   problem with crystal activex viewer in asp.net (http://p2p.wrox.com/showthread.php?t=63988)

NagarajuK November 22nd, 2007 10:20 AM

problem with crystal activex viewer in asp.net
 
Hi,
Here is my code written in .aspx file.
I am getting blank page when I run this code. Please help me out.

<HTML>
<HEAD>
<TITLE>Crystal Reports ActiveX Viewer</TITLE>
</HEAD>
<BODY BGCOLOR=C6C6C6 leftmargin=0 topmargin=0 rightmargin=0 bottommargin=0 >
<object id="CRViewer"
    classid="CLSID:460324E8-CFB4-4357-85EF-CE3EBFE23A62"
    width=100%
    codebase="ActiveXViewer.cab" style="height: 248px">
<param name="EnableRefreshButton" value="1" />
<param name="EnableGroupTree" value="1" />
<PARAM NAME="DisplayGroupTree" VALUE=1>
<param name="EnablePrintButton" value=1>
<PARAM NAME="EnableExportButton" VALUE=1>
<PARAM NAME="EnableDrillDown" VALUE=1>
<PARAM NAME="EnableSearchControl" VALUE=1>
<PARAM NAME="EnableAnimationControl" VALUE=1>
<PARAM NAME="EnableZoomControl" VALUE=1>

</object>

<%--<object classid="CLSID:0E70ED0E-5775-4A74-8F8D-AC2FED09928D" codebase="Bin/swebrs.dll#Version=11.0" id="webBroker"></object>
<object classid="CLSID:D6E9A4B5-843D-43E3-9A1D-45C88419942E" codebase="Bin/swebrs.dll#Version=11.0" id="webSource"></object>--%>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub Window_Onload

    On Error Resume Next
    Dim webBroker
    Set webBroker = CreateObject("CrystalReports11.WebReportBroker.1")
    Dim webSource
    Set webSource = CreateObject("CrystalReports11.WebReportSource.1")
    webSource.ReportSource=webBroker
    webSource.URL="http://"+location.host+"/WebSite6/CrystalReport.rpt"
    CRViewer.ReportName="http://"+location.host+"/WebSite6/CrystalReport.rpt"
    webSource.PromptOnRefresh =false
    CRViewer.ReportSource = webSource
    CRViewer.ViewReport
    alert("hi")
End Sub

-->
</SCRIPT>



</BODY>
</HTML>



All times are GMT -4. The time now is 03:16 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.