Telerik Forums
Reporting Forum
6 answers
311 views

Hi,

I've been seeing this issue for a long time, but I can't seem to find where to log the errors that are being thrown when users are generating reports with the WebAPI/HTML5 report viewer.

I see tons of exceptions happening that look like this:

* /api/reports/clients/094113-ecd1/instances/094113-5731/documents/094113-aabb094141-da97 - 500 Internal Server Error

* /api/reports/clients/094843-e940/instances/095003-e56b/documents/095003-5023095009-20af - 500 Internal Server Error

* /api/reports/clients/112823-f291/instances/113024-cb46/documents/113024-837d113030-be3d - 500 Internal Server Error

* /api/reports/clients/112823-f291/instances/113219-b3dd/documents/113219-bc2d113229-8387 - 500 Internal Server Error

Is there anything I can do to catch these? Is it as simple as adding a filter to catch the webapi unhandled exceptions and logging them?

 

Todor
Telerik team
 answered on 02 Mar 2018
0 answers
115 views

I have designed an A-4 half sheet portrait print, while output is automatically getting switched to landscape.

Kindly provide an apt solution to this.

 

Muhammed
Top achievements
Rank 1
 asked on 02 Mar 2018
7 answers
1.5K+ views
Hi Guys,

I'm hoping this is an easy thing to fix but I've had a play and a search and can't figure it out!

What I need to do in my system is generate a report, save it to my harddrive as a PDF so that I can then attach it to an email. This all needs to be done programatically. I found your example and have been trying to get it to work but for some reason (I expect I'm missing something obvious) it doesn't like the "response" bit of the code below:

    RepQuote quote_rep = new RepQuote(_qu);
 
Telerik.Reporting.Processing.ReportProcessor reportProcessor = new ReportProcessor();
RenderingResult result = reportProcessor.RenderReport("PDF", quote_rep, null);
 
string fileName = result.DocumentName + ".pdf";      
      
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();

I'm guessing im just missing a "using" statement but the code wont compile past "Response.Clear()". It can't find the response class. I did a search around and people suggested adding "using System.Web" to get it to work but that didn't help. I'm a relative newbie with C# so any help would be appreciated!
Fred Green
Top achievements
Rank 1
 answered on 01 Mar 2018
1 answer
119 views

We have several reports that print a PDF that have been working fine for months.  Now we are getting random text and missing text.

 

Anybody have any ideas what would cause this?  I blurred some of the sensitive data.

Nasko
Telerik team
 answered on 01 Mar 2018
1 answer
152 views

Hi,

The Preview button that is at the bottom of the report parameter side bar is not showing on iPads.

Has anyone experienced this before?

TIA

Paul

Katia
Telerik team
 answered on 01 Mar 2018
3 answers
431 views
Hello everyone.

Is it possible to use 2 tables in report and display records in them ?
I have been trying from past 1 week but can't figure out a way to get the desired output. I have three tables name Addition/Deduction/Leave and master table Employee.
I am trying to get the report that which employee have got what addition or deductions and how many days he/she have been absent. I am using joins in query an the output is repeating for multiple times for one row which is fine.
But I don't want that row to be repeated in the report. Is there any way possible to fix this ? I'm attaching snap here I'm not sure if I can attach files for designer and code to database as well. Please have a look and help me as soon as possible. I've posted this question 2 times before too but got no response.

Regards,
Nasko
Telerik team
 answered on 01 Mar 2018
2 answers
981 views

Good morning Telerik team ! In fact i come from the SSRS world, in wich I was able to simply pass an already calculated list of objects to the report datasource and I don't want to use the dataMember technique to recalculate the same list again because it takes a while !

-----------------------------------------------

This is an example when i use the rdlc report :*

 LocalReport lr = new LocalReport
            {
                ReportPath = reportPath
            };

           ReportDataSource rds = new ReportDataSource();
                rds.Name = "reportDs";
                rds.Value = my already calculated List of objects
                lr.DataSources.Add(rds);

-------------------------------------------------

Can you please help me on that because we need it so much and thanks in advance !

Nabil
Top achievements
Rank 1
 answered on 28 Feb 2018
13 answers
2.3K+ views
Can anyone tell me how can I group by a column in a table and make it look like this

Company:   Company One
Item Spend Unit Price
Item 1 10 Kg 10.2
Item 3 15 Oz 1.5
Item8 20 grs 50
       
Company: Comapny Two
Item Spend Unit Price
Item 2 9 Kg 10.2
Item 3 15 Oz 1.5
Item 7 20 grs 50

Ruben
Top achievements
Rank 1
 answered on 27 Feb 2018
1 answer
256 views

I have a multi language report and need to translate the texts "select all" and "clear all" that are shown in the multi select controls on the parameters area.

I can't find where i have to translate them.

I have translated resources.en.js and kendo.culture.en.min.js

 

Thanl you

Todor
Telerik team
 answered on 27 Feb 2018
4 answers
488 views

I have a rather complex report that presents data results from a SQL Server stored procedure in a table then displays charts of the data for each category.  The chart is the same data set as the table but with a filter.  The table and each chart reference the same data source which in turn references the stored procedure.  I discovered that this causes the same rather complex stored procedure to be executed not only for the table but again separately for each chart.

My first thought was to execute this complex stored procedure only on the table while stashing the results into a SQL Server table then have the charts reference only the resultant SQL Server table.  However, a temporary table generated within the stored procedure vaporizes at the completion of the procedure.  I cannot use a static table as it would cause conflicts between multiple executions of the report from different users.  What solutions exist for this situation?

Nasko
Telerik team
 answered on 26 Feb 2018
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?