[]
Uses the code-based reports that are stored in the assembly.
public void UseCodeBasedSectionReports(Assembly assembly, string defaultNamespace)
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. |
var assembly = typeof(SomeReportClass).Assembly;
app.UseReportViewer(config =>
{
config.UseCodeBasedSectionReports(assembly, "MyReports");
});