Hi,
am using crystal report in my c#.net
The report was initially designed with the RDO Connection and uses the
stroed proc,This sp requires 4 parameters.In my c# web app , i simply
included the report(.rpt) file and made an object for that and am
passing the parameters.Fina lly it gives the error message as,
LOGON FAILED.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details:
CrystalDecision s.CrystalReport s.Engine.LogOnE xception: Logon failed.
--------------------My code----------------
rpt_proc_auditl og rpt=new rpt_proc_auditl og();
TableLogOnInfo loginfo=new TableLogOnInfo( );
ConnectionInfo coninfo=new ConnectionInfo( );
Database crDatabase;
Tables crTables;
//Table crTable;
crDatabase=rpt. Database;
coninfo.ServerN ame="TCMS";
coninfo.UserID= "TCMS_DATA" ;
coninfo.Passwor d="SOCOOL";
coninfo.Databas eName ="TCMS_DATA" ;
crDatabase=rpt. Database;
crTables=crData base.Tables;
foreach(Crystal Decisions.Cryst alReports.Engin e.Table crTable in
crTables)
{
loginfo = crTable.LogOnIn fo;
loginfo.Connect ionInfo = coninfo;
crTable.ApplyLo gOnInfo(loginfo );
}
//rpt.SetDatabase Logon("TCMS_DAT A","SOCOOL","TC MS","TCMS_DATA" );
rpt.SetParamete rValue("sDispla yLabel","Header ");
rpt.SetParamete rValue("STABLEN AME","MASTERPHY S");
rpt.SetParamete rValue("NPKID", Convert.ToInt16 ("3664"));
CREP.ReportSour ce=rpt;
--------------
cOULD YOU PLEASE TELL ME THE MISTAKE I MADE.
With thanks
Raghu
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
am using crystal report in my c#.net
The report was initially designed with the RDO Connection and uses the
stroed proc,This sp requires 4 parameters.In my c# web app , i simply
included the report(.rpt) file and made an object for that and am
passing the parameters.Fina lly it gives the error message as,
LOGON FAILED.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details:
CrystalDecision s.CrystalReport s.Engine.LogOnE xception: Logon failed.
--------------------My code----------------
rpt_proc_auditl og rpt=new rpt_proc_auditl og();
TableLogOnInfo loginfo=new TableLogOnInfo( );
ConnectionInfo coninfo=new ConnectionInfo( );
Database crDatabase;
Tables crTables;
//Table crTable;
crDatabase=rpt. Database;
coninfo.ServerN ame="TCMS";
coninfo.UserID= "TCMS_DATA" ;
coninfo.Passwor d="SOCOOL";
coninfo.Databas eName ="TCMS_DATA" ;
crDatabase=rpt. Database;
crTables=crData base.Tables;
foreach(Crystal Decisions.Cryst alReports.Engin e.Table crTable in
crTables)
{
loginfo = crTable.LogOnIn fo;
loginfo.Connect ionInfo = coninfo;
crTable.ApplyLo gOnInfo(loginfo );
}
//rpt.SetDatabase Logon("TCMS_DAT A","SOCOOL","TC MS","TCMS_DATA" );
rpt.SetParamete rValue("sDispla yLabel","Header ");
rpt.SetParamete rValue("STABLEN AME","MASTERPHY S");
rpt.SetParamete rValue("NPKID", Convert.ToInt16 ("3664"));
CREP.ReportSour ce=rpt;
--------------
cOULD YOU PLEASE TELL ME THE MISTAKE I MADE.
With thanks
Raghu
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Comment