ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Web.Viewer Assembly / GrapeCity.ActiveReports.Aspnetcore.Viewer Namespace / ReportingSettings Class / UseCodeBasedSectionReports Method
An System.Reflection.Assembly object containing the code-based reports.
A System.String value indicating the default namespace used to locate the reports within the assembly.
Example

In This Topic
UseCodeBasedSectionReports Method (ReportingSettings)
In This Topic
Uses the code-based reports that are stored in the assembly.
Syntax
'Declaration
 
Public Sub UseCodeBasedSectionReports( _
   ByVal assembly As Assembly, _
   ByVal defaultNamespace As String _
) 
 

Parameters

assembly
An System.Reflection.Assembly object containing the code-based reports.
defaultNamespace
A System.String value indicating the default namespace used to locate the reports within the assembly.
Example
var assembly = typeof(SomeReportClass).Assembly;
            
app.UseReporting(settings =>
{
	settings.UseCodeBasedSectionReports(assembly, "MyReports");
});
See Also