I have been trying for almost a whole week to get a Telerik report to run. I'm pretty sure, at this point figuring out nuclear fusion would be easier. No matter what I do I get the following error:
Cannot access the Reporting REST service. (serviceUrl = '/OmniCareApp/api/reports/'). Make sure the service address is correct and enable CORS if needed. (https://enable-cors.org)
I have CORS enabled in my web.config
<
httpProtocol
>
<
customHeaders
>
<
add
name
=
"Access-Control-Allow-Origin"
value
=
"*"
/>
</
customHeaders
>
</
httpProtocol
>
I can get this to run in a separate web project, but not when I try and integrate it into my legacy system. I thought maybe it was because it was a web site and not a web project. So, I created a web project and got the report to run. Then I brought over all the legacy piece parts, and back to the above error. Worst case scenario I can create a separate web site just for the purposes of serving up this one report, but then that's just one more thing I have to maintain. Not the path I'd like to take.
This should have been as easy as placing the Telerik Report Viewer on a form, telling it where the report was and boom...done! You guys have complicated the ever loving crap out of this process. I'm frustrated, and disappointed in this process at the same time.
At my wits end. I like your reports. The designer interface is easy to work with, but I never had these kind of problems with Crystal Reports.
Where do I go next? For the love of god don't refer me to the multitude of white papers I've already been thru with a fine tooth comb. I've also found fiddler to be as useless as hair on nipples.
Hello,
I have an asp.net webproject including telerik reporting.
In a report there are several report parameters, two with datetime and one with string and multivalue.
In the report parameter with string and multivalue should be load the lastnames of the driver (car driver)
The company has 36 drivers and two of them have the same last name, here "Rick", namely Dennis and Micha Rick.
All driver are shown in the dropdown, except "Dennis Rick".
I don't know why.
Here is the class with its method for the datasource for this report parameter:
namespace ReportLibrary1
{
public class MyEmployees
{
//Report Parameter Driver LastName
public object[] GetEmployees()
{
ResourcesDomainService rdservice = new ResourcesDomainService();
object[] employees = new object[rdservice.Employees.Count];
employees = rdservice.Employees.Where(x => x.DriverId.Length > 0).OrderBy(x => x.LastName).ToArray();
return employees;
}
}
}
When I make a breakpoint in the row and go with my mouse pointer over empoyees I can see that all drivers are returned including Dennis Rick.
But in the report "Dennis Rick" is missing in the drodown list.
Have somebody an idea why it is so?
Regards
Simon
How to get first string from splited string?
for example str="xxx-yyy-zzz"
output is "xxx"
Thank you!
I am running up against an issue where I am unable to debug an MVC App in which I am attempting to render a couple of reports in a controller method. The code in the attached screenshot runs perfectly fine if I build and publish my Web app, but I consistently receive the "Invalid value of report parameter 'ClientId'." error when I attempt to debug the app through Visual Studio.
I am on Telerik.Reporting version 12.0.18.416.
Please advise.
In a cshtml file, I have the following piece of code:
Telerik.Reporting.UriReportSource uriReportSource = new Telerik.Reporting.UriReportSource();
uriReportSource.Uri = "QuotationDetails.trdx";
uriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("CultureID", "fr"));
uriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("QuotationIDENT", "{{:CurrentQuotation.IDENT}}"));
uriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("UNUSED", 15));
uriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("ReportsConnectionString", "{{:ReportsConnectionString}}"));
In th concerned trdx file, the SqlDataSource is currently set via:
<DataSources>
<SqlDataSource ConnectionString="REPORTS" SelectCommand="..." Name="REPORTS" ParameterValues="...">
<Parameters>
...
</SqlDataSourceParameter>
</Parameters>
</SqlDataSource>
</DataSources>
I would like to set the SqlDataSource ConnectionStringvalue to ReportsConnectionString, but I can't make it work.
Any idea ?
Best Regards,
Jean-Pierre Gervasoni
I am trying to display a report from Telerik Report Server in my Asp.Net MVC application via the HTML5 ReportViewer.
I am using Stand-alone Report designer and creating parameters which are set to visible. The Parameter area is visible when i view on the Report Server. But when i view the report via HTML5 ReportViewer the parameter area is hidden. I have tried to alter CSS styling but no luck. It looks like the parameters do not exist in the ReportViewer page.
Below is my jquery calling the ReportViewer
<div id="reportViewer1" class="k-widget" style="height:100em;">
loading...
</div>
<script type="text/javascript">
$(document).ready(function () {
debugger;
var URL = '@System.Configuration.ConfigurationManager.AppSettings["ReportServerUrl"]';
var param = @Html.Raw(Model.ReportParameters);
var rptStr = '@Model.ReportCategory' + '/' + '@Model.ReportName';
$("#reportViewer1").telerik_ReportViewer({
reportServer: {
url: URL,
username: null,
password: null
},
reportSource: {
// The report value should contain the Category and ReportName in the following format
// {Category/ReportName}
report:rptStr,
parameters:param
},
parametersAreaVisible: true,
printMode: telerikReportViewer.PrintModes.FORCE_PDF_FILE,
});
})
</script>
Also attached are the my designer view, HTML5 ReportViewer result and ReportServer View. Any pointers towards this would be helpful.
Hello,
Due company security policies, all the assemblies that we ship (proprietary or third parties) must be digitally signed, I've reviewed all the assemblies deployed by the Telerik installer an cannot find: Telerik.Reporting.dll and Telerik.ReportViewer.WinForms.dll digitally signed
Where can I get these binaries, digitally signed?
Regards,
Micky.