Telerik Forums
Reporting Forum
1 answer
460 views

Hello,

I have created a Telerik Reporting REST service in order to render "telerik reports" on my Web Application in HTML 5 view. I am currently using the following code on my Web Application page "Report.aspx" to consume the service.

 <script type="text/javascript">
       
        $("#reportViewer1")
            .telerik_ReportViewer({
                serviceUrl: "http://localhost:62355/api/reports/",
                templateUrl: '/ReportViewer/templates/telerikReportViewerTemplate.html',
                reportSource: {
                    report: "VB.ReportLibrary.ReportCatalog, VB.ReportLibrary",
                    parameters: {
                    }
                },

                viewMode: "ViewModes.INTERACTIVE",
                scaleMode: "ScaleModes.SPECIFIC",
                scale: "1.0",
                PersistSession: "true"

            });
       
    </script>

When I open "Report.aspx" it throws an error "Client with ID '[object Object]' not found. Expired" on locally running Service App (See attached image "ServiceError.jpg"). At the same time client side(Web App page Report.aspx) shows an alert message "Gone" (See Image 410_Gone.jpg). ReportsController.vb code is as follows:

Imports Telerik.Reporting.Cache.Interfaces
Imports Telerik.Reporting.Services.Engine
Imports Telerik.Reporting.Services.WebApi
Imports System.IO
Imports System.Web.Http.Cors

'The class name determines the service URL.
'ReportsController class name defines /api/report/ service URL.

<EnableCors("http://localhost:53274", "*", "*")>
Public Class ReportsController
    Inherits ReportsControllerBase

    Shared configurationInstance As Telerik.Reporting.Services.ReportServiceConfiguration

    Shared Sub New()
        'This is the folder that contains the trdx or trdp report definitions
        'In this case this is the Reports folder
        Dim appPath = HttpContext.Current.Server.MapPath("~/")
        Dim reportsPath = Path.Combine(appPath, "Reports")

        'Add resolver for trdx report definitions,
        'then add resolver for class report definitions as fallback resolver;
        'finally create the resolver and use it in the ReportServiceConfiguration instance.
        Dim resolver = New ReportFileResolver(reportsPath) _
                       .AddFallbackResolver(New ReportTypeResolver())

        'Setup the ReportServiceConfiguration
        Dim reportServiceConfiguration As New Telerik.Reporting.Services.ReportServiceConfiguration()
        reportServiceConfiguration.HostAppId = "reportViewer1"
        reportServiceConfiguration.ReportResolver = resolver
        reportServiceConfiguration.Storage = New Telerik.Reporting.Cache.File.FileStorage()
        reportServiceConfiguration.ReportSharingTimeout = 0
        reportServiceConfiguration.ClientSessionTimeout = 9999
        configurationInstance = reportServiceConfiguration
    End Sub

    Public Sub New()
        'Initialize the service configuration

        Me.ReportServiceConfiguration = configurationInstance
    End Sub

    Protected Overrides Function CreateCache() As ICache
        Return Telerik.Reporting.Services.Engine.CacheFactory.CreateFileCache()

    End Function

End Class

 

Can you please provide a solution regarding same. My end goal is to render telerik report on web form page using html 5 report viewer (See expected_result.jpg).

Katia
Telerik team
 answered on 20 Sep 2017
1 answer
412 views

One of our client when to repeat a table on every page of the report. My idea was to use the page header to achieve but I discover that the page header doesn't accept any data-bound items on it.

So my question, does it exist a way to repeat a data-bound item (texbox, table) on every page of the report?

Yana
Telerik team
 answered on 20 Sep 2017
8 answers
768 views

Hi,

I am using Telerik Reporting Q2 2015 with ASP.net MVC ReportViewer (UI for ASP.net MVC). In this I am not able to disable cache at server side, can you please share the option to disable cache from both client & server side.

 This will help me to pull the report every time from database & share the update data in the report.

 

-thank you

-nm

Katia
Telerik team
 answered on 20 Sep 2017
