MESCIUS.ActiveReports.Web.Viewer Assembly / GrapeCity.ActiveReports.Web.Viewer Namespace / ReportViewerConfiguration 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 (ReportViewerConfiguration)
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.UseReportViewer(config =>
{
   config.UseCodeBasedSectionReports(assembly, "MyReports");
});
See Also