We have a Date and Time on the footer of each report. Our server is in US and our clients are based in Ireland. How can I manage to display client local time on the bottom of the report when the report is being generated or exported to RTF or PDF.
Regards,
1 Answer, 1 is accepted
0
Steve
Telerik team
answered on 23 Sep 2008, 02:51 PM
Hi David,
Generally you can do this by hard coding the culture for the Textbox item showing the datetime info.
In a more global aspect, this is also possible when the user opens the report with IE. Then we can get the UserLanguages that he has from the browser using the HttpRequest object and set the respective language i.e.
if (Request.UserLanguages.Length > 0)
{
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(Request.UserLanguages[0]);
}