Telerik Forums
Reporting Forum
5 answers
511 views

Hello,

I understand that currently, Telerik Reporting supports only .NET Framework projects in the Visual Studio Designer due to limitations of .NET Core 3.0 support.  However, I'm wondering, will this be addressed when Microsoft releases .NET 5 later this year?  Will we be able to design Telerik Reports in Visual Studio for .NET 5 projects?

Thanks.

Deepak Gupta

Todor
Telerik team
 updated answer on 30 Nov 2023
1 answer
28 views

Hello, 
I tried to add parameters to change default format from LIST_VIEW to COMBO_BOX but i can't do it.
I added like below but it don't work
version used 16.2.22.914

<tr-viewer 
    #viewer1
    [containerStyle]="viewerContainerStyle"
    [serviceUrl]="address"
    [reportSource]="{
        report: test.trdx,
        parameters: {
         editors: {
             singleSelect: viewer.ParameterEditorTypes.COMBO_BOX,
             multiSelect: viewer.ParameterEditorTypes.COMBO_BOX
         }
     },
    }"
    [viewMode]="'INTERACTIVE'"
    [ready]="ready"
    [scaleMode]="'SPECIFIC'"
    [scale]="1.2">
</tr-viewer>


Dimitar
Telerik team
 answered on 29 Nov 2023
8 answers
382 views

Hi Guys

I have some Telerik Reports and i'm using Telerik Report View on MVC Razor view. I can easly translate my data inside Report but i cannot translate ReportView elements like Report Toolbar 

How can i handle this? Here below my one of report example.

@{
        DateTime today = DateTime.Today;
        DateTime startOfMonth = new DateTime(today.Year, today.Month, 1);
 
 
        DateTime today1 = DateTime.Today;
        DateTime endOfMonth = new DateTime(today1.Year, today1.Month, DateTime.DaysInMonth(today1.Year, today1.Month));
 
        UriReportSource trial = new UriReportSource();
        trial.Uri = "Card Summary Report.trdx";
        trial.Parameters.Add("DateFdy", startOfMonth);
        trial.Parameters.Add("DateEnd", endOfMonth);
        trial.Parameters.Add("Culture", (string)ViewData["lang"]);
    }
    @(Html.TelerikReporting().ReportViewer()
        .Id("reportViewer1")
 
        .ServiceUrl("/api/reports/")
        .ReportSource(trial)
        .ViewMode(ViewModes.INTERACTIVE)
        .ScaleMode(ScaleModes.SPECIFIC)
        .Scale(1.0)
        .PersistSession(false)
)
Dimitar
Telerik team
 answered on 29 Nov 2023
1 answer
218 views

Hello, 

using Telerik.Reporting.17.2.23.1114.nupkg in .Net 8 project leads to warning:

Microsoft.NET.Sdk.targets(284, 5): [NETSDK1206] Found version-specific or distribution-specific runtime identifier(s): alpine-x64. Affected libraries: SQLitePCLRaw.lib.e_sqlite3. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default. See https://aka.ms/dotnet/rid-usage for details.

Why it happens is described in MS web site.

I found that Reporting nuget is using old/problematic dependency

<dependency id="SQLitePCLRaw.bundle_green" version="2.0.4" />

If you upgrade this to version 2.1.6, it fixes this problem. See release notes: https://github.com/ericsink/SQLitePCL.raw/releases/tag/v2.1.6

Todor
Telerik team
 answered on 22 Nov 2023
4 answers
657 views
Hi,

I am trying to pass the Data from C# to Telerik Report. Initially i created a Web Project and I added Telerik Report to the Project. I followed a tutorial to create a Report and assign a Dataset to the Report. Here i will be designing a Report. I need to assign a Data To Report through a Datatable, which need to be populated in Report where we need to Map The Columns. On Page Load i am Trying to do this,

In My Page Load i written by Code as

   Report2 objReport2 = new Report2();
                objReport2.DataSource = GetAllData();
                ReportViewer1.ReportSource = objReport2;
                ReportViewer1.DataBind();
                ReportViewer1.RefreshReport();

From the above code, i am seeing the blank Report wihtout Data.
In Desinger i created a table, But i failed to create  a Mapping between Report And Dataset Column? May i know how do i do this? Or else can any one suggest me a scenario to resolve this?   
Please find the Sample Project Link http://www.mediafire.com/?9hd3apr88j6m17x
Frederic
Top achievements
Rank 1
Iron
 answered on 21 Nov 2023
