Telerik Forums
Reporting Forum
7 answers
185 views

Hi there,

I have a report with 3 filter, date1, date2 and driver.
The report parameter driver is set to multivalue.

How can I set the report so that each selected driver
gets its own table in the report and is displayed on a separate page?

Example:
In the report, 3 drivers were selected.
So there are 3 tables in the report each on a DINA4 page.

---
Can I realize this with a ReportViewer or should I better take a ReportBook?

Is there an example project for download?

 

Best regards

 

Simon

Simon
Top achievements
Rank 1
 answered on 08 Nov 2019
6 answers
3.0K+ views

In my report I'm using 2 data sources: webServiceDataSource and jsonDataSource. The main DataSource for the report is webServiceDataSource. I'm using jsonDataSource just for storing some report meta data and I want to read this jsonDataSource source from c# code.

Part of my code:

Telerik.Reporting.Report report = ... - (it's report object)

var dataSource = report.DataSource;

We have access to DataSource property. But, we don't have access to DataSources collection property in code. I tried to use DataSources property in Watch window(Visual Studio 2019), it is now showing on intellisense, but if you write DataSources property manually then it works.

Question is how can I read DataSources collection property and get jsonDataSource programmatically?

Todor
Telerik team
 answered on 07 Nov 2019
1 answer
474 views

 

When I try to alternate row color on a table on a report I use the Conditional Formatting =RowNumber()%2

When the report runs I get the error “Aggregate node ‘LeafNumber(Const(RowNumber))’ not found.

José Miguel Herrera G
Top achievements
Rank 1
 answered on 07 Nov 2019
5 answers
848 views
Is it possible to generate data on a button clicked and put that data inside a report which has a pre-defined design? I am using asp.net mvc, any guides or demo I could use?
Aubrey Ivan
Top achievements
Rank 1
 answered on 07 Nov 2019
2 answers
354 views

I'm always getting an "invalid format" exception when using the following header in a web service data source as parameter:

Authorization="Bearer testeXAMpleKV1QILCJhbPlkIiJIUzI2NiIsImdpZCI6Im.893PSJ9eyJpc3MioiJzc4p3dCIsIkN1YiI6ImNiYjhkOWQ1LTMxYjYtNDJiNS3hYjZmLWI0NDliYThlNmNwNyIsImlhdCI6MTa3MTY4MjUwOSviZ1hwI56xNTcxNjkzMz25LcJuYW1lIjoiYvRtaW3iLCkwcmVmZXJyZWRfdXNlcm5hbWUiOiJhZG1pkiIsInJvbGVzIjpbIkRhdGFSZWFkZXIiLCqBtG1ebmlzdEJhdG9yIiwiRGF0YVdyaXRlciIsIlrhc2tSZWFkZXIiLCJUYXNrV3JsdGVyIiwiUmVwb3J0UmVhZGVyIiwzUmVwb3J0V3JpdGVyIikiVXNlolJlYWRlciIsIlVzZpJXcnl0zXIiXSwiTGFuZ3VhZ2UiOhJmcl9DSCi9XfywW.w8OpuvK7H9lr0hnEJMVe9UKy27GDjyLpOuInPc"

 

The actual error message: The format of value '="Bearer testeXAMpleKV1QILCJh.....pOuInPc"' is invalid.

 

Any suggestions?

Kevin
Top achievements
Rank 1
 answered on 06 Nov 2019
1 answer
164 views

Hi,

I need to be able to change the datasource for the reporting at runtime.

Currently I am using MySQL not SQL so the method shown does not work

Directcast(report.datasource, Telerik.Reporting.SqlDataSource).connectionstring = "ConnectionString"

All my reports work fine with the MySQL connectors, just need to change the datasource as i'm working with multiple databases.

 

Todor
Telerik team
 answered on 06 Nov 2019
7 answers
375 views

I've had users tell me that the parameters area of the report viewer is no longer clickable on devices running the latest version of Android. This is one description:

"I can open the filter and see everything but clicking is unresponsive.
It's weird though, it will outline the element so it knows that something is being clicked there but it just doesn't select or deselect the element."

Has anyone else run into this issue? Is there a work-around or fix?

Rich
Top achievements
Rank 1
 answered on 05 Nov 2019
14 answers
1.3K+ views

I followed the intructions to add reporting to a new asp.net core website from here: https://docs.telerik.com/reporting/html5-report-viewer-asp-net-core-2

I am using version 12.0.18.125 so I updated my html page to the html below.

When I launch the html page I get a popup saying: "Kendo is not loaded. Make sure that Kendo is included.

If I click ok i see an empty report.

How should I configure kendo? Where is it loading from?

I don't have a script like this: <script src="telerikReportViewer.kendo-11.2.17.913.min.js"></script> 

 

Html:

<!DOCTYPE html> 
<html> 
<head> 
    <meta charset="utf-8" /> 
    <title></title> 
    <script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script> 

    <link href="http://cdn.kendostatic.com/2013.2.918/styles/kendo.common.min.css" rel="stylesheet" /> 
    <link href="http://cdn.kendostatic.com/2013.2.918/styles/kendo.blueopal.min.css" rel="stylesheet" /> 

    <script src="telerikReportViewer.kendo-11.2.17.913.min.js"></script> 
    <script src="/api/reports/resources/js/telerikReportViewer-12.0.18.125.min.js"></script> 

    <style> 
        #reportViewer1 { 
            position: absolute; 
            left: 5px; 
            right: 5px; 
            top: 50px; 
            bottom: 5px; 
            overflow: hidden; 
            font-family: Verdana, Arial; 
        } 
    </style> 

