# How to Pass Culture to the Telerik Reporting REST Service from the Report Viewer

## Environment

<table>
	<tbody>
		<tr>
			<td>Product</td>
			<td>Progress® Telerik® Reporting</td>
		</tr>
		<tr>
			<td>Report Viewers</td>
			<td>HTML5-based, WPF, WinForms</td>
		</tr>
	</tbody>
</table>

## Description

The reports are rendered with the culture of the REST Service. If you need to request a report with specific culture from the Report Viewer, you may use the following approaches.

## Solution

### WPF and WinForms Report Viewers

You may pass the culture to the Telerik Reporting REST Service in the [RenderingBegin event of the WPF/Winforms Viewer](https://www.telerik.com/products/reporting/documentation/api/telerik.reportviewer.wpf.reportviewer#Telerik_ReportViewer_Wpf_ReportViewer_RenderingBegin). The argument [Telerik.ReportViewer.Common.RenderingBeginEventArgs](https://www.telerik.com/products/reporting/documentation/api/telerik.reportviewer.common.renderingbegineventargs) *args* has a [DeviceInfo](https://www.telerik.com/products/reporting/documentation/api/telerik.reportviewer.common.renderingbegineventargs#collapsible-Telerik_ReportViewer_Common_RenderingBeginEventArgs_DeviceInfo) property, where you may set the new culture with a code like:

```CSharp
private void ReportViewer1_RenderingBegin(object sender, Telerik.ReportViewer.Common.RenderingBeginEventArgs args)
{
    string culture = "yourCulture";
    args.DeviceInfo["CurrentCulture"] = culture;
    args.DeviceInfo["CurrentUICulture"] = culture;
}
```

### HTML5-based Report Viewers

The HTML5-based report viewers also have a [renderingBegin(e, args) event](https://www.telerik.com/products/reporting/documentation/api/telerik.reportviewer.common.renderingbegineventargs) with second argument(*args*) that has a **deviceInfo** property that may be used to pass the culture to the report. For example:

```js
    renderingBegin(e, { deviceInfo }) {
        const culture = "yourCulture"
        deviceInfo["CurrentCulture"] = culture;
        deviceInfo["CurrentUICulture"] = culture;
    }
```

## Notes

You need to have the [Report localized](https://www.telerik.com/products/reporting/documentation/globalization/localization) for the corresponding "yourCulture".

Another approach you may use is through a [custom User Function](https://www.telerik.com/products/reporting/documentation/designing-reports/connecting-to-data/expressions/extending-expressions/user-functions) - see the article section [Centralizing the localization of reports](https://www.telerik.com/products/reporting/documentation/globalization/localization#centralizing-the-localization-of-reports) for details.
