Telerik Forums
Reporting Forum
1 answer
126 views
Are there any samples to accomplish this without Angular? My project is already setup to use kendo.ui and webpack.
Silviya
Telerik team
 answered on 29 Aug 2018
1 answer
479 views

Dear Sir/Madam, 

4 hours search, downloading, trying and can't find the solution to make WPF report viewer works with the latest Telerik version of WPF and Reporting

Framework: 4.7.1

Telerik WPF version: 2018.2.620.45

Telerki Report Version: 12.1.18.620

Basically,  New Blank telerik WPF Project -> All references are added -> Version 2018.2.620.45 (tried both, xaml and noxaml)

- Now Add Telerik Report R2 2018 (Blank)

- Then Add Telerik Report Viewer Window R2 2018

- Select Embedded, Existing Report definition, Type Report Definition, (wait for build to done) ->  Report1

- Finish: In the Log page got this error:

 

Error: Fail to add project reference System.Runtime.InteropServices.COMException (0x80004005): Adding 'TelerikWpfApp6' as a project-to-project reference would cause this project to reference itself. at VSLangProj.References.AddProject(Project pProject) at Telerik.Reporting.Vs.Common.ProjectManager.TryAddProjectReference(Project projectToReference)

 

and when I run the project i got:

 

System.Windows.Markup.XamlParseException: ''Set property 'System.Windows.ResourceDictionary.Source' threw an exception.' Line number '65' and line position '10'.'

FileNotFoundException: Could not load file or assembly 'Telerik.ReportViewer.Wpf.Themes, Culture=neutral' or one of its dependencies. The system cannot find the file specified.

 

While Telerik.ReportViewer.Wpf.Themes is in the reference.

 

 

Many thanks.

 

 

Silviya
Telerik team
 answered on 29 Aug 2018
1 answer
167 views

Can someone provide some reference to using Telerik Reporting with WPF & EF Core 2.1, maybe a simple example. I've tried creating Report Library, when I go to configure my entitydatasource, I select my existing data connection click next and no DBContext is found even thought I have several? Being new to C# Telerik documentation on the subject is not any use to me..

 

Thanks in advance!!

 

 

Todor
Telerik team
 answered on 28 Aug 2018
0 answers
559 views

I am attempting to follow the steps provided in the KB article How to: Create Multi-Column Report - Across the Page and Then Down. However, a few things are unclear to me. 

1.) Do I need to created group sections on the actual report for this to work, or can I bind my SQL data source to the table itself and only have a single detail section consisting of this table alone?

2.) Once the data source is squared away, and I divide and mod the index of the data, do I divide/mod by the total columns of the data (for instance, my data is 3 columns, so I will technically have 6 columns across the page) or is the column number specifying how many times I want the data to be placed across the page (for instance, 2 columns consisting of 3 data columns)

3.) Once that is taken care of, where specifically do I place my grouping headers and detail values?

Chris
Top achievements
Rank 1
 asked on 24 Aug 2018
2 answers
200 views

Hi,

I update Telerik.Reporting from 2016.10.1.16.504 to 12.1.18.620 by Upgrade Wizard. When render a report I have an exception System.EntryPointNotFoundException. The solution has been cleaned and rebuilt after the update Telerik.Reporting. I also checked all .dll files – all of them are new version. Do you have any information how to fix the issue?

Simon
Top achievements
Rank 1
 answered on 23 Aug 2018
40 answers
1.5K+ views
Hi,

I have a problem with the report designer in the latest version of Telerik Reporting (2008_3_1209).

Whenever I double click on a textbox to edit the value property I get the following message

"Unsupported page unit"

The designer is "invalidated" (replaced by a white rectangle with a red 'x').

Don't know how to upload a screenshot, so I have temporarily replaced my avatar.

BTW: I'm using VS 2008 SP1.

Any idea?

/BB

PS: Editing the TextBox using the property window works!
Silviya
Telerik team
 answered on 23 Aug 2018
0 answers
112 views

I create a panel, set width/height as 100px / 50px and padding as 10px. When render to html, width/height of the div tag just only 80px x 30px, padding still be 10px. If I remove padding, width/height rendered will be 100px / 50px.

How can I have width/height is 100px / 50px even if I have padding?

Quan
Top achievements
Rank 1
 asked on 23 Aug 2018
0 answers
116 views

Hi,

 

I looked around but could not find a solution

 

This is what we have but when we have multiple header items in dsHeader.

I wish it prints out different header data at once. the code below shows and prints only the first header and its body

What I would like to do is print out multiple data consecutively when dsHeader's length is more than one using the same code

odsHeader is object header source provided by Telerik Reporting R1 2017

 

namespace DMG.MRP.Report.Design
{
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;
    using Telerik.Reporting;
    using Telerik.Reporting.Drawing;
    using System.Data;

