Telerik Forums
Reporting Forum
1 answer
456 views

I created a report in the latest standalone report designer, and saved it as a TRDX

I then load it through a REST API using a ReportController, and am told the schema is old. 

See screenshots.

What gives?

Katia
Telerik team
 answered on 19 Aug 2016
1 answer
199 views

Hi,

I Try since 2 day to make working a Line graph in a report !

I don't understand HOW IT WORK...

I was thinking that would be simple on reading documentation (http://docs.telerik.com/reporting/graphhowtocreategraphwithcolumnandlineseries and others docs) but..... it is not.

 

See in screen shots attached the report Design, the Datasource during execution, ........ and the Result !?

I don't understand how it work !

I have a similar graph in RadthmlChart and it work with the same data.... Why doesn't work in reporting graph ??

 

I expect a result like Telerik_Report_Graph_Result_ok.png

THANK YOU FOR YOUR HELP

 

Katia
Telerik team
 answered on 18 Aug 2016
2 answers
313 views

Hi,

As i see in HTML5, i can user ObjectDataSource for binding data in Report. ObjectDataSource has method like SelectMethod, SelectCountMethod, EnablePaging which i used in ASP.net to bring data partially. is it not possible to bring 50 rows first time & in the scroll next 50 row and so on?

Please let me know.it is urgent

Best Regards

sabbir

 

 

 

Katia
Telerik team
 answered on 18 Aug 2016
1 answer
256 views

Hello

I use this way HTML5 Viewer in AngularJS project in my .NET4, AngularJS project to print telerik reports

the issue is that in some cases when I click print, I want to skip the report viewer screen and jump to print preview screen 

is that possible ??

used code in view.html

$("#reportViewer1").telerik_ReportViewer({
               error: function (e, args) {
                   alert('Error from report directive:' + args);
               },
               reportSource: {
                   report: 'reportname',
               },
               serviceUrl: '/api/reports/',
               
               viewMode: 'PRINT_PREVIEW',
               scaleMode: 'FIT_PAGE_WIDTH',
               scale: 1.0,

 

and used code in reportscontroller.cs

var reportsPath = HttpContext.Current.Server.MapPath("~/");
 
        //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.
        var resolver = new ReportFileResolver(reportsPath)
            .AddFallbackResolver(new ReportTypeResolver());
 
        //Setup the ReportServiceConfiguration
        configurationInstance = new ReportServiceConfiguration
        {
            HostAppId = "Html5AppAJS",
            Storage = new FileStorage(),
            ReportResolver = resolver,
            // ReportSharingTimeout = 0,
            // ClientSessionTimeout = 15,
        };

 

Thanks in advance 

 

Stef
Telerik team
 answered on 18 Aug 2016
1 answer
93 views


I created the report by Telerik Report Design where he consumes a database view and displays the report. Opening the file and clicking preview the report appears.

When I call the web page connection error report.

As I seto the connection to the SQL DataSource through my linking controller with my data sources que with are my command que is in the report?
Stef
Telerik team
 answered on 18 Aug 2016
3 answers
75 views

public static class MyUserFunctions 

{

     public static string Greet(string name)

    {

        return string.Format("Hello, {0}", name);

    }

}

 

Report Designer (standalone), preview is ok.

but programmatic-exporting-report with the template is fail, can not find the function.

how can I resolve the issue?

Stef
Telerik team
 answered on 18 Aug 2016
7 answers
131 views

I have a report that is a bar chart, which I created within VS 2013. I added a data source to the report in the report designer so that I could preview the report. Now I would like to use the report in an asp.net page. I need to be able to retrieve a data set from a web service and assign that to the report as a data source. When I run the report, it ignores the data source I'm trying to assign and always displays the results from the data I tested with.

I have tried setting the data source of the report directly. That doesn't work. I have tried using an objectdatasource. That doesn't work. How do I get the report to dynamically display?

Here is a sample of the code I'm using:

 

     Dim oReportSource As New Telerik.Reporting.InstanceReportSource
     Dim oReport As New ChartReport     
        Dim objectDataSource As New Telerik.Reporting.ObjectDataSource()
    
        Dim ds As New DataSet
        Dim eHCD As New UploadDownload.eHCDReportBroker.eHCDReportBroker

        ClearCache()
        ' ds = eHCD.GetEHCDFilesByPMID(mySession.pmsId)

        'oReport.ReportParameters("pld_file_id").Value = 3784120

        'oReport.DataSource = ds.Tables(0).Select("xmt_typ=" & ddlFileType.SelectedValue.ToString)
        ds = eHCD.GetEHCDCountsByPLDID(pld_file_id, IIf(ddlFileType.SelectedValue = 3, "T", "P"))
        ds.DataSetName = "SqlDataSource1"
        objectDataSource.DataSource = ds

        'oReport.DataSource = objectDataSource
        oReport.DataSource = ds


        ReportViewer1.Visible = True
        oReportSource.ReportDocument = oReport
        ReportViewer1.ReportSource = oReportSource
        Me.ReportViewer1.DataBind()
        ReportViewer1.RefreshData()
        ReportViewer1.RefreshReport()

 

 

Craig
Top achievements
Rank 1
 answered on 17 Aug 2016
3 answers
120 views

When there are multiple Crosstabs on a single report, and you simply want to add an additional column to the Crosstab, ALL other Crosstabs on the report cease to function correctly again unless the crosstab causing the issue is removed, and re-added once again (or you remove the column you are attempting to add).  In this scenario, I want to add a "calculated column" to the Crosstab which displays whether or not "a question was answered".  It works absolutely fine in the first cross tab (see the Designer screen shots), however, attempting to do the exact same steps on a 2nd Crosstab causes the report to be unreadable.

 

Katia
Telerik team
 answered on 16 Aug 2016
5 answers
284 views

Hi,
I have a report that shows eg. Company and department names, I have built a filter by both of these to say

Company in Company parameter
and
Department in Department parameter

Where the Company and Department parameters are multi-value and are built from a datasource. Everything works just fine...as long as at least one company and department value are selected in the filter boxes ie. it is always filtering on these fields.

How do I get the report to display everything when nothing is selected in the filter boxes?

Al
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 16 Aug 2016
3 answers
108 views

Hi, I want to Show logo on kendo chart, So that When We export chart to pdf, then it should be with our logo. I need help?

 

<div kendo-chart="vm.chart"
                 k-options="vm.chartOptions"
                 k-data-source="vm.chartOptions.datasource">
            </div>

 

This is Export button Click Code:

  vm.saveAsPdf = function (event) {
            var elem ;
            if (navigator.userAgent.indexOf("Chrome") !== -1) {
                elem = event.toElement;
            }
            else {
                elem = event.currentTarget;
            }
            //$(elem).parent().next().find('.k-chart').getKendoChart().saveAsPDF();
            var chart = $(".k-chart").getKendoChart();
            title: {
                    text: "Site Visitors Stats /thousands/"
            }
            var fileName = $(elem).closest('li').children().find('.ng-binding').text().trim();
            chart.exportPDF({ paperSize: "auto", margin: { left: "1cm", top: "1cm", right: "1cm", bottom: "1cm" } }).done(function (data) {
                kendo.saveAs({
                    dataURI: data,
                    fileName: fileName + ".pdf"
                });
            });
        }

Stef
Telerik team
 answered on 16 Aug 2016
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?