Telerik Forums
Reporting Forum
0 answers
190 views

Hi,

I'm porting a Silverlight application to Asp Net Core 3.1 Web Api for back end. 

In this SL application I have many reports defined in a Visual Studio project with custom Datasource (using event NeedDatasource).

I can't mix .net core and framework assemblies and report designer in VS works only for framework 4.x projects so I can't re-use same project/dll. Is this correct, there are no ways?

If no, as I understand, I must use the Standalone Report Designer with custom assemblies for custom datasources. These assemblies should be net core or net standard assemblies, or can be also net framework assemblies?

Probably I will have also reports with only SqlDatasource.

I'm new to Standalone Designer, what are the guidelines for developing reports in my situation, for example, put everything (TRDX, Stand Alone Designer, and custom assemblies) in same folder.

How these assembly can read the connection string (from .settings file of Report Designer) ?

How to deploy these TRDX resports on server changing the connection string? About this I read this article: https://www.telerik.com/support/kb/reporting/report-designer/details/deploying-trdx-(xml-report-definition)-that-uses-external-assembly

but I think that link description and page contents doesn't match.

Sorry for long post and many questions.

Thank you very much

Andrea

 

Andrea
Top achievements
Rank 1
Veteran
 asked on 13 May 2020
9 answers
371 views

Hi,

I can not configure the ObjectDatasource anymore.

And when I click OK Visual Studio 2017 restarts.

Please see the attached file.

Best Regards

 

Simon

 

 

Todor
Telerik team
 answered on 13 May 2020
1 answer
152 views
How do I submit a simple demo project where I can't get a simple report to show?
Katia
Telerik team
 answered on 13 May 2020
0 answers
82 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
371 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.8K+ 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
116 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.8K+ 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
196 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.4K+ 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
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?