</head> 
<body> 
<div id="reportViewer1"> 
    loading... 
</div> 

<script> 
    $(document).ready(function () { 
        $("#reportViewer1") 
            .telerik_ReportViewer({ 
                serviceUrl: "api/reports/", 
                reportSource: { 
                    //report: "Telerik.Reporting.Examples.CSharp.ReportCatalog, CSharp.ReportLibrary", 
                    report: "Barcodes Report.trdp", 
                    parameters: {} 
                }, 
                viewMode: telerikReportViewer.ViewModes.INTERACTIVE, 
                scaleMode: telerikReportViewer.ScaleModes.SPECIFIC, 
                scale: 1.0, 
            }); 
    }); 
</script> 
</body> 
</html>

 

 

 

 

 

Nasko
Telerik team
 answered on 05 Nov 2019
3 answers
1.0K+ views

I am following this guide -> https://docs.telerik.com/reporting/mvc-report-viewer-extension-embedding

Hi, I am new in telerik reporting and I am getting some errors.

Here is the Scenario:
I created an empty ASP .NET MVC Application and I am trying to output the reportViewer I created. This is what I selected
I chose the sample report definition.
After that it generated 3 files. A ReportsController, a trdp file and a cshtml file

 1. I created a HomeController, and renamed the Action "Index" to "Reports".
 2. I Renamed the cshtml file to "Reports.cshtml" and putted it under the Views/Home Folder.
 3. Then I created a folder under the Controllers folder called "api" so it now looks like this Controllers/api and moved the ReportsController to that "api" folder
 4. I also changed the default route action from "index" -> "reports"


Problem: Whenever I run my program, nothing shows at all. Its just an empty page. What am I doing wrong?

 

Note: I also posted this question here -> https://stackoverflow.com/questions/58600533/telerik-reporting-using-asp-net-mvc

Peter
Telerik team
 answered on 05 Nov 2019
1 answer
811 views
I am using MVC Report Viewer ASP .NET, is it possible to set the objectDataSource? If so how do I go on about it, what's the easiest way to do it? Also, does InstanceReportSource doesnt work anymore for ASP .NET MVC Report Viewer?
Nasko
Telerik team
 answered on 05 Nov 2019
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?