Crystal Sub report using C#
hi please help,
i'm having a problem making a sub report.
The main report is working fine, but when i add the a sub report to my main report it is asking for Server name, Database name, User name and Password.
please help, how can i load my data for sub report.
This is my current code when i add sub report:
PopulateStockValuesArrayList();
String reportPath = Server.MapPath("CrystalReport.rpt");
ComplaintObjectsReport = new ReportDocument();
ComplaintObjectsReport.Load(reportPath);
ComplaintObjectsReport.SetDataSource(stockValues);
ComplaintObjectsReport.OpenSubreport("Sub-Action").SetDataSource(stockValues2);
CrystalReportViewer1.ReportSource = ComplaintObjectsReport;
thanks in advanced
Gilbert
|