I am using Visual Studio, ASP web pages, with C# with a SQL Server Database and Crystal reports.
I have two reports that run ok on there own. I am trying to combine them by adding one as a subreport to the other. When I do this I get Logon Failed, CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
I am not setting logon information for either of the reports when they run by them selves.
Other then adding the second report as a subreport of the first I am not sure what I need to code to get it to work.
I am new to all of this technology. I have an Oracle background.
Form Code Behind for the single report is:
InitializeComponent();
base.OnInit(e);
oRpt = new Report_Initiative_Overview_Main_Rpt();
//FILL INITIATIVE_OVERVIEW_MAIN DATA SET
Report_Initiative_Overview_Main_CS myComponent = new Report_Initiative_Overview_Main_CS();
StringBuilder SV_Current_Initiative_ID = new StringBuilder(Session["Current_Initative_ID"].ToString());
myComponent.FillDataSet(report_Initiative_Overview_Main_DS1,SV_Current_Initiative_ID.ToString());
//SET THE DATASOURCE FOR THE REPORT
oRpt.SetDataSource (report_Initiative_Overview_Main_DS1);
//SET THE REPORT FOR THE VIEWER
CrystalReportViewer1.ReportSource = oRpt;
Not sure what other information would be relevant.
Any suggestions or places to look.
Dave
I have two reports that run ok on there own. I am trying to combine them by adding one as a subreport to the other. When I do this I get Logon Failed, CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
I am not setting logon information for either of the reports when they run by them selves.
Other then adding the second report as a subreport of the first I am not sure what I need to code to get it to work.
I am new to all of this technology. I have an Oracle background.
Form Code Behind for the single report is:
InitializeComponent();
base.OnInit(e);
oRpt = new Report_Initiative_Overview_Main_Rpt();
//FILL INITIATIVE_OVERVIEW_MAIN DATA SET
Report_Initiative_Overview_Main_CS myComponent = new Report_Initiative_Overview_Main_CS();
StringBuilder SV_Current_Initiative_ID = new StringBuilder(Session["Current_Initative_ID"].ToString());
myComponent.FillDataSet(report_Initiative_Overview_Main_DS1,SV_Current_Initiative_ID.ToString());
//SET THE DATASOURCE FOR THE REPORT
oRpt.SetDataSource (report_Initiative_Overview_Main_DS1);
//SET THE REPORT FOR THE VIEWER
CrystalReportViewer1.ReportSource = oRpt;
Not sure what other information would be relevant.
Any suggestions or places to look.
Dave