Telerik Forums
Reporting Forum
2 answers
87 views

Hi,

I have a report in which one of the tables uses objectDataSource, while the others use either SQL or Cube data sources.

I followed the docs (http://docs.telerik.com/reporting/standalone-report-designer-extending-configuration), and added necessary assembly references in the ReportDesigner config file. When I open and preview the local trdx report using report designer, I am able to see the table that uses objectDataSource populated correctly.

However, when I include the report in my Web Api application, and render it in HTML5 report viewer (http://docs.telerik.com/reporting/html5-report-viewer), the table doesn't show any data, while the other tables that use SQL and Cube data sources are populated correctly.

The reason I can think of is the assembly references weren't loaded when the report is rendered in HTML5 report viewer in the Web Api application. But I am not sure what needs to be done to overcome it. Can anyone please shed any light on this? Many thanks.

 

 

 

Xi
Top achievements
Rank 1
 answered on 01 Sep 2017
4 answers
397 views

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);

 

Pawel
Top achievements
Rank 1
 answered on 01 Sep 2017
1 answer
220 views

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...

Nasko
Telerik team
 answered on 01 Sep 2017
1 answer
691 views

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

Joe
Top achievements
Rank 1
 answered on 30 Aug 2017
1 answer
297 views

 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?

 

 

Peter
Telerik team
 answered on 30 Aug 2017
1 answer
179 views

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

Todor
Telerik team
 answered on 29 Aug 2017
3 answers
166 views

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?

Nasko
Telerik team
 answered on 29 Aug 2017
6 answers
1.6K+ views
Hi.

In a details section in a report I have some data(put into text fields) that I am getting from  one query and a report table where I am getting data from another query.

What I want is to get the report table to always start right below the text fields.

However when the report table is of a certain size it automatically moves to next page leaving a big white gap after textfields. Seems like the report table is always trying to 'keep together. 

How can I get the table to start right after text fields and split over the pages ?.

Thanks

Ole.
Peter
Telerik team
 answered on 28 Aug 2017
1 answer
357 views

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

Ivan Hristov
Telerik team
 answered on 28 Aug 2017
2 answers
1.7K+ views

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 ?




 

Abhishek
Top achievements
Rank 1
 answered on 26 Aug 2017
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?