Telerik Forums
Reporting Forum
0 answers
51 views

Used Telerik : silverlight telerik reporting r3 2016

I am using imagebox control for displaying of images in reports.

issue : I found , from some locations when we see a report (telerik reporting silverlight) , Images does not displaying and in printing we have error key not found.in dictionary.

I found If we run the web application from the net(local) all images are displaying and printing also is ok.

 

M
Top achievements
Rank 1
 asked on 13 May 2020
3 answers
305 views

I am including an application with WinForms and .net core, at the same time I want to include telerik reports showing them with ReportViewver in Winforms, This application I am publishing and I run it in Linux and mono, The application opens but at the moment of generating the report ReportViewver indicates the following error:

Gdi32.dll assembly: <unknown assembly> type: <unknown type> member: (null)

Neli
Telerik team
 answered on 13 May 2020
7 answers
1.6K+ views

Im trying to get the Telerik HTML Report viewer to work in an ASP.net web forms app that is named Reports.

It appears the project being named Reports causes issues for the report viewer.

Whenever trying to run the ReportViewer.html, I get the error:    Error loading the report viewer's templates.

(Template = ../api/reports/resources/templates/telerikReportViewerTemplate-html).

The report setup is as vanilla as I can possibly get it.  

I replicated the setup of the viewer in a project with a different name, and it works just fine in that project.

Here's some Code - First time posting, so I hope my code blocks post correctly:

 

Web config:  Same for both projects.

<code>

<location path="Telerik.ReportViewer.axd">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>


  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="WebDAVModule" />
    </modules>
    <!--<handlers>
    <add name="Telerik.ReportViewer.axd_" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=10.2.16.914, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" />
    </handlers>-->
  </system.webServer>

</code>

 

 

ReportViewer.html - This file is in a subfolder named Views in both folders.     Same code in both.   Everything is the same.  Same report file being referenced for both, which both are in the "Reports" subfolder..     Most comments have been removed (for posting) so it isnt so big.

<code>

    <!--kendo.web.min.js or kendo.all.min.js can be used as well instead of the following custom Kendo UI-->
    <script src="../ReportViewer/js/kendo.subset.2015.3.930.min.js"></script>
    <script src="../ReportViewer/js/telerikReportViewer-10.2.16.1025.min.js"></script>

.

.

.

 <script type="text/javascript">
        $(document).ready(function () {
            $("#reportViewer1")
                .telerik_ReportViewer({    
                    serviceUrl: "../api/reports",           
                    // templateUrl: '/ReportViewer/templates/telerikReportViewerTemplate-10.2.16.1025.html',                  
                    reportSource: {
                        // The report can be set to a report file name (trdx report definition)
                        // or CLR type name (report class definition).
                        report: "AnnualItemReport.trdp"
                    },
                    viewMode: telerikReportViewer.ViewModes.INTERACTIVE,            
                    scaleMode: telerikReportViewer.ScaleModes.SPECIFIC,
                    scale: 1.0,
                    ready: function () {                    
                    },
                });
        });
    </script>

</code>

 

Is there something about the project (and project class) being named Reports that is screwing up the Telerik REST service or report viewer?

Karthic
Top achievements
Rank 1
Veteran
 answered on 12 May 2020
1 answer
91 views
URL: https://demos.telerik.com/kendo-ui/numerictextbox/index
In the Chrome browser, after clicking (mousedown) on the field, I can immediately select a number.
But in Firefox I have to click a second time to be able to select number.

Is there a known solution for this problem?
Viktor Tachev
Telerik team
 answered on 12 May 2020
15 answers
3.2K+ views

I have been trying for almost a whole week to get a Telerik report to run.  I'm pretty sure, at this point figuring out nuclear fusion would be easier.  No matter what I do I get the following error:

