I found this link here and it works fine but I was wondered if there is any documentation to setup these values in the
Blazor / BoldReportsApiController ? (Something like this one here for
Asp.Net MVC)
// Method will be called when report is loaded internally to start the layout process with ReportHelper.
[NonAction]
public void OnReportLoaded(ReportViewerOptions reportOption)
{
reportOption.ReportModel.ReportDefinition.Page.BottomMargin = ??????
}
Hi Ben Junior,
Thanks for contacting Bold Reports Support,
We can setup the margin in OnInitReportOptions using ReportSerializer.
BoldReports.RDL.DOM.ReportSerializer reportSerializer = new BoldReports.RDL.DOM.ReportSerializer();
We will share the sample for this by Mar 13, 2023.
Ben Junior,
Sorry for the delay,
If you want to setup the margin in code, you need to add the below code snippet. We have prepared and attached a sample Blazor application for your reference.
|