Link to home
Start Free TrialLog in
Avatar of TommyTupa
TommyTupa

asked on

Outputting to a single page with RAS InteractiveViewer

Hi,  I'm attempting to output a report into one  HTML page using the CrystalReportsInteractiveViewer. I don't want to display the toolbar to allow users to navigate pages.  When I set the .IsSeparatePages property to false sometimes I get a 'Catastrophic Error'.  Setting the property back to true produces no errors but of course this outputs to HTML one page at a time.  Does anyone have any ideas how I can get the HTML to output to one page? Or why sometimes I get 'Catastrophic Errors' and sometimes I don't.  I've included my viewer code for your information.

I'm beginning to pull my hair out so any help would be appreciated.

Thanks,

---code----
        
' Create the Crystal Reports Interactive Viewer
Dim viewer
Set viewer = CreateObject("CrystalReports.CrystalReportInteractiveViewer")
with viewer
.Name = "Crystal Reports Interactive Viewer"
.IsOwnForm = True
.IsOwnPage = True
.IsDisplayGroupTree = FALSE
.HasToggleGroupTreeButton = FALSE
.EnableLogonPrompt = false
.IsBestFitPage = true
.IsDisplayToolbar = false
.HasHeaderArea = false
.HasViewList = false
End With
viewer.ReportSource = Session("oClientDoc").ReportSource
viewer.ProcessHttpRequest Request, Response, null
Avatar of ladylinet
ladylinet

Did you download latest hotfix for RAS?
 
 Lady LInet
Avatar of TommyTupa

ASKER

Yes I did.
I heard back from Business Objects and they think its a bug, so are submitting it to QA.  So for future reference for the experts this is how to duplicate the bug:

Environment: Crystal Developer 9.0 + Crystal RAS 9.0
Report: Set up any report with a database login and a subreport
HTML Viewer: Add .isseparatepages = false
Execution: Run the report in RAS.  If outputting to HTML error = 'Catastophic Failure'.  If outputting to PDF error = 'Login Failed'.
Great that you found a solution, even if it is a bug.
 Close the question then, so more people will be able to see it...

Lady Linet
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial