If you became a customer of the Syncfusion� Reporting Platform or the Report Viewer, Report Designer, or Report Writer components before October 2019 and have questions related to those products, you can request support through our forum system. However, please note that this support system is only for existing customers who are still using the Syncfusion� Reporting Platform or its components and not for new customers looking for reporting products from Syncfusion�.

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.

Toolbar events

I'm using the ReportViewer inside a Blazor application but I don't find in the documentation the following information:

1) Is it possible to change the default English language to Italian in the toolbar tooltip  or inside the popup showed when you click on the toolbar buttons ?
2) is it possible to handle the export event for instance to Pdf to change the pdf margins, or the landscape or portrait layout or even to cancel the default action and create a pdf document from data ? I tried using the toolbar Page layout button but these setting don't affect the pdf export file

Thanks


3 Replies 1 reply marked as answer

MS Muthuramana Sankaranarayanan Syncfusion Team December 21, 2020 12:58 PM UTC

 
Please find the details for your queries from below table, 
 
Is it possible to change the default English language to Italian in the toolbar tooltip  or inside the popup showed when you click on the toolbar buttons ? 
 
Yes this is possible. We suggest you to follow the below steps to change the locale of Report Viewer component. 
  1. We suggest you to use the below localization script with your Blazor application in the “wwwroot” folder,
 
  1. Now refer this script in “_Host.cshtml” file as like below,
<head>     
 
 
 
<script src="~/scripts/ej.localetexts.it-IT.min.js"></script> 
</head>     
 
  1. Now you can use the ‘locale’ API to set the locale of the Bold Report Viewer component. Hence we suggest you to add the “Locale” report viewer option as like below,
public class BoldReportViewerOptions 
       { 
        public string ReportName { get; set; } 
        public string ServiceURL { get; set; } 
 
        public string Locale { get; set; } 
} 
  1. Now set the locale option value in the Razor page with “it-IT” value as like below,
public async void RenderReportViewer() 
       { 
        viewerOptions.ReportName = "sales-order-detail"; 
        viewerOptions.ServiceURL = "/api/BoldReportsAPI"; 
        viewerOptions.Locale = "it-IT"; 
        await JSRuntime.InvokeVoidAsync("BoldReports.RenderViewer", "report-viewer", viewerOptions); 
    } 
  1. Set the “locale” API at the initialization of the Report Viewer component in the “boldreports-interop.js” file as like shown below,
$("#" + elementID).boldReportViewer({ 
            reportPath: reportViewerOptions.reportName, 
            reportServiceUrl: reportViewerOptions.serviceURL, 
            locale: reportViewerOptions.locale 
        }); 
 
 is it possible to handle the export event for instance to Pdf to change the pdf margins, or the landscape or portrait layout or even to cancel the default action and create a pdf document from data ?  
No, as of now it is not possible to change the pdf margins or change page to landscape or portrait using the export event at run time. Exporting a report is used to export the designed report as it is. 
 
If you want to modify the page size and margins then we suggest you to change this at report design level in the page settings which we have provided in the below documentations. 
  1. Change the paper size of the report,
  1. Change the margins of the report,
 
I tried using the toolbar Page layout button but these setting don't affect the pdf export file 
The page layout settings will be applicable with the print report action only and not for the export report. Exporting a report will export the designed report as it is whereas printing the report actually generates the print layout for the designed report as per the page settings which can be changed using the page layout button. 
 
Please let us know if you have any queries regarding this. 
 
Regards, 
Muthu Ramana S 



Marked as answer

WM Walter Martin December 21, 2020 11:06 PM UTC

Thanks, everything works with your suggestions


MS Muthuramana Sankaranarayanan Syncfusion Team December 22, 2020 08:45 AM UTC

Hi Walter, 

Thanks for your update. 

We are happy to hear that the provided details has helped resolving the reported issue. 
 
Regards, 
Muthu Ramana S 


Loader.
Up arrow icon