- Home
- Forum
- Report Platform
- How to setup margins in code ?
For new customers or those with general reporting questions, we recommend contacting our support team at https://support.boldreports.com/, which is a separate brand created by Syncfusion� for its reporting solutions. Our team will be happy to assist you with any questions you may have.
Thank you for choosing Syncfusion� for your reporting needs.
How to setup margins in code ?
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.
|
|
Attachment: Blazor_server_App_93ba9b16.zip
- 2 Replies
- 3 Participants
- Marked answer
-
BJ Ben Junior
- Mar 7, 2023 11:10 PM UTC
- Mar 14, 2023 03:02 PM UTC