Hi,
I have created a telerik reporting rest service application using visual studio template and created a report as in the sample 'C:\Program Files (x86)\Telerik\Reporting R3 2016\Examples\CSharp\Html5Demo'. The report is loaded successfully.
But my front end is a separate application. So I have created a new project and added the 'index.html' and 'ReportViewer' folder into that and the 'serviceUrl' in index.html is updated as 'serviceUrl: "http://localhost:12345//api/reports/" '. I got CORS errors initially and resolved by adding custom header as
<add name="Access-Control-Allow-Origin" value="*"/>
<add name="Access-Control-Allow-Headers" value="*" />
<add name="Access-Control-Allow-Methods" value="*" /> in the report service(http://localhost:12345) web config.
But still, I am getting some error like
cannot load http://localhost:12345/api/reports/clients/141336-2297/parameters. Response for preflight has invalid HTTP status code 405
cannot load http://localhost:12345/api/reports/clients/141336-2297/instances. Response for preflight has invalid HTTP status code 405
even though my http://localhost:12345 is up.
Is there any solution for this.
Can I load the report viewer as a separate application from the report service?
My actual requirement is to load the report viewer in an AngularJS2 application. Since there is no AngularJS2 report viewer is available, I tried it to use in an independent JQuery application and later I can move the same to angular.
Using the Telerik.Reporting.Graph, how can I remove extra whitespace under the x-axis?
I am trying to make the x-axis not have any space underneath it, in the attached screenshot I have the border on the Graph set to green. I have turned off as many labels that I could find, and all the Padding I could find is set to 0. Any idea what would be causing the extra space between the x-axis and the green border?
Thank you,
Hello!
I'm using the standalone report designer v9.0.15.324.
Using the text box or HTML text box, is there any way to omit an 'address2' (e.g., "Suite 345", "Apt. 9G", etc) line when that data is blank? Using the ISNULL function leaves a blank line in the mailing address as follows:
John Smith
1234 Maple Rd.
Anywhere, ZZ, 99999
If not using those objects, what do you recommend?
Thanks!
Hi All
We have a range of reports hosted on a website and some of them use the US date formatting (mm/dd/yy) while others us the UK format (dd/mm/yy).
There's two reports that use the same date column in the database but one uses this US format while another uses the UK one. However when I run the reports in the report builder on my local machine both the reports use the UK format (which is what we want it to be).
The server that hosts the reports has its location set to UK and the format for the dates text box is the same in both reports too so I'm not sure what's causing some of these reports to format differently.
I'd have thought if it was an issue with the server then all reports would have the same date format instead of the mismatch that we currently have.
Is it possible there's other settings hidden away somewhere?
Cheers
Hello! Our team is currently looking for a reporting solution and we have one uncommon requirement: we would like to allow end users to set design/style of the report by providing a Word template (basically, a .docx document with header, footer, margins and table style) - the final report should pick up the styles from the template document. It doesn't matter much when the applying of the style happens:
a) on generating the report - so the report would be displayed in the report viewer with the user-defined style applied to it already
b) on exporting the report to Word
We would take any of the scenarios. We would also need the same functionality for Excel and PowerPoint templates.
I looked for similar requests on the forums, and here is the closest topic I could find: https://www.telerik.com/forums/dynamically-generate-reports-using-pre-defined-template . The topic was created in 2013 year, so, I hope, there has been some progress made in that direction.
We would appreciate any help!
Thanks,
Alexey
Hi,
Is there a way to test the user functions mechanism with a trial version of the Report Designer (Telerik ReportDesigner R2 2019 TRIAL)? It is downloaded only as an exe file with no configuration file.
Best Regards
Using Telerik ReportViewer Q3 2015 SP2 v9.2.15.1126 in a MVC HTML5 website application. I am experiencing an intermittent error with the reportviewer.
"Error registering the viewer with the service. An error has occurred. String was not recognised as a valid DateTime."
This occurs when instantiating a report for the first time (starting the website up and running a report). However, rerunning the report immediately again I then get the expected result and it works fine without error, but the error is guaranteed to occur on every first time use....
Fiddler returns the following information:
{"message":"An error has occurred.","exceptionMessage":"String was not recognized as a valid DateTime.","exceptionType":"System.FormatException","stackTrace":" at System.DateTimeParse.ParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style)\r\n at System.DateTime.ParseExact(String s, String format, IFormatProvider provider)\r\n at Telerik.Reporting.Services.Engine.PersistableObject.GetDateTime(String key)\r\n at Telerik.Reporting.Services.Engine.Client.get_ExpiresOn()\r\n at Telerik.Reporting.Services.Engine.ReportEngine.<>c__DisplayClass16.<CollectExpiredData>b__10(Client c)\r\n at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()\r\n at System.Linq.Buffer`1..ctor(IEnumerable`1 source)\r\n at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)\r\n at Telerik.Reporting.Services.Engine.ReportEngine.CollectExpiredData()\r\n at Telerik.Reporting.Services.Engine.ReportEngine.RegisterClient()\r\n at Telerik.Reporting.Services.WebApi.ReportsControllerBase.RegisterClient()\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at
System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()"}
Anyone experienced this before? Any advice how to stop this from happening? We have tried the obvious things like clearing browser history etc...
Hi,
We use Telerik Report Q32015.1216 ,produce serial letters with attachments and bundle it in 1000 letter Packages. The same attachment with 5 pages is always added to a single one-page seriel letter. It takes lot of time to add the same attachment to the individual letter and creates a redundant huge PDF file.
Instead of having multiple times the 5 page attachment in the bundle of serial letters I want to have it only once and reference it from the respective place.
So instead of the B1,A,B2,A,B3,A.. structure I would like to have a B1,RA,B2,RA,B3RA...A structure in the PDF file ( Where Bx=Individual page, A={A1A2A3A4A5} where Ax - Attachment pages, RA=Reference to the attachment pages object).
Is there anyTelerik way/solution to create this kind of resource optimized PDF?
Many thans, László