4 answers
570 views
Quick Question, when I create parameters that contain multiple values the filter always displays as a list box. Is there a way to have the filter be a dropbox rather then having it display multiple items as a list box does?

Katia
Telerik team
 answered on 19 Sep 2017
1 answer
417 views

Hi,

Please help me to get why the below binding - Height of PageHeaderSection - returns the false value on all pages. On first page it should be 2.5 inches, on all others - 1 inch, but 1 inch on all pages.

Property path     Expression

Height               =IIf(PageNumber = 1, "2.5in", "1in")

Thank you

Todor
Telerik team
 answered on 19 Sep 2017
7 answers
1.0K+ views
Hi,

I've followed this guide: http://www.telerik.com/help/reporting/telerik-reporting-rest-host-http-service-using-web-hosting.html in order to host the telerik reporting service. When i run http://localhost:[portnumber]/api/reports/formats i get a valid response.

When i try to run the html5 viewer i get a black line and no reports showing.

After examining the network i can see that the client posts to localhost/api/reports/clients which returns a clientId, then it posts to localhost/api/reports/clients/{id from previous call}/parameters which returns a 404 not found (standard IIS not found page).


Any suggestions ?

saleng
Top achievements
Rank 1
 answered on 18 Sep 2017
3 answers
154 views
Hi,

I have an issue. I would need to be able to select the type of export before generating the report. I use C# in visual studio 2008 and I am programming a desktop application. 
This means I have to select the export type and the path in a previous panel and then I have to press "generate" button in that panel. Telerik reporting would inherit these parameters and would generate the report by itself without pressing the button export in the reporting viewing. 
I found this thread  LINK, but it is dated in May 2011.
It is practically my same concern. After almost 2 years, is it already supported?

Thanks in advance.


Katia
Telerik team
 answered on 18 Sep 2017
4 answers
406 views

Hi,

Is there any option to create a stylesheet for trdx files. The idea is to have a common place for common settings such as font-size font weight, font family, background color. border size etc for all reports.

 

Regards

Devesh

Katia
Telerik team
 answered on 18 Sep 2017
11 answers
772 views
I just "upgraded" to Reporting Q2 2012 last week and have spent the past few hours trying to get my reports working again (the upgrade wizard didn't fully upgrade the reports for some reason, so I had to rebuild them). I finally got my main reports figured out, but haven't been able to determine what to do to bind subreports. For example, I have an invoice report that has a subreport in the Details section that I use to display line items. I need to bind the main report and subreport to an in-memory dataset - the dataset contains two tables, a header table and an items table. In the previous Reporting version (Q1 2012), I was able to do the following to bind the report and subreport:

Quote tst = new Quote(); //Quote is the main report
Telerik.Reporting.ObjectDataSource odsHeader = (Telerik.Reporting.ObjectDataSource)tst.DataSource;
odsHeader.DataSource = cdtsQuote;
odsHeader.DataMember = "Header";
 
Telerik.Reporting.SubReport itemDetail = (Telerik.Reporting.SubReport)tst.Items.Find("srItemDetail", true)[0];
Telerik.Reporting.ObjectDataSource odsItems = (Telerik.Reporting.ObjectDataSource)itemDetail.ReportSource.DataSource;
odsItems.DataSource = cdtsQuote;
odsItems.DataMember = "OrderItems";

In the new version, the SubReport object's ReportSource has changed, so it doesn't have a DataSource property anymore. So, how do I go about setting the datasource? If I try setting the subreport's datasource via SubReport.Report.DataSource, it ends up re-setting the datasource of the master report, which causes even more problems.

Any ideas on how to accomplish this?
Katia
Telerik team
 answered on 18 Sep 2017
1 answer
209 views

Hi,

This is the first time that I will work with , the company has this product and they request me to develop the following. So  asking about the advice of which component is the best to use.

This is the situation: I'm going to run a process to get all the data that I need, once the process has finished I have to create multiple PDF reports with tables and graphics and it has to be programmatically so there will be no UI.

The company has not report designer but ¿is it possible to define the format of the table by code?

Thanks for your opinion.

Denis

Todor
Telerik team
 answered on 15 Sep 2017
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?