Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: problem with crystal activex viewer in asp.net Post Reply Post New Topic
Author Message
NagarajuK
Newbie
Newbie


Joined: 23 Nov 2007
Online Status: Offline
Posts: 3
Quote NagarajuK Replybullet Topic: problem with crystal activex viewer in asp.net
    Posted: 23 Nov 2007 at 2:41am
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>

<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>

IP IP Logged
nbalajicec
Newbie
Newbie


Joined: 19 Sep 2007
Online Status: Offline
Posts: 10
Quote nbalajicec Replybullet Posted: 27 Nov 2007 at 3:43am
Run this Code again and Check the Event Viewer about the Error. Hope this will help..
 
IP IP Logged
NagarajuK
Newbie
Newbie


Joined: 23 Nov 2007
Online Status: Offline
Posts: 3
Quote NagarajuK Replybullet Posted: 27 Nov 2007 at 10:07pm
Hi,
 
Thank you for ur reply.
I checked event viewer as u said, there i found the following exception message.
 
"Exception information:

Exception type: HttpException

Exception message: The HTTP verb POST used to access path '/WebSite6/CrystalReport.rpt' is not allowed. "



Edited by NagarajuK - 27 Nov 2007 at 10:20pm
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 28 Nov 2007 at 8:55am
Make sure you haver permissions for the ASPNET user to access that directory. As a quick test, you can put the report in the Windows\Temp folder and access it from there. All users have access to the temp folder and if it works then it's definitely a problem with permissions.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.