Cannot access the Reporting REST service. (serviceUrl = '/OmniCareApp/api/reports/'). Make sure the service address is correct and enable CORS if needed. (https://enable-cors.org)

 

I have CORS enabled in my web.config

<httpProtocol>
  <customHeaders>
    <add name="Access-Control-Allow-Origin" value="*" />
  </customHeaders>
</httpProtocol>     

 

I can get this to run in a separate web project, but not when I try and integrate it into my legacy system.  I thought maybe it was because it was a web site and not a web project.  So, I created a web project and got the report to run.  Then I brought over all the legacy piece parts, and back to the above error.  Worst case scenario I can create a separate web site just for the purposes of serving up this one report, but then that's just one more thing I have to maintain.  Not the path I'd like to take.

This should have been as easy as placing the Telerik Report Viewer on a form, telling it where the report was and boom...done!  You guys have complicated the ever loving crap out of this process.  I'm frustrated, and disappointed in this process at the same time.  

At my wits end.  I like your reports.  The designer interface is easy to work with, but I never had these kind of problems with Crystal Reports.  

Where do I go next?  For the love of god don't refer me to the multitude of white papers I've already been thru with a fine tooth comb.  I've also found fiddler to be as useless as hair on nipples.

Doug
Top achievements
Rank 1
 answered on 09 May 2020
0 answers
112 views

Hello,

I have an asp.net webproject including telerik reporting.

In a report there are several report parameters, two with datetime and one with string and multivalue.

In the report parameter with string and multivalue should be load the lastnames of the driver (car driver)

The company has 36 drivers and two of them have the same last name, here "Rick", namely Dennis and Micha Rick.

All driver are shown in the dropdown, except "Dennis Rick".

I don't know why.

Here is the class with its method for the datasource for this report parameter:

namespace ReportLibrary1
{
   public  class MyEmployees
    {
        //Report Parameter Driver LastName
        public object[] GetEmployees()
 
        {
            ResourcesDomainService rdservice = new ResourcesDomainService();
            object[] employees = new object[rdservice.Employees.Count];
 
            employees = rdservice.Employees.Where(x => x.DriverId.Length > 0).OrderBy(x => x.LastName).ToArray();
 
            return employees;
        }
    }
}

 

When I make a breakpoint in the row and go with my mouse pointer over empoyees I can see that all drivers are returned including Dennis Rick.

But in the report "Dennis Rick" is missing in the drodown list.

Have somebody an idea why it is so?

 

Regards

Simon

 

 

 

 

 

 

 

Simon
Top achievements
Rank 1
 asked on 08 May 2020
4 answers
1.2K+ views

How to get first string from splited string?

for example str="xxx-yyy-zzz"

output is "xxx"

Thank you!

Todor
Telerik team
 answered on 08 May 2020
1 answer
130 views

I am running up against an issue where I am unable to debug an MVC App in which I am attempting to render a couple of reports in a controller method. The code in the attached screenshot runs perfectly fine if I build and publish my Web app, but I consistently receive the "Invalid value of report parameter 'ClientId'." error when I attempt to debug the app through Visual Studio.

I am on Telerik.Reporting version 12.0.18.416.

Please advise.

 

Todor
Telerik team
 answered on 07 May 2020
2 answers
274 views

In a cshtml file, I have the following piece of code:

 

                                Telerik.Reporting.UriReportSource uriReportSource = new Telerik.Reporting.UriReportSource();
                                uriReportSource.Uri = "QuotationDetails.trdx";
                                uriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("CultureID", "fr"));
                                uriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("QuotationIDENT", "{{:CurrentQuotation.IDENT}}"));
                                uriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("UNUSED", 15));
                                uriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("ReportsConnectionString", "{{:ReportsConnectionString}}"));

 

In th concerned trdx file, the SqlDataSource is currently set via:

  <DataSources>
    <SqlDataSource ConnectionString="REPORTS" SelectCommand="..." Name="REPORTS" ParameterValues="...">
      <Parameters>
        ...
        </SqlDataSourceParameter>
      </Parameters>
    </SqlDataSource>
  </DataSources>

 

I would like to set the SqlDataSource  ConnectionStringvalue to ReportsConnectionString, but I can't make it work.

 

Any idea ?

 

Best Regards,

 

Jean-Pierre Gervasoni

Neli
Telerik team
 answered on 07 May 2020
1 answer
377 views

I am trying to display a report from Telerik Report Server in my Asp.Net MVC application via the HTML5 ReportViewer.

I am using Stand-alone Report designer and creating parameters which are set to visible. The Parameter area is visible when i view on the Report Server. But when i view the report via HTML5 ReportViewer the parameter area is hidden. I have tried to alter CSS styling but no luck. It looks like the parameters do not exist in the ReportViewer page. 

Below is my jquery calling the ReportViewer

    <div id="reportViewer1" class="k-widget" style="height:100em;">
        loading...
    </div>

    <script type="text/javascript">
        $(document).ready(function () {
            debugger;
            var URL = '@System.Configuration.ConfigurationManager.AppSettings["ReportServerUrl"]';
            var param = @Html.Raw(Model.ReportParameters);
            var rptStr = '@Model.ReportCategory' + '/' + '@Model.ReportName';
            $("#reportViewer1").telerik_ReportViewer({
                reportServer: {
                    url: URL,
                    username: null,
                    password: null
                },
                reportSource: {
                    // The report value should contain the Category and ReportName in the following format
                    // {Category/ReportName}
                    report:rptStr,
                    parameters:param
                },
                parametersAreaVisible: true,
                printMode: telerikReportViewer.PrintModes.FORCE_PDF_FILE,
                     
               
            });
        })

          </script>

Also attached are the my designer view, HTML5 ReportViewer result and ReportServer View. Any pointers towards this would be helpful.

Ujwal
Top achievements
Rank 1
 answered on 04 May 2020
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?