[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Web.Viewer.ReportViewerConfiguration.UseCodeBasedSectionReports

UseCodeBasedSectionReports Method

UseCodeBasedSectionReports(Assembly, string)

Uses the code-based reports that are stored in the assembly.

Declaration
public void UseCodeBasedSectionReports(Assembly assembly, string defaultNamespace)
Parameters
Type Name Description
Assembly assembly

An Assembly object containing the code-based reports.

string defaultNamespace

A string value indicating the default namespace used to locate the reports within the assembly.

Examples
var assembly = typeof(SomeReportClass).Assembly;

app.UseReportViewer(config =>
{
   config.UseCodeBasedSectionReports(assembly, "MyReports");
});