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

CrystalEnterprise9.0 CR9.0 - Unable to view report format PDF

Status
Not open for further replies.

FrankBS

Programmer
Apr 6, 2004
3
US
Have Crystal Enterprise 9.0 Crystal Reports 9.0
CE Viewer set to DHMTL.
Crystal Report 1 published on CE as crystal report format.
Crystal report 2 piblished on CE as PDF format.

In ePortfolio report 1 displays in crystal report format,
when printed it loads as pdf to acrobat adobe going through several steps to get to print.
Report 2 displays in PDF format And when printed to print
without the loading procedure. This is all fine.

Here is the problem. We developed a web portal using .csp that better meets our requirements.
Report 1 works the same as in ePortfolio - ok.
Report 2 gets this error message.
CrystalReportViewer
The object you are trying to access (ID = 15847) has type CrystalEnterprise.Pdf.
The Page Server only supports objects of type . Please select a different object
Here is code to setup viewer.
(code)
' Create the viewer and its report source.
Dim viewer1, rptFactory, rptSource
Set rptFactory = iStore.EnterpriseSession.Service("", "PSReportFactory")
Set rptSource = rptFactory.OpenReportSource(CInt(id))

Set viewer1 = Server.CreateObject( "CrystalReports.CrystalReportViewer" )
' Set the viewer's properties to prepare it for viewing.
With viewer1
.ReportSource = rptSource
.EnterpriseLogon = iStore.EnterpriseSession
.HasPrintButton = true
.isownform = true
.isownpage = true
.URI = CStr( Request.ServerVariables.Item("PATH_INFO") & "?" & Request.ServerVariables.Item("QUERY_STRING"))
End With

'Process the request and launch the viewer.
viewer1.ProcessHttpRequest Request, Response, Session

(/code)
I am unable to find in the crystal viewer object something to change to cause the pdf viewer to be used Or how to assign a different viewer. I am new to this project so any help is appreciated and thanks in advance.
frankbs





 
Hi, Publish as a Crystal Report type object..
Look for the coding to view/export in PDF format.
I do not have my docs with me, so I can't give a specific reference.

[profile]
 
Turbear, Thanks for your time.

Following is how the portal to replace ePortfolio works.

I have CE viewer set to DHTML. If I publish report as a CrystalEnterprise.RPT and view an instance the View is in DHTML viewer, When I select Print Icon I have to answer 4 screens to store report as CrystalEnterprise.PDF and Open in Acrobat Adobe viewer. If I publish as CrystalReport.PDF I cannot view an instance of report.

Using ePortfolio CrystalEnterprise.RPT works the same as custom portal. The CrystalReport.PDF loads initially into Acrobat Adobe viewer and hitting Print Icon go directly to printer interface.

I am trying to get custom portal to work the same as ePortfolio but i cannot get PDF viewer set up properly.

thanks again
FrankBS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top