ReportFactoryExtensions.Create<TReport> method
namespace: Serenity.Reporting assembly: Serenity.Net.Services
Creates a report for the given report type
public static TReport Create<TReport>(this IReportFactory factory,
Action<TReport> setParams = null, bool validatePermission = true)
where TReport : IReport
| parameter | description |
|---|---|
| TReport | Report type |
| factory | Report factory |
| setParams | Optional callback to initialize params |
| validatePermission | True if the permission for the report should be validated |
Return Value
Report instance
See Also
- class TReport
- interface IReportFactory
- interface IReport
- class ReportFactoryExtensions