    using DMG.RPT.Biz;

    /// <summary>
    /// Summary description for RPT_PO.
    /// </summary>
    public partial class RPT_PO : Telerik.Reporting.Report
    {
        public RPT_PO()
        {
            InitializeComponent();
        }

        public void LoadDataReport(string po_no)
        {
            if (po_no == null)
            {
                return;
            }

            DataSet dsHeader = null, dsDetail = null;
            using (RPT_Biz biz = new RPT_Biz())
            {
                dsHeader = biz.GetHeader_PO(po_no);
                odsHeader.DataSource = dsHeader;
                odsHeader.DataMember = "Table";

                dsDetail = biz.GetDetail_PO(po_no);
                odsHeader.DataSource = dsDetail;
                odsHeader.DataMember = "Table";
            }

            this.DataSource = dsHeader.Tables["Table"];
            table1.DataSource = dsDetail.Tables["Table"];
        }
    }
}

 

Samuel
Top achievements
Rank 1
 asked on 22 Aug 2018
1 answer
345 views

Hi,

I have gone through the tuts available in the Telerik docs ( link below ) but was not able to View the report.

https://docs.telerik.com/reporting/html5-report-viewer-asp-net-core-2

Would also like to know whether the approach I have done is correct.

What I have done

1 Have an existing application which is targeting Asp.net MVC Core ( not net461 but Core) where I have added a folder with the design ( a sample .rdlc designed in Standalone Report Designer) 

2 Created a REST Service from the Telerik template and configured as per the docs and the end point ( http://localhost:[portnumber]/api/reports/formats) running successfully. 

3 In the Core project ( point 1 I have consumed the REST Service and is trying to run it but shows error ( I 'm using Javascript ReportViewer Widgets since I can't Change the Target version to net461

Is the approach  Please let me know your valuable thoughts.

Error: Error loading the report viewer's templates. (Template = /api/reports/resources/templates/telerikReportViewerTemplate-html).

TIA

Silviya
Telerik team
 answered on 22 Aug 2018
1 answer
198 views

I am trying to run a report in a web application .net core 2 

I have followed the HTML5 Report Viewer in ASP.NET Core 2 Article with no success

I have added the below controller.

namespace schoolAppCore.Controllers
{
   [Route("api/reports")]
    public class ReportsController : Controller
    {
 
 
        string reportsPath = string.Empty;
 
        public ReportServiceConfiguration ReportServiceConfiguration { get; }
 
        public ReportsController(IHostingEnvironment environment)
        {
            this.reportsPath = Path.Combine(environment.WebRootPath, "Report1.trdp");
 
            this.ReportServiceConfiguration = new ReportServiceConfiguration
            {
                HostAppId = "schoolAppCore",
                Storage = new FileStorage(),
                ReportResolver = new ReportTypeResolver()
                                    .AddFallbackResolver(new ReportFileResolver(this.reportsPath)),
            };
        }
 
        [HttpGet("reportlist")]
        public IEnumerable<string> GetReports()
        {
            return Directory
                .GetFiles(this.reportsPath)
                .Select(path =>
                    Path.GetFileName(path));
        }
 
 
    }
 
}

 and also I have added a controller named to run the View as  following:

public class TelerikController : Controller
    {
public IActionResult viewreport()
        {
            return View("reportViewer");
        }
     

 

finally the Report view itself as following:

<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <title></title>
    <script src="~/lib/jquery/dist/jquery.min.js"></script>
     
    <link href="~/styles/kendo.common.min.css" rel="stylesheet" />
    <link href="~/styles/kendo.blueopal.min.css" rel="stylesheet" />
 
    <script src="~/lib/Kendo/telerikReportViewer.kendo-12.1.18.620.min.js"></script>
    <script src="~/lib/Kendo/telerikReportViewer-12.1.18.620.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/",
                    //"resources/templates/telerikReportViewerTemplate.html"
 
                    reportSource: {
                        // report: "Telerik.Reporting.Examples.CSharp.ReportCatalog, CSharp.ReportLibrary",
                        report: "Report1.trdp",
 
                        parameters: {}
                    },
                    viewMode: telerikReportViewer.ViewModes.INTERACTIVE,
                    scaleMode: telerikReportViewer.ScaleModes.SPECIFIC,
                    scale: 1.0,
                });
        });
    </script>
</body>
</html>

 

I am getting the below error 

jquery.min.js:4 GET https://localhost:44332/telerik/api/reports/resources/templates/telerikReportViewerTemplate-html 404 ()

 

and also (viewreport:1 Uncaught (in promise) undefined)

can some one help in getting this run in core 2 Application 

 


Todor
Telerik team
 answered on 22 Aug 2018
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?