Hello, my problem is when I try to generate printout in c# app, design in Designer to trap file, the final generated printout looks like scaled in plus.
My target is to get 95 mm x 44 mm label, and this one is designed, in Designer, printout is fine. When I try to print is by below code, label Paper Size looks like scaled. How to set paper size or fix my problem?
Code:
string path = HostingEnvironment.MapPath(@"~/Content/printouts/packageLabel.trdp");
System.Drawing.Printing.PrinterSettings printerSettings = new System.Drawing.Printing.PrinterSettings();
printerSettings.PrinterName = "Bullzip PDF Printer";
System.Drawing.Printing.PrintController standardPrintController = new System.Drawing.Printing.StandardPrintController();
Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
reportProcessor.PrintController = standardPrintController;
UriReportSource reportSource = new UriReportSource();
reportSource.Uri = path;
reportProcessor.PrintReport(reportSource, printerSettings);
I have a web application designed with Telerik ASP.Net AJAX tools. There are many reports in the application being presented to users, these reports were made using Telerik.Reporting assembly about 4 years back. Many of these reports are using HTTP session values to populate some text values. Code used for which is as shown under.
txtUserCodeId.Value = System.Web.HttpContext.Current.Session["BackgroundCode"].ToString();
There is a need now to update these reports with some updates. I have tried to use the HTML5 Report Viewer. I have been able to get it to work, however all the session values being used are now not holding any value and come up with null exception giving errors.
These session values are not report parameters, which I have been able to assign as required. Do I have any options to use session values or alternative methods.
Regards and Thanks...
So, I have a report and a subreport in the same directory. The report runs fine from Report Designer when I click Preview, but when I run the report from within our application, I get an error:
An error has occurred while processing SubReport 'TestsSubReport':
Could not find file 'F:\MAJIQ\Elixir\ABCD\Install\Application\7.2.17221.02\COAReport (Tests Sub Report).trdp'."
Any help is greatly appreciated.
-Joe
Hello,
I have few reports when I am using data tables (like in att1) and everything was working really nice, but then i have upgraded Reporting to R2 2017. The problem is that if there is no Data returned for my table i was using property "NoDataMessage" to display some text (att2). In newest version if i put anything into "NoDataMessage" property it crashes my report with
"Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index"
The only way to make it work is to leave this property empty, or to set it's value to some integer (but it won't be displayed anyway). I do not really want to modify the queries as it was really handy to display Text when there was no data returned from database.
Can anyone help me with this?
Hi,
When I trying to export a report with different search parameter, I've got different result in report viewer, but I've got same result in export to excel.The problem seems to be browser caching. Does telerik reporting have solution for this issue?
regards

I am currently developing a reporting app with Angular. This app is housed in .NET MVC architecture due to the constraints I must work within. In order to keep my data access tier from knowing anything about the reports themselves, I have a separate DatabaseManager that makes my queries and returns the results in a business object. My angular front-end gets the query parameters from the user, makes the rest call to an MVC ApiController.
My question is this: how do I take the business object and display the data in the report within the angular app? I have the angular report viewer in my component html. On the back-end, I can create an instance of the report I made in the designer, set it's DataSource to the business object, and make that the ReportDocument property of an InstanceReportSource. After returning that to the front-end, I am stuck.
How can I get that InstanceReportSource in the report viewer? Am I going about this in the wrong way to begin with?
Hi
I have a dataset containing the following data items
Location, Capacity & utilisation.
What I'm trying to do is have Location down the y Axis and show a stacked bar on the X with Capacity always at 100% and the utilisation shown over it with the actual data value shown as a % next to the bar.
I have gone through the help and docs but cant get what I need to show, For example where is the DataPointValue in 2017 Barchart?
Andy

I am using Telerik report in Visual studio and the structure of my datasource is as below :
<p> public class Consignment<br> {<br> public DeliveryNoteLabels Labels { get; set; }<br> public Details Ddepot { get; set; }<br> public Company Company { get; set; }<br> public Details ODepot { get; set; }<br> public Details CollectionDetails { get; set; }<br> public Details Customer { get; set; }<br> public List<Pallet> Pallets { get; set; }</p><p> }</p>
Consignment is an object bound to the report. I want to print the details of Pallets (list) to either a text box or a table in the existing report. I don't want to bind only the pallets object to the report since I need other properties of the consignment. How do I achieve this ?
Need help. Textbox action (Navigate to Report (object instance)) does not work. Textbox is not clickable on html5 report viewer. It is working on web form report viewer (Same logic on creating the report.).
I'm using a custom report resolver where datasource is from a dataset and the report is from a xml file.
code snippet:
private void AssignSubreportDatasource(global::Telerik.Reporting.Report parent, DataSet ds)
{
var items = parent.Items.Find("textBox14", true); // contains NavigateToReportAction
if (items != null)
{
foreach (var item in items)
{
var sub1 = (((item as global::Telerik.Reporting.TextBox).Action
as global::Telerik.Reporting.NavigateToReportAction).ReportSource
as global::Telerik.Reporting.InstanceReportSource).ReportDocument
as global::Telerik.Reporting.Report;
var objds = sub1.DataSource as global::Telerik.Reporting.ObjectDataSource;
objds.DataSource = ds.Tables[0];
}
}
}
///////
public global::Telerik.Reporting.ReportSource Resolve(string reportId)
{
global::Telerik.Reporting.InstanceReportSource reportSource = new global::Telerik.Reporting.InstanceReportSource();
System.Data.DataSet ds = DeserializeDataset(datafile);
var report = (global::Telerik.Reporting.Report)xmlSerializer.Deserialize(xmlReader);
AssignSubreportDatasource(report, ds); //assigns navigate to subreport datasource
AssignDataSource(report, ds); //assigns inline subreport datasourcereport.DataSource = ds;
report.DataSource = ds;
reportSource.ReportDocument = report;
foreach (var telerikParam in reportSource.ReportDocument.ReportParameters)
{
telerikParam.Value = "0";
}
return reportSource;
}