Jump to content
Fórum Script Brasil
  • 0

Crystal Reports 8.5 com Asp Básico.


ALL_BASILE

Question

Olá Pessoal!

Estou encontrando um problema para exibir meus relatórios em crystal reports 8.5 na web (asp básico)

Já tentei de várias formas, porém sem sucesso.

Meu código :

<%if Request("titulo_relatorio") <> "" then 
    sTituloRelatorio = Request("titulo_relatorio")
else 
    sTituloRelatorio = "Seagate ActiveX Viewer"
end if%>

<HTML>
<HEAD>
<TITLE><%=sTituloRelatorio%></TITLE>
</HEAD>
<BODY BGCOLOR=#c6c6c6 LANGUAGE=VBScript ONLOAD="Page_Initialize">
<OBJECT ID="CRViewer"
    CLASSID="CLSID:C4847596-972C-11D0-9567-00A0C9273C2A"
    WIDTH=100% HEIGHT=95%
    CODEBASE="c:\arquivos de programas\seagate software\viewers\activexviewer\activexviewer.cab#Version=8,0,0,224">
<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>

&lt;script LANGUAGE="VBScript">

<!--
Sub Page_Initialize 
'On Error Resume Next 
Dim webBroker 
Set webBroker = CreateObject("WebReportBroker.WebReportBroker") 

if ScriptEngineMajorVersion < 2 then  
    window.alert "IE 3.02 users on NT4 need to get the latest version of VBScript or install IE 4.01 SP1. IE 3.02 users on Win95 need DCOM95 and latest version of VBScript, or install IE 4.01 SP1. These files are available at Microsoft's web site."  
    CRViewer.ReportName = "rptserver.asp" 
else  
    Dim webSource  
    Set webSource = CreateObject("WebReportSource.WebReportSource")  
    webSource.ReportSource = webBroker
    webSource.URL =  "rptserver.asp"  
    webSource.PromptOnRefresh = True  
    CRViewer.ReportSource = webSource 
end if 
CRViewer.ViewReport
End Sub
-->
</SCRIPT>
</BODY>
</HTML>

E o erro acontece na linha

CRViewer.ReportSource = webSource

Line: 40

Error: Object doesn't support this property or method: 'CRViewer.ReportSource'

Instalei o Crystal no servidor..

alguém já passou por isso ?

Poderiam me ajudar?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.1k
    • Total Posts
      652k
×
×
  • Create New...