BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi,
I have the report viewer working in Blazor (with SSRS) and would like the default view to be "print mode".
The documentation here
refers to ASP.Net Core and a razor element, but this does not apply to Blazor.
How is this implemented in Blazor?
Also, are the other attributes (e.g. print-mode, page-settings) in the razor element implemented in Blazor somehow too?
Thanks
Paul
Hi Paul,
Thanks for contacting Bold Reports support.
If you want to view the report in print mode and change the page settings, you need to add the below code in the boldreports-interop.js file.
In boldreports-interop.js // Interop file to render the Bold Report Viewer component with properties. window.BoldReports = { RenderViewer: function (elementID, reportViewerOptions) { $("#" + elementID).boldReportViewer({ reportPath: reportViewerOptions.reportName, reportServiceUrl: reportViewerOptions.serviceURL, printMode: true, pageSettings: { orientation: ej.ReportViewer.Orientation.Landscape, paperSize: ej.ReportViewer.PaperSize.Letter } }); } } |
Please refer to the below documentation for your reference.
Note: If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.
Regards,
Arumugasami M
Thanks.
So in Blazor it would seem that the razor element's attributes in the ASP.Net Core documentation are replaced with JS properties.
Paul,
Yes, In Blazor application, we have to use our properties in the boldreports-interop.js file.