Telerik Forums
Reporting Forum
3 answers
102 views
I am using Telerik html5 report viewer on my angular 6 application. Currently the css is downloaded from the web using:
<link href="http://kendo.cdn.telerik.com/2019.1.115/styles/kendo.common.min.css" rel="stylesheet" /> <link href="http://kendo.cdn.telerik.com/2019.1.115/styles/kendo.blueopal.min.css" rel="stylesheet" />
The problem is that my application needs to be offline. How do I accomplish this?
Are there any other actions I need to do in order for it to work offline?
TX Tal
Eric R | Senior Technical Support Engineer
Telerik team
 answered on 05 Aug 2019
3 answers
2.2K+ views
I would like to have every second row with a different style in my table.
I have created the following conditional formatting rules for the two different styles:

Expression: =RowNumber() % 2
Operator: =
Value: 1

Expression: =RowNumber() % 2
Operator: =
Value: 0

The issue is that the values are grouped by the field of the first column, and the RowNumber() function restarts to 1 for each new country value (see the attached screenshot).
Rory
Top achievements
Rank 1
 answered on 05 Aug 2019
1 answer
642 views

I have an application that has an angular 6 client with telerik reporting viewer,and C# api server.
I have created a report with the report designer. the report has 2 dateTime parameters defined like in the picture attached.

Now, I use it in the web service data source like in the other picture.

So far so good.

I update the parameters value from my clients like in the third image.

 

The problem is that when I check the value that is received in my web api has month and days switched so if the day is greater than 12 the parameter value is 1/1/0001. I have tried all sorts of datepipe format changes, with no success.
The problem is solved when I use the toDate and fromDate as string parameters, but is seems like a stupid solution, and that way I can't use the date type abilities like .toShortDateString() in the text box. Any ideas?
Eric R | Senior Technical Support Engineer
Telerik team
 answered on 05 Aug 2019
1 answer
270 views

We need to purchase Telerik Report Server to install at client internal network.

 

The client does not permit internet access

 

Can we install Telerik Report Server with offline install method?

and can we activate its licence offline?

Silviya
Telerik team
 answered on 05 Aug 2019
5 answers
823 views

Hi,

I'm trying to integrate reporting rest service to Winforms Report Viewer

I'm getting the below error during report rendering

An exception has occurred while processing 'table1' item:

