Telerik Forums
Reporting Forum
1 answer
472 views

Hi,
I'm having some trouble with the kendo report configuration.

My reports run perfectly on localhost, but when i deploy my application the reports fail to load. After some investigation i realised that it is an issue related with permissions asi get the following exception : "Access to the path 'C:\Windows\TEMP\Html5App\10.2.16.1025\LCT\value.dat' is denied."

I have looked at the documentation and at similar questions such as this one (http://www.telerik.com/forums/cache-file-error-not-fixed-with-config-entry), and  tried different configurations but unfortunately still did not manage to overcome the issue. 

I know this issue is related to cache configuration, i read the documentation carefully, and this page (http://docs.telerik.com/reporting/using-telerik-reporting-in-applications-rest-service-cache-management-overview) sugests that cache management is mandatory.  However on the documentation its not clear why?  Also is not clear  what is actually being cached?? Is it a compiled version of the report template which recieves parameters and dysplay the data,  or is it  the actual final report which is displayed? 

Because if it is the later then is s there a way i can publish my reports without caching? Because i cannot have a cached instance of each invoice which is displayed and printed only once. And is not really advantageous for me as most of the reports will rarely will be called twice with the same parameters

Stef
Telerik team
 answered on 18 Apr 2017
0 answers
3.2K+ views

We are using Telerik Reports 10.2.16.914

In the attachment you will see errors we are getting. 

here is the content of Output(Debug)

An exception has occurred while processing 'graph1' item:
System.Data.SqlClient.SqlException (0x80131904): Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at Telerik.Reporting.Processing.Data.SqlDataEnumerable.<GetEnumerator>d__0.MoveNext()
   at Telerik.Reporting.Processing.Data.SeedDataAdapter.GroupData(IEnumerable`1 rawData)
   at Telerik.Reporting.Processing.Data.SeedDataAdapter.Execute(IEnumerable`1 data)
   at Telerik.Reporting.Processing.Data.ResultSetAdapter.Execute(IEnumerable`1 data)
   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.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.ReportItemBase.ProcessElement()
   at Telerik.Reporting.Processing.ProcessingElement.Process(IDataMember dataContext)

We use web report viewer, it is telerikReportViewer-10.2.16.914.js

This is a part where we believe that timeout was increased. 

 public partial class LeastActiveDispatchers_Avg : Telerik.Reporting.Report
    {
        public LeastActiveDispatchers_Avg( )
        {
            InitializeComponent( );
            endpointSummaryDataSource.CommandTimeout = 600;
        }
    }

 

It is fills that the real that report is using timeout from 15 to 30 seconds instead of 10 minutes. 

The break point is not being hit when running in debug mode. So I have two questions I need help. 

1. How to debug a report? 

2. How to set timeout?

David
Top achievements
Rank 1
Iron
Veteran
Iron
 answered on 13 Apr 2017
3 answers
1.2K+ views
Hi,
   i am using standalone telerik report viewer so i am not using c#, everything with stored procedure and report viewer,trdp files.currently having a problem with picture box that was binding with stored procedure.it showing error like 
An error has occurred while processing PictureBox 'pictureBox1':
Invalid image data.
------------- InnerException -------------
Parameter is not valid.
please update the answer as soon as possible
Thank you,
Stef
Telerik team
 answered on 13 Apr 2017
3 answers
491 views

Hello,

I have created a report in Telerik report designer R3 2016, and to make my report multilingual i have created a parameter named pCulture to which user is passing culture name(eg. French(fr-FR), portuguese (pt-PT), English(en-EN)) which is working fine.

How my function is working :

TelerikReportResources.MultilanguageTelerikReport.GetCultureSpecificString(Parameters.pCulture.Value,"Key") //It is User defined function

The "key" will be translated from .net side in any language which has been entered by user in pCulture parameter.

Now the problem is :

I have Pie chart in my report which is showing weekdays, so here i have to compare pCulture parameter first, either it is french, Portuguese or English and again in particular language have to compare for the weekdays.as given below:

 

if the Parameters.pCulture.Value="fr-FR" and dayNameOfweek="Monday" then Monday="Lundi"

if the Parameters.pCulture.Value="fr-FR" and dayNameOfweek="Tuesday" then Monday="Mardi"

elseif the Parameters.pCulture.Value="fr-FR" and dayNameOfweek="Wednesday" then Monday="Mercredi"

elseif the Parameters.pCulture.Value="fr-FR" and dayNameOfweek="Thursday" then Monday="Jeudi"

elseif the Parameters.pCulture.Value="fr-FR" and dayNameOfweek="Friday" then Monday="Vendredi"

elseif the Parameters.pCulture.Value="fr-FR" and dayNameOfweek="Saturday" then Monday="samedi"

elseif the Parameters.pCulture.Value="fr-FR" and dayNameOfweek="Sunday" then Monday="dimanche"

 

same for Portuguese and English.so according to my logic i will have to create 21 elseif for this.

please guide me.

 

 

Vendredi
Vendredi
Vendredi
Vendredi
Vendredi
Vendredi
Vendredi
Vendredi
Vendredi
Vendredi
Vendredi
dimanche
dimanche
dimanche
dimanche
dimanche
Stef
Telerik team
 answered on 13 Apr 2017
1 answer
576 views

Hello,

 

I have a website project that prints reports fine running locally but once loaded to a webserver it starts to throw exception "Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application."

Code I'm using to print report is:

 

    public void PrintReport(Report report, string printerName)
    {
        Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
        InstanceReportSource instanceReportSource = new InstanceReportSource();
        PrinterSettings psettings = new PrinterSettings {
            PrinterName = printerName
        };

        instanceReportSource.ReportDocument = report;
        reportProcessor.PrintReport(instanceReportSource, psettings);
    }

 

I do need to signify exact printer to print to as well as it needs to be silent.  How come this only works locally?

Stef
Telerik team
 answered on 13 Apr 2017
13 answers
246 views

I purchased DevCraft Complete and I'd like to get started with reporting. Does Telerik provide any tutorials for getting started with Reporting? I was able to find one tutorial but that was from 4 years ago. I'm sure a lot has changed since then.

Stef
Telerik team
 answered on 11 Apr 2017
7 answers
605 views
I have Visual Studio 2015.I have downloaded Telerik.ReportDesigner application file.I am able to use data source like csv data source , SQL data source. To use Entity Data Source i built an Entity Data Model (ADO.Net Entity Data Model) and i copy their connection string from web.config to the connection string which is asked when i create Entity Data Source but it doesn't show anything on Choose a Context window. would anyone please help.
Stef
Telerik team
 answered on 11 Apr 2017
1 answer
631 views

I'm really having a hard time getting Telerik Reports to do anything for me.  The latest version says it's .NET Core but the first thing you do is remove .NET Core from the project and add the full framework.

I have an existing application that is entirely .NET Core.  This includes front-end, EF, the API, and the middle-tier.  All my business models are .NET Core assembly.

We are not going to add the full framework to any of our existing projects.  Therefore Telerik Reporting must be in assembly which will have a front-end used solely for showing reports selected by the user in our main web application.  However, since all the business models are in a Core only assembly, and I have no interest in duplicating all the models just for this Telerik only project, I am hoping that I can feed the report JSON retrieved from the API.

Is this possible?  I'm looking at the datasources and I'm not clear if one of those would work, or if there is another way to provide this data.

Stef
Telerik team
 answered on 11 Apr 2017
3 answers
113 views

Can we pass html elements such as <button onclick = "dosomething()"> </button> to  htmltextbox in html5 report viewer

 

Stef
Telerik team
 answered on 11 Apr 2017
1 answer
162 views

Hello,

 

I'm trying to create new table report based on ObjectDatasource and as result I get empty table duplicates. Please see Screenshot_1.png

Could you please advise how the issue could be solved?

Stef
Telerik team
 answered on 10 Apr 2017
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?