Telerik Forums
Reporting Forum
7 answers
545 views

Hi

I am currently rewriting an old Silverlight Application in Angular. The original application had some reports which I would like to reuse.

So I added a REST service to my web api by following the instructions in the docs. This seems to be working (http://localhost:[portnumber]/api/reports/formats returns the expected result). I also created a HTML5 viewer (in Angular), and made sure the authorization token is set (I'm using OAuth).

Unfortunately the report doesn't show..

I started to investigate and, as you can see, the network traffic reveals several requests to the report service are triggered. The next to last request appears to contain the contents of the report in html, but in fact this html is just an error page.

While debugging I discovered that the request doing the actual rendering of the report is not authenticated and HttpContext.Current.User is null.
My code to retrieve the report data relies on this user and therefor throws an exception. The authorization header is present and correct but is somehow ignored.

In all other requests to the reportservice the request is authenticated and the current user is correctly filled, just not for this one request doing the rendering.
Do you have any idea what might be causing this?

Licenses
Top achievements
Rank 1
 answered on 31 Aug 2016
1 answer
336 views

Good Morning,

 

I've have seen in previous posts that with telerik reporting it's possible to create a report a Runtime, passing a object data model.

But reading this post I've seen that this can cause problem and there is not a best solution to create report (the post had been created on 2012 and 2013)

 

Now I want to know if this solution it's advisable or it's better create one report from each model and bind them by the import wizard of telerik report.

 

Thanks

Stef
Telerik team
 answered on 30 Aug 2016
3 answers
294 views

Hello,

 

When I export result in excel(xls) all cell formats are "custom", how can I keep date format on cells where dates are written?

Stef
Telerik team
 answered on 30 Aug 2016
5 answers
207 views
Hi,

I'm just wondering what the road map for the Html5 Report Viewer looks like. Any plans to incorporate the report parameters more like they are in the Asp.Net WebForms Report Viewer?

Thanks,

Rich
Stef
Telerik team
 answered on 30 Aug 2016
1 answer
146 views
How to check sub report have data from the parent report?
Stef
Telerik team
 answered on 30 Aug 2016
1 answer
412 views

Hi,

I am using the code posted here to switch report db at runtime (trdp's designed outside of my application then hosted by http).

http://www.telerik.com/support/kb/reporting/details/changing-the-connection-string-dynamically-according-to-runtime-data

One thing I picked up is that sub-reports are not handled properly, gives an error because the path is not found during this call in 'SetConnectionString' 

subReport.ReportSource = this.UpdateReportSource(subReport.ReportSource);

subReport.ReportSource above will be a simple filename (assuming the sub-report was designed in the same folder as the main report) which means the report file will not be found during deserialization.

I can't post my working routine as it has become too customized but if you're doing this you must ensure that subReport.ReportSource is properly set to a full path before calling UpdateReportSource (or in UpdateReportSource). I hope this helps anyone who has this problem.

 

Stef
Telerik team
 answered on 29 Aug 2016
3 answers
737 views

how to remove space when there is no value on the textbox in the telerik report. I've added a picture for better understanding.

Thanks in advance.

Stef
Telerik team
 answered on 29 Aug 2016
6 answers
453 views
Hi , i used the following code to export report to excel by the code ,
i need the same code to export the report to xps format 


void ExportReport(Telerik.Reporting.Report reportToExport)
       {
           Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource();
           instanceReportSource.ReportDocument = reportToExport;
           ReportProcessor reportProcessor = new ReportProcessor();
           RenderingResult result = reportProcessor.RenderReport("XLSX", instanceReportSource, null);
 
           string fileName = result.DocumentName + "." + result.Extension;
 
           Response.Clear();
           Response.ContentType = result.MimeType;
           Response.Cache.SetCacheability(HttpCacheability.Private);
           Response.Expires = -1;
           Response.Buffer = true;
 
           Response.AddHeader("Content-Disposition",
                              string.Format("{0};FileName=\"{1}\"",
                                            "attachment",
                                            fileName));
 
           Response.BinaryWrite(result.DocumentBytes);
           Response.End();
       }
}
Katia
Telerik team
 answered on 29 Aug 2016
3 answers
1.7K+ views

Hello. I have a really long detail section containing mostly textboxes and tables, but most of the fields have some visibility rules. However, only like half of the fields are usually visible in a single report. When exported to pdf, every other page is blank (ofc with header and footer) and there are some blank pages in the end as well. Every report creates the same amount of pages. This is probably related to the height of the detail section. I have read many forum threads as well as http://www.telerik.com/support/kb/reporting/details/problem-telerik-reporting-renders-blank-pages but I am still not able to solve this problem. The detail section has "KeepTogether" set to false. Is there any solution to this problem?

Thank you

Katia
Telerik team
 answered on 29 Aug 2016
3 answers
225 views

Hi Telerik Support Team,

I have set the report parameter section position to bottom of report viewer control.

Is there any way for me to show report parameter in bottom.

Thanks & Regards,

Premraj S.

Stef
Telerik team
 answered on 29 Aug 2016
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?