Hi all,
I am having a strange problem.
I have a viewer.asp file in which I have the code
//Crystal Enterprise Session - START
try
{
var SessionManager = Server.CreateObject("CrystalEnterprise.SessionMgr"
var aps_user = ""
aps_user = "Administrator";
var Sess = SessionManager.Logon( aps_user, "", <MYHOST>, "secEnterprise" );
var IStore = Sess.Service ("", "InfoStore"
SetSession ("IStore",IStore );
var LogonTokenMgr = Sess.LogonTokenMgr;
var TokenHndlr = LogonTokenMgr.CreateLogonTokenEx("", 60, 100);
SetCookie ("LogonToken", TokenHndlr);
}
catch (e)
{
<MY HANDLER>}
//Crystal Enterprise Session - END
<%
try
{
var rpt_id = Request.QueryString.Item("id"
var Reports = IStore.Query(
"SELECT SI_ID, SI_NAME, SI_PROCESSINFO.SI_PROMPTS " +
"FROM CI_INFOOBJECTS " +
"WHERE SI_NAME like '" + rpt_id +"' and " +
"SI_PROGID = 'CrystalEnterprise.Report'"
);
var ReportID;
ReportID = Reports.Item(1);
}
catch (e)
{
<MY HANDLER>
}
%>
With the ReportID i get, I call the viewrpt.cwr command.
But the page having this code will not get displayed and finally gives 'PAge Cannot Be displayed" error after some successful attempts. I am not able to find a pattern for when this happens.. Any inputs on why this happens will be very helpful
Thanks in advance
I am having a strange problem.
I have a viewer.asp file in which I have the code
//Crystal Enterprise Session - START
try
{
var SessionManager = Server.CreateObject("CrystalEnterprise.SessionMgr"
var aps_user = ""
aps_user = "Administrator";
var Sess = SessionManager.Logon( aps_user, "", <MYHOST>, "secEnterprise" );
var IStore = Sess.Service ("", "InfoStore"
SetSession ("IStore",IStore );
var LogonTokenMgr = Sess.LogonTokenMgr;
var TokenHndlr = LogonTokenMgr.CreateLogonTokenEx("", 60, 100);
SetCookie ("LogonToken", TokenHndlr);
}
catch (e)
{
<MY HANDLER>}
//Crystal Enterprise Session - END
<%
try
{
var rpt_id = Request.QueryString.Item("id"
var Reports = IStore.Query(
"SELECT SI_ID, SI_NAME, SI_PROCESSINFO.SI_PROMPTS " +
"FROM CI_INFOOBJECTS " +
"WHERE SI_NAME like '" + rpt_id +"' and " +
"SI_PROGID = 'CrystalEnterprise.Report'"
);
var ReportID;
ReportID = Reports.Item(1);
}
catch (e)
{
<MY HANDLER>
}
%>
With the ReportID i get, I call the viewrpt.cwr command.
But the page having this code will not get displayed and finally gives 'PAge Cannot Be displayed" error after some successful attempts. I am not able to find a pattern for when this happens.. Any inputs on why this happens will be very helpful
Thanks in advance