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

Viewing reports on web with crystal activexviewer

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have just start to use crstal activexviewer under asp .
but page could not display the report
here is my code
can you give some examples about this subject.

Thanks.

Omur Tirol

'========================Crystal section============
<OBJECT ID=&quot;CRViewer&quot;
CLASSID=&quot;CLSID:C4847596-972C-11D0-9567-00A0C9273C2A&quot;
WIDTH=100% HEIGHT=95%
codebase=&quot;/viewer/activeXViewer/activexviewer.cab#Version=1.0.0.0&quot;>
<PARAM NAME=&quot;EnableRefreshButton&quot; VALUE=1>
<PARAM NAME=&quot;EnableGroupTree&quot; VALUE=1>
<PARAM NAME=&quot;DisplayGroupTree&quot; VALUE=1>
<PARAM NAME=&quot;EnablePrintButton&quot; VALUE=1>
<PARAM NAME=&quot;EnableExportButton&quot; VALUE=1>
<PARAM NAME=&quot;EnableDrillDown&quot; VALUE=1>
<PARAM NAME=&quot;EnableSearchControl&quot; VALUE=1>
<PARAM NAME=&quot;EnableAnimationControl&quot; VALUE=1>
<PARAM NAME=&quot;EnableZoomControl&quot; VALUE=1>
</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;WebReportBroker.WebReportBroker&quot;)
URL = &quot;if InStr(1, URL, &quot;?&quot;)>0 then
URL=Mid(URL, 1, InStr(1, URL, &quot;?&quot;) - 1)
alert url
end if
if ScriptEngineMajorVersion <2 then
window.alert &quot;IE 3.02 users on NT4 need to get the &quot; & _
&quot;latest version of VBScript or install IE 4.01 SP1. IE &quot; & _
&quot;3.02 users on Win95 need DCOM95 and latest version of &quot; & _
&quot;VBScript, or install IE 4.01 SP1. These files are &quot; & _
&quot;available at Microsoft's web site.&quot;
CRViewer.ReportName = URL
else
Dim webSource
Set webSource = CreateObject(&quot;WebReportSource.WebReportSource&quot;)
webSource.ReportSource = webBroker
webSource.URL = URL
webSource.PromptOnRefresh = True
CRViewer.ReportSource = webSource
end if
CRViewer.ViewReport
End Sub
-->
</SCRIPT>
'========================
 
What do you mean exactly by &quot;could not display my report&quot;? Was there an error message? Blank page? Page with gray box in it?
 
I mean that activexviewer works well but when I call the report, object doesnt view the it it views an empty screen in activexviewer.

Thanks a lot
 
Hi,

just search the Support site for the following files:

CE8_WEBDEVELOPERHELP.EXE
TUTORIALSAMPLES.ZIP
CE8_GETINSTANCE.EXE


You also need to look into the way you using the asp page. It would have to look like:
report.asp?id=something&otherparameter=something

The way you use it the asp page never gets the parameter and will allways display an empty page.



---
It's never too late to do the Right thing
 
I have the same problem too. ActiveX shows up but there are no details in it. I tried with Java Viewers too with no luck, but only difference is, Java Viewers says I have 3 pages of data but same thing, no details. But I was able to view my report using HTML page but now refresh doesn't work.

Was anyone able to figure it out? If you do, please let me know (findmysolutions@yahoo.com)

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top