Hello All,
I am new to Telerik, please excuse me if I'm asking anything obvious.
I am trying to test if localization is working for PDF exported programatically from Telerik Report template created through Visual Studio Report Designer. I set browser's language to Marathi (culture code - mr). Below is my code through which PDF is exported.
public ActionResult DownloadSamplePDFReport ()
{
Telerik.Reporting.Processing.ReportProcessor reportProcessor =
new Telerik.Reporting.Processing.ReportProcessor();
System.Collections.Hashtable deviceInfo =
new System.Collections.Hashtable();
Telerik.Reporting.TypeReportSource typeReportSource =
new Telerik.Reporting.TypeReportSource();
typeReportSource.TypeName = typeof(SampleReport).AssemblyQualifiedName;
Telerik.Reporting.Processing.RenderingResult result =
reportProcessor.RenderReport("PDF", typeReportSource, deviceInfo);
byte[] fileBytes = result.DocumentBytes;
string fileName = "Output.pdf";
return File(fileBytes, MediaTypeNames.Application.Octet, fileName);
}
I have created resource file named SampleReport.mr.resx which contains localized strings for Marathi language. Still output PDF contains default strings instead of localized one. Please help me resolved this issue.
Thanks,
Tejas Sutar
Hi,
We have a web application stateless, to pass the lang, all of the url of application are in the format (/xx/api/controller (xx = fr | nl | ...) (and we have a "filter" to change the CurrentUICulture based on this).
We try to use the Html.TelerikReporting().ReportViewer() (Asp.net Mvc ReportViewer) but we can not pass the lang from the client to the server side, the url of your service is like /api/reports/** and we can not change this or alter this to add parameter), thus how to pass the language ?
<globalization culture="auto" uiCulture=auto” /> is not viable because the client can change at any time the language.
-----
I have even a badder case, for one report, the language is a report parameter for a pratical reason ! But you can not change the language in NeedDataSource, because it is too late, but before InitializeComponent, it is too early because no parameters ? How do to that ?
I googled, i searched on the forum, but nothing ?!. I was so easy with web form because we can intercept the creation of the report but here i do not find the way to intercept the creation and alter the culture ?
Thanks for any help.
I am working with telerik reporting in pdf there is something I do not want to use is the page to print the pdf .. I just want the page where the pdf is displayed there is the image
var reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
var typeReportSource = new Telerik.Reporting.TypeReportSource();
// reportToExport is the Assembly Qualified Name of the report
typeReportSource.TypeName = typeof(Reports.Report1).AssemblyQualifiedName;
var deviceInfo = new System.Collections.Hashtable();
deviceInfo["JavaScript"] = "this.print({bUI: true, bSilent: false, bShrinkToFit: true});";
var result = reportProcessor.RenderReport("PDF", typeReportSource, deviceInfo);
HttpContext.Response.AddHeader("content-disposition", "inline; filename=Ciudadano.pdf");
return File(result.DocumentBytes, "application/pdf");
Hi Guys,
I have a report with two Lists. One for text fields, other for images. These lists are displayed side by side. The problem ocurrs with the Text List. It create spaces between texts to make the size equals to Image List. Then, if the image list, have only 2 images, the text list not have space. If I have more than 3 images, the texts will increase spaces between text fields.
Atacched files can explain more.
How can I keep the text List with the same height,regardless of how many images have in Images List ?

Hello,
I'm completely new in Telerik reporting, I'm trying it now :)
I'd like do something basic (I think). I have an ASP.NET MVC 5 application. A button on a page, I'd like with a complex object created in an action use it as report data source. I read the documentation, around the web and the sample in the demo folder but it's still not clear to me.
How link report designer to the complex object at design time and at runtime ? Do you have a real example ? A clear doc ? or a good explanation ? ;-)
Thanks,
Hi guys,
There is a way to display these warning messages when creating a report in runtime?
I´m building a report layout 100% at runtime. Some times, some elements are not displayed and I´m not sure if the problem is related to layout or other things.
Hi Guys,
It´s possible to make the height property of PageHeaderSection to adjust to the height of your content panels?
And, I can´t adjust the height manual, because when I create a panel, I don´t know the height of this panel.
Regards,
I have a ASP.NET application that uses a report viewer to generate a multi page page single report. The client wants each page to show in a separate tab when they select export to Excel. I have been doing some research and it seems like the Report Book is the way to go but I am finding the examples and documentation very lacking. I am looking to see if this is even possible with the current configuration.
My Setup:
I have a page with a grid control and allow multi select.
The user can select multiple rows and then click a "print" button
I open a RadWindow with a ReportViewer passing the string of ID's selected from the grid via querystring
On the Page_Load event of the RadWindow I pass the string of ID's to the report parameter
This pulls the selected records from the database and the ReportViewer shows one or more pages depending on the row selection.
This all works perfectly when printing the report. However, exporting to excel from the ReportViewer control results in a single sheet.
Can I move this to a ReportBook? I only have one report (as a class) and it seems like the ReportBook is designed to combine different reports together.
If the ReportBook is not possible is there another solution?
Thanks,
Craig