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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX and HTML viewer

Status
Not open for further replies.

Holy1

IS-IT--Management
Jan 26, 2004
2
0
0
NL
Hi Guys,

I made a new HTML to view a report with the activeX viewer. I got the examples from standard Crystal Reports installation (version 9). All the viewers are working proparely, except for the Active X viewer. The viewer is started, but no report is loaded. It just gives back an empty viewer.

I'm quite new to HTML and ASP but I know a lot about crystal.

Can someone help me on this on. Please find enclosed the asp. To my opinion there's something wrong with :

webSource0.URL = "group.rpt"

It doesn't matter what I fill in here. It just doesn't call the report.

Best regards en thanx in advance for your reply.

<OBJECT ID=&quot;CRViewer&quot;
CLASSID=&quot;CLSID:2DEF4530-8CE6-41C9-84B6-A54536C90213&quot;
WIDTH=100% HEIGHT=99%
CODEBASE=&quot;/viewer/activeXViewer/activexviewer.cab#Version=9,2,0,442&quot;>

<PARAM NAME=&quot;EnableDrillDown&quot; VALUE=1>
<PARAM NAME=&quot;EnableExportButton&quot; VALUE=1>
<PARAM NAME=&quot;DisplayGroupTree&quot; VALUE=1>
<PARAM NAME=&quot;EnableGroupTree&quot; VALUE=1>
<PARAM NAME=&quot;EnableAnimationControl&quot; VALUE=1>
<PARAM NAME=&quot;EnablePrintButton&quot; VALUE=1>
<PARAM NAME=&quot;EnableRefreshButton&quot; VALUE=1>
<PARAM NAME=&quot;EnableSearchControl&quot; VALUE=1>
<PARAM NAME=&quot;EnableZoomControl&quot; VALUE=1>
<PARAM NAME=&quot;EnableSelectExpertButton&quot; VALUE=0>
</OBJECT>


<SCRIPT LANGUAGE=&quot;VBScript&quot;>
<!--
Sub window_onLoad()
Page_Initialize()
End Sub


Sub Page_Initialize
On Error Resume Next
Dim webBroker
Set webBroker = CreateObject(&quot;WebReportBroker9.WebReportBroker&quot;)
if err.number <> 0 then
window.alert &quot;_LOC_The Crystal ActiveX Viewer is unable to create it's resource objects._ENDLOC_&quot;
else
Dim webSource0
Set webSource0 = CreateObject(&quot;WebReportSource9.WebReportSource&quot;)
webSource0.ReportSource = webBroker
webSource0.URL = &quot;group.rpt&quot;
webSource0.PromptOnRefresh = True

CRViewer.ReportSource = webSource0
end if

CRViewer.ViewReport
End Sub

-->
</SCRIPT>





 
Hi,

I'm facing a similiar problem. All the html viewers are working, the java and the activeX don't.

Have you found a solution so far?

hobi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top