[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Aspnetcore.Viewer.ReportingSettings.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.UseReporting(settings =>
{
	settings.UseCodeBasedSectionReports(assembly, "MyReports");
});