System.InvalidOperationException: The data provider of type 'Telerik.Reporting.Processing.WebServiceDataSource.WebServiceDataProvider, Telerik.Reporting.WebServiceDataSource, Version=13.0.19.116, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' defined for data sources of type 'Telerik.Reporting.WebServiceDataSource' cannot be resolved. Are you missing an assembly reference?
   at Telerik.Reporting.Processing.Data.DataProviderFactory.ResolveDataProviderType(Object component, Type baseType, IDataProviderContext dataProviderContext)
   at Telerik.Reporting.Processing.Data.DataProviderFactory.GetDataProviderTypeCached(IDataSource component, IDataProviderContext dataProviderContext)
   at Telerik.Reporting.Processing.Data.DataProviderFactory.Telerik.Reporting.Processing.Data.IDataProviderFactory.Create(IDataSource definition, Object expressionContext, IDataProviderContext dataProviderContext)
   at Telerik.Reporting.Processing.Data.MultidimentionalDataProvider.Execute(MultidimensionalQuery query)
   at Telerik.Reporting.Processing.DataItemResolveDataAlgorithm.GetDataCore(IDataSource dataSource, MultidimensionalQuery query, IServiceProvider serviceProvider, EvalObject expressionContext, IProcessingContext processingContext)
   at Telerik.Reporting.Processing.DataItem.GetDataCore(IDataSource dataSource, MultidimensionalQuery query)
   at Telerik.Reporting.Processing.DataItem.<>c__DisplayClass1.<ResolveData>b__0()
   at Telerik.Reporting.Processing.DataItemResolveDataAlgorithm.ResolveData(String processingId, InMemoryState inMemoryState, MultidimensionalQuery query, Func`1 getDataCore, EvalObject expressionContext)
   at Telerik.Reporting.Processing.DataItem.ResolveData()
   at Telerik.Reporting.Processing.DataItem.ProcessItem()
   at Telerik.Reporting.Processing.Table.ProcessItem()
   at Telerik.Reporting.Processing.ReportItemBase.ProcessElement()
   at Telerik.Reporting.Processing.DataItem.ProcessElement()
   at Telerik.Reporting.Processing.ProcessingElement.Process(IDataMember dataContext)

 

Upon looking into this further i was unable to find the namespace Telerik.Reporting.Processing.WebServiceDataSource.WebServiceDataProvider

Some help would be appreciated

 

ReportsController Code

public class ReportsController : ReportsControllerBase
    {
        protected override Telerik.Reporting.Services.Engine.IReportResolver CreateReportResolver()
        {
            return new ProductReportResolver();
        }

        protected override Telerik.Reporting.Cache.Interfaces.ICache CreateCache()
        {
            return Telerik.Reporting.Services.Engine.CacheFactory.CreateFileCache();
        }

        [HttpPost]
        [ActionName("Parameters")]
        public override HttpResponseMessage GetParameters(string clientID, ClientReportSource reportSource)
        {
            try
            {
                return base.GetParameters(clientID, reportSource);
            }
            catch (Exception ex)
            {
                return null;
            }
        }

        [ActionName("DocumentResources")]
        [HttpGet]
        public override HttpResponseMessage GetResource(string clientID, string instanceID, string documentID, string resourceID)
        {
            try
            {
                return base.GetResource(clientID, instanceID, documentID, resourceID);
            }
            catch (Exception ex)
            {
                return null;
            }
        }

        protected override HttpStatusCode SendMailMessage(MailMessage mailMessage)
        {
            return HttpStatusCode.OK;
        }
    }

 

 

 

 

Silviya
Telerik team
 answered on 05 Aug 2019
1 answer
348 views

Hi, 

I use html reporting and I need to have a filter like this in photo attached, where I can filter through a text. How can I do this from designer?

 

Best regards

 

 

Silviya
Telerik team
 answered on 05 Aug 2019
10 answers
388 views
I have a report viewer in reportviewer.aspx. After I generated the report, I chose Excel format and click Export. I found that in backend, when I press the export button, it goes to load the data again and it make export take 20 minutes or more. I am doubting whether the export is just dumping the already generated report content or will load the functions and do the calculation once again. How can I avoid the export to do the calculation again but just dumping the already generated report?
Neli
Telerik team
 answered on 02 Aug 2019
1 answer
287 views

What do mean with CALs in Telerik Report Server licence?

 

Is it number of application that will use this server?

or number of actual users they have permission to access reports through this server?

 

for example, If I have an angular application and an asp.net application.

These two applications will use Telerik Report Server

In this case, do I have two CALs?

or

If I have 10 users access reports through these tow applications. so I have 10 CALs?

 

Which is right?

Number of applications?

or

Number of actual users regardless of number of applications?

Neli
Telerik team
 answered on 02 Aug 2019
1 answer
290 views
In my report I have two datasource.  In this case the first is the data (detail) and the second is another query that brings a single line that I need to show in the header.  Is there any way to make a textbox display this information?
Ivan Hristov
Telerik team
 answered on 02 Aug 2019
1 answer
618 views

I have an application that has an angular 6 client with telerik reporting viewer,and C# api server.
I have created a report with the report designer. the report has 2 dateTime parameters defined like in the snapshot: 
Now, I use it in the web service data source like on the other  snapshot

So far so good.
I update the parameters value from my clients this way:
let rs =

{

report: this.reportName,

authenticationToken: token,

parametersAreaVisible: true,

parameters: {

     networkItemsKeys: JSON.stringify(parameters.tags),

     token: token, userName:this.userName,

     toDate: parameters.toDate,

     fromDate: parameters.fromDate } }

      as unknown as JSON;

      this.reportSource = rs; this.reportViewer.setReportSource(rs);

    parameters.toDate is DateTime property. 
I can see that the date parameters are updated fine when looking at a textbox defined this way:
Report Period: {Parameters.fromDate.Value.toShortDateString()}-{Parameters.toDate.Value.toShortDateString()}
The problem is that when I check the value that is received in my web api has month and days switched so if the day is greater than 12 the parameter value is 1/1/0001. I have tried all sorts of datepipe format changes, with no success.
The problem is solved when I use the toDate and fromDate as string parameters, but is seems like a stupid solution, and that way I can't use the date type abilities like .toShortDateString() in the text box. Any ideas?
TX Tal

Nasko
Telerik team
 answered on 02 Aug 2019
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?