1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
//Rapport principale
RapportAction = new ReportDocument();
string reportPath = Server.MapPath("~/Crystal/RDPrincipal.rpt");
string xmlDataSet = Server.MapPath("~/App_Code/Dataset/MesRDs.xsd");
RapportAction.Load(reportPath);
DataSet dataSet = new DataSet();
dataSet.ReadXmlSchema(xmlDataSet);
dataSet = myFac.FillDataSet(dataSet, InitRequeteRD());
//Sous-etat NonConf
string reportPathNC = Server.MapPath("~/Crystal/NonConformite.rpt");
string xmlDataSetNC = Server.MapPath("~/App_Code/Dataset/MesNCs.xsd");
DataSet dataSetNC = new DataSet();
dataSetNC.ReadXmlSchema(xmlDataSetNC);
dataSetNC = myFac.FillDataSet(dataSetNC, InitNonConf());
RapportAction.OpenSubreport(reportPathNC).SetDataSource(dataSetNC);
RapportAction.SetDataSource(dataSet);
crv.ReportSource = RapportAction; |
Partager