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

Report requiring a login when added as subreport

Status
Not open for further replies.

Tangaroan

Programmer
Joined
Jun 28, 2005
Messages
2
Location
US
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 figured it out. No need to reply
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top