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!

Problem of viewing reports using tailor-made CSP script

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

I am doing the reports by using Crystal Analysis and I can successfully view it on Web through Crystal Enterprise (Version 8, Standard Version). It can be viewed without problem if I load the reports by the default ePoftfolio page. However, I tried to develope my own customized CSP page, I can list out the report names succefully but the reports cannot be viewed.

The error message is:
*********************
Retrieve Error
There was an error while retrieving data from the server: Not Authorized
*********************

The URL link when one of the reports is called is as follows:


What is the possible cause of this error? Anyone can help or have this experience before?
Does it deal with the configuration of the WCS (Web Component Server) ??

Thanks.

Terry
 
You need to Logon to Crystal Enterprise and Pass the Logon token to the Crystal Report Viewer viewrpt.cwr.
Given is the Sample Code

Set Sess = SessionManager.Logon(UserID, Password, APS ServerName, "SecEnterprise")

Set LogonTokenMgr = Sess.LogonTokenMgr

Session("IStore") = Sess.LogonTokenMgr

LogonToken = LogonTokenMgr.CreateLogonToken("", 1, 100)

pass this LogonToken to Viewrpt.cwr in the field/parameter
apstoken either in the URL or as form field.


 
Mualidhick,

Umm... if you take a look at the URL that Terry So SPECIFICALLY pasted, you will see that the APS token _is_ already being passed to the report.

SlaveX.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top