Ejemplo n.º 1
0
        protected override IReportResolver CreateReportResolver()
        {
            //This is the folder that contains the XML (trdx) report definitions.
            var reportsPath = HttpContext.Current.Server.MapPath(@"~/");

            //Resolver for trdx report definitions.
            var reportFileResolver = new ReportFileResolver(reportsPath);

            // Resolver for class report definitions.
            var reportTypeResolver = new ReportTypeResolver();

            // Add the ReportTypeResolver as fallback resolver and
            // return the ReportFileResolver instance.
            return(reportFileResolver.AddFallbackResolver(reportTypeResolver));
        }