1 answer
22 views

I have 2 graphs with DateTime scales. But when the data is populated the graphs are misaligned slightly to right as below image, this is because graph1 has a y-axis labeled as 01-June and graph 2 has  31-May. Looks like because of the character's size 'Jun' and 'May', the graph representing May is slightly moved to the right. How do I adjust the spacing/padding between label and axis line ? I' using the telrik v17.1.23.

 

 

Todor
Telerik team
 answered on 21 Nov 2023
2 answers
82 views
I have a web project in Asp.NetCore and reports in telerik already created, what I need is to be able to have an option in my web view which only has a button which calls the report and which is downloaded in PDF format automatically without having a view prior to the report Is there any option on how to do it?
Mayking
Top achievements
Rank 1
Iron
 answered on 14 Nov 2023
2 answers
91 views

Hi Everyone,

I've recently upgrade telerik reporting to the last version. I'm currently using the report viewer in a .net core application on linux. Since the last version the print option and the pdf export doesn't work anymore.

On the front end i'm getting

telerik reporting The header contains invalid values at index 0: '<null>'

and on the server server side I'm getting an exception with 

telerik.Reporting.Pdf.Fonts.TrueType.FontDataProvider

I've set the appsettings to use the GDI and still have the system.drawing.common set at 6.0 for now. I never had any issues prior to this update with the same settings. Anyone had this issue before? All other export works perfectly fine, only the pdf and print options have issues.

Thank you very much,

Guillaume

Todor
Telerik team
 answered on 14 Nov 2023
1 answer
34 views

Hi all,

I have the following case with Telerik Reporting. I have a list which is fed with some data. The number of items may vary from 0 to practically unlimited. I want to show up to 3 records on a line. New records should go on a new line in the report.  I used this article as a reference but I still cannot solve it elegantly as the number of elements may be different each time -> https://docs.telerik.com/reporting/knowledge-base/how-to-create-multi-column-report---across-the-page-and-then-down

I'm sending a sample report as a reference. Does anyone have ideas on how to handle this? Some of the problems I encounter are:

  • some times some of the values are not rendered
  • sometimes there are blank boxes
  • I want the number or rows to grow dynamically based on the number of elements I want to visualize in the list

Regards,
Krasi

Dimitar
Telerik team
 answered on 10 Nov 2023
1 answer
26 views

Hello All!  I am having some difficulties debugging an issue with the ReportViewer not showing the rendered Report.  The Output states that the report was rendered in X seconds.  My report xaml is as follows:

<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:tr="http://schemas.telerik.com/wpf" x:Class="FRAC_FLOW.TestReport"
    Title="Report Viewer Window">

    <Grid x:Name="LayoutRoot">
        <Grid Margin="20" >
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>

            <tr:ReportViewer Grid.Row="0" x:Name="ReportViewer1"/>
        </Grid>
    </Grid>
</Window>

I am setting the source and parameters in the constructor:

public TestReport()
{
    InitializeComponent();


    Telerik.Reporting.Parameter parm = new Telerik.Reporting.Parameter { Name = "JobId", Value = "7215" };
    Telerik.Reporting.Parameter parm1 = new Telerik.Reporting.Parameter { Name = "Date", Value = DateTime.Now.ToShortDateString() };

    var reportSource = new UriReportSource();
    reportSource.Uri = new Uri("Reports/ReplacementParts.trdp", UriKind.RelativeOrAbsolute).ToString();

    ReportViewer1.ReportSource = reportSource;
    ReportViewer1.ReportSource.Parameters.Add(parm);
    ReportViewer1.ReportSource.Parameters.Add(parm1);
    ReportViewer1.RefreshReport();
}
When I call this code from a button, I just do the Window.Show() method I saw in the examples.  The Window and Viewer seem to popup just fine, however, I am not seeing the report.  I have reviewed the report in the Report Designer, and I don't see anything that would cause it not to open.  In fact, I can Preview the report just fine, and the data looks good.  Any help is highly appreciated, as I've been stuck on this for a day now, and I've never reached out for help on here!  Thanks in advance!
Momchil
Telerik team
 answered on 09 Nov 2023
Top users last month
Kevin
Top achievements
Rank 2
Stephan
Top achievements
Rank 3
Bronze
Iron
Iron
Jason
Top achievements
Rank 2
Iron
Iron
Iron
Janki
Top achievements
Rank 4
Bronze
Iron
Iron
Dominik
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?