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!

Loading Crystal Reports

Status
Not open for further replies.

ccv123

Programmer
Aug 14, 2001
1
US
hey there...

Using the CRViewer exactly in a similar mannner as below, when my report page shows up there is absolutely NOTHING on it. NO DATA !!! JUST BLANK !!!
Note!!! i have written this block of code into COLDFUSION 4.5.1


Sub window_onLoad()
Page_Initialize()
End Sub

Sub Page_Initialize
On Error Resume Next
Dim webBroker
Set webBroker = CreateObject("WebReportBroker.WebReportBroker")
if err.number <> 0 then
window.alert &quot;The Seagate Software ActiveX Viewer is unable to create it's resource objects. To rectify this problem, please install Internet Explorer 4.0 or install DCOM for Windows 95 and the latest Microsoft Scripting Engine. These files are available at Microsoft's web site.&quot;
CRViewer.ReportName = &quot; else
Dim webSource0
Set webSource0 = CreateObject(&quot;WebReportSource.WebReportSource&quot;)
webSource0.ReportSource = webBroker
'Make Certain that the
webSource0.URL = &quot; webSource0.PromptOnRefresh = True
CRViewer.ReportSource = webSource0
end if
CRViewer.ViewReport
End Sub



Can anyone please tell me what i am doing wrong ???

Thanks,
ccv
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top