Telerik Forums
Reporting Forum
5 answers
3.1K+ views
Hello!

The detail section of my report is dynamic therefore report might contain 1 or 2 or more pages depending on number of rows of data. In order the footer of the report to be printed only on the last page I placed footer block on page footer and set the properties 'PrintOnFirstPage=false' and 'PrintOnLastPage=true'.

Unfortunately, in two pages report I see rather big chunk of white space below the data rows on the first page. The data rows continue on the second page. I believe this space is simply space allocated by the system for page footer which in my case is not supposed to be printed on any page except the last one. Does anybody know whether it is possible to get rid of this white space or not?

Thank you very much in advance!
Katia
Telerik team
 answered on 21 Mar 2016
3 answers
981 views

Hello,

Actually I am using kendo reporting with MVC when I run my webpage and show the reports in my local pc all is great, but when I publish my webpage into a server and run it in a web browser the webpage is ok the problem is when I try to visualize the reports in the browser it gives me the following errors.

Internal Server Error:
An error has occurred.
Object reference not set to an instance of an object.

and

Internal Server Error:
An error has occurred.
Value cannot be null. Parameter name: source

Now I update to Kendo Reporting Q2 2015 and I have the following error:

Error registering the viewer with the service.
An error has occurred.
Object reference not set to an instance of an object.

What should I do?

I will appreciate your help.

Thank you.

Nasko
Telerik team
 answered on 21 Mar 2016
7 answers
577 views
Hello,

anybody able to display vector based images (svg) in a report using PictureBox or any other Telerik control i can use in a Class based reporting solution


Thanks for any help on this
Stef
Telerik team
 answered on 21 Mar 2016
5 answers
420 views
Hello Telerik team,

do you have a sample project same as the (master detail report) but using programmatic coding. Just like in the sample,

1. Created a Department class and an employee class, the department class contain a list of employee as one of the property for the class.
2. Created as employee report with some details that will serve as my subreport
3. Created as master class that will hold the department information, then added a subreport control (RptEmployee as the ReportSource)
4. I assigned the parameters from the UI (DepartmentID)
5. The datasource was assigned at the WEB UI level (ReportViewer) RptDepartment.datasource

Now I'm stuck on the Subreport1_needdatasource event (how do I pass the data to the subreport)?
I do have access to the complete datasource so as the parameter which I can see from InnerReport.Parameter, but how do I go about assigning the right datasource item during need datasource? i got the a sample code below and somehow working but is there a better way?

        Dim sr As Telerik.Reporting.Processing.SubReport = TryCast(sender, Telerik.Reporting.Processing.SubReport)
        If Not sr Is Nothing Then
            Dim deptID As Integer = sr.InnerReport.Parameters.Values(0)
            For Each item As Department In Me.DataSource
                If item.DepartmentID = deptID Then
                    sr.InnerReport.DataSource = item.Employees
                    Exit For
                End If
            Next
        End If

Thanks for your help.
 
Stef
Telerik team
 answered on 21 Mar 2016
2 answers
244 views
Hi, we use web api call a report project library and show the report in html report view, I found a issue, sometimes when I click the preview button, the parameter area on the right will auto hide, if you click the top parameter area button, it will show again. I can't find the reason, it looks like happen sometimes. I have already update the report to 2016 SP1. How can I resolve this issue?
Henry
Top achievements
Rank 1
 answered on 21 Mar 2016
1 answer
98 views
I have a report that is inside a class libary to seperate my code from front end. But I am at a loss how I would pass parmeters to that report from code behind it would be for the columns start date and end date I would like the end user to be able to pick from date picker and then click a view report button. I have the reportviewer showing on a aspx page, but not sure how to filter that report.
Katia
Telerik team
 answered on 18 Mar 2016
11 answers
867 views
Hi there.

I am creating a report that has a table in it. I am setting the data source for the table dynamically via the 

NeedDataSource method and I am struggling creating Row Groups.

First of all, can you confirm that this is a reasonable way to approach this problem:

My Sproc returns data similar to this:

Task #, Task Name, Qualification Method

The relationship between Tasks (# and name) to Qualification Methods is 1 to many. Meaning I have multiple Qualification methods per Task. So, what I want to do is have a single row for each task, then the next rows are the Qualification methods for a given task.

What I want it to look like is this:

Task #    Task Name
1.0           Evaluate Assembly Line Safety
                
                Qualification Methods
                Assembly Safety 101 Class
                Assembly Safety 201 Class
                Assembly Safety Certification

Task #    Task Name
2.0           Supervise Assembly Line
                
                Qualification Methods
                Supervisor Assembly Line 101 Class
                Supervisor Assembly Line 201 Class
                Harassment Class
                Supervisor Assembly Line Certification

etc.

The data comes in like this:

1.0    Evaluate Assembly Line Safety    Assembly Safety 101 Class
1.0    Evaluate Assembly Line Safety    Assembly Safety 201 Class
1.0    Evaluate Assembly Line Safety    Assembly Safety Certification
2.0    Supervise Assembly Line             Supervisor Assembly Line 101 Class
2.0    Supervise Assembly Line             Supervisor Assembly Line 101 Class
2.0    Supervise Assembly Line             Harassment Class
2.0    Supervise Assembly Line             Supervisor Assembly Line Certification

So, I thought about having a table, creating another Parent Row group to hold the Task data and then use the Detail group to hold the Qualification Methods data. I think that is a reasonable approach, but I am open to suggestions.

So, that is what I have attempted to do, but ran into some problems. When I drag a table control onto my report layout page, it automatically creates a Detail Group. I select the entire table, then select the (detailGroup) down in the Row Groups section, then right click to add a parent group. The Table Group dialog comes up and you have to create a new expression etc. I do not have any fields available to me as I do not have any data sources associated with the report. So, I just try to type in my field like this: "=Fields.Tasknumber" and another column gets created on the far left and moves the detail columns to the right. Also, no Parent Group gets created. I am not sure what it is trying to do, but could use some advice.

Thanks, Mike

Update:
After struggling with this some more, it looks like the tool is trying to create a parent group based on the detail group cells you select. I still dont quite get it, so if someone could walk me through creating a table from scratch with the appropriate parent/detail groups based on the above scenario, that would be great. I have read through all of the KB articles, documentation and related Forum posts and it seems like I almost get it...

Thanks again, Mike

Stef
Telerik team
 answered on 18 Mar 2016
1 answer
131 views

Reporting Version = Q3 2014

I created a A4 report with chinese font style (微軟正黑體), but the file size of exported XPS is around 3-4MB.

if under the circumstance of fixed font-style , how can I minimum the file size?

According to what I have found , the FontEmbedding config is for  PDF device only, any similar config for XPS device?

 

Katia
Telerik team
 answered on 18 Mar 2016
1 answer
106 views

Hi, I need help.

 

I am using c #, and I'm working on a report which I have an object table which I want to fill a DataTable by code, I tried this way but it did not work.

 

DataTable table = new DataTable("patients");
table.Columns.Add("name");
table.Columns.Add("id");
table.Rows.Add("sam", 1);
table.Rows.Add("mark", 2);
table1.DataSource = table;

prints the rows that have this datatable(2), but empty.

 

Nasko
Telerik team
 answered on 18 Mar 2016
2 answers
234 views
Hi there,

trying to make the HTML5 Report Viewer work in ASP.NET MVC4 accotding to this tutorial "http://www.telerik.com/help/reporting/mvc-report-viewer-extension-embedding.html", it works all fine,only that the report viewer icons are not showing and the styling of the viewer is also messed up. Iinstalled the FontAwsome package via NuGet. Any ideas?

zwa
Aureo
Top achievements
Rank 1
 answered on 17 Mar 2016
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?