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
var instanceReportSource =
new
Telerik.Reporting.InstanceReportSource();
instanceReportSource.ReportDocument =
new
TrackingReport();
instanceReportSource.Parameters.Add(
"ReceiptId"
, ReceiptId);
this
.ReportViewer1.ReportSource = instanceReportSource;
@using Telerik.Reporting.Examples.CSharp
@{
ViewBag.Title = "Tracking Report";
Layout = null;
}
<
meta
name
=
"viewport"
content
=
"width=device-width, initial-scale=1, maximum-scale=1"
/>
<
link
href
=
"~/Content/css/font-awesome/css/font-awesome.css"
rel
=
"stylesheet"
/>
<
script
src
=
"http://code.jquery.com/jquery-1.9.1.min.js"
></
script
>
<
link
href
=
"~/Content/kendo/kendo.common.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"~/Content/kendo/kendo.blueopal.min.css"
rel
=
"stylesheet"
/>
<!--kendo.all.min.js can be used as well instead of kendo.web.min.js and kendo.mobile.min.js-->
<
script
src
=
"~/Scripts/kendo/kendo.web.min.js"
></
script
>
<
style
>
#reportViewer1 {
left: 5px;
right: 5px;
top: 40px;
bottom: 5px;
overflow: hidden;
font-family: Verdana, Arial;
}
</
style
>
<
link
href
=
"~/ReportViewer/styles/telerikReportViewer-8.2.14.1204.css"
rel
=
"stylesheet"
/>
<
script
src
=
"http://code.jquery.com/jquery-1.9.1.min.js"
></
script
>
<
script
src
=
"~/ReportViewer/js/telerikReportViewer-8.2.14.1204.js"
></
script
>
<
div
class
=
"panel panel-default"
>
<
div
class
=
"panel-body"
>
<
div
class
=
"form-horizontal"
>
<
div
id
=
"invoiceIdSelector"
>
<
label
for
=
"invoiceId"
>Invoices</
label
>
<
select
id
=
"invoiceId"
title
=
"Select the Invoice ID"
>
<
option
value
=
"IN-0015"
>Invoice 1</
option
>
<
option
value
=
"IN-1015"
>Invoice 2</
option
>
<
option
value
=
"IN-2015"
>Invoice 3</
option
>
</
select
>
</
div
>
<
div
id
=
"ReceiptNumber"
>
<
label
for
=
"receiptNumber"
>ReceiptNumber</
label
>
<
select
id
=
"receiptNumber"
title
=
"Select the receipt number"
>
<
option
value
=
"RC-9022015"
selected
=
"selected"
>Receipt Number 1</
option
>
<
option
value
=
"RC-9022016"
>Receipt Number 2</
option
>
<
option
value
=
"RC-9022017"
>Receipt Number 3</
option
>
</
select
>
</
div
>
<
div
class
=
"row padding"
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
>
</
div
>
</
div
>
<
div
class
=
"row padding"
>
<
div
class
=
"col-md-12 text-center "
>
<
button
class
=
"primary-button"
type
=
"button"
onclick
=
"GenerateReport()"
>Generate Report</
button
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
id
=
"reportViewer1"
>
loading...
</
div
>
<
script
src
=
"http://code.jquery.com/jquery-1.9.1.min.js"
></
script
>
<
script
>
$(document).ready(function () {
$("#reportViewer1").telerik_ReportViewer({
serviceUrl: "../api/reports/",
templateUrl: '../ReportViewer/templates/telerikReportViewerTemplate-8.2.14.1204.html',
reportSource: {
report: "Telerik.Reporting.Examples.CSharp.TrackingReport, FITS.Web.Reports",
parameters: { ReceiptNumber: $('#receiptNumber option:selected').val() }
},
viewMode: telerikReportViewer.ViewModes.INTERACTIVE,
scaleMode: telerikReportViewer.ScaleModes.SPECIFIC,
scale: 1.0,
ready: function () {
this.refreshReport();
}
});
});
function GenerateReport()
{
var receiptNumber = $("#receiptNumber option:selected").val();
var viewer = $("#reportViewer1").data("telerik_ReportViewer");
$.ajax({
type: "POST",
url: '/Common/GetReport',
content: "application/json; charset=utf-8",
dataType: "json",
data: { ReceiptNumber: receiptNumber },
traditional: true,
success: function (data) {
if (data.Result == "SUCCESS") {
viewer.reportSource(data);
viewer.refreshReport();
}
},
error: function (xhr, textStatus, errorThrown) {
}
});
}
</
script
>
<
script
src
=
"~/ReportViewer/js/telerikReportViewer-8.2.14.1204.js"
></
script
>
<
script
src
=
"~/Scripts/kendo/kendo.web.min.js"
></
script
>