Telerik Forums
Reporting Forum
0 answers
51 views

Hello,

I have a report that has, as datasource, a .net library from my project. I would like to inject, in any way, a instance of that library so I can preview the report correctly. Let's say that I have a Person class as datasource, with some properties: Name, Age, Gender... and in preview, I want to see how report would be shown with a Person named Mike, who's 45 years old.

Is it possible? And how? Thanks.

Eugeni
Top achievements
Rank 1
 asked on 26 Oct 2017
4 answers
54 views

After upgrading all the references to R3 2017 (11.2.17.913) for our report library and report viewer app (Silverlight), a 7 page reports has stopped printing correctly.

All of the report appears in the report viewer as 2 pages, first main page (details section), which has 6 subreports along with many other fields, and then the final page which is the report footer (has pagebreak before).

When I switch into print preview mode on the viewer, all the data is still on the report, but the PageCount is incorrect, and grows on each page...  

= "Page : " + PageNumber + " of " + PageCount

Page : 1 of 2
Page : 2 of 3
Page : 3 of 4
Page : 4 of 5
Page : 5 of 6
...

When I print the report, or save to a PDF, it only prints/saves 3 pages.  the first 2 pages from the details section, and the report footer page.  5-7 pages are missing.

On the printed report, it lists the pages as 1 of 3, 2 of 3...

Please let me know if you need more information, or if there is a better way to receive support from Telerik.

Thanks in advance for your assistance.

Katia
Telerik team
 answered on 26 Oct 2017
0 answers
98 views

Hi,

We've been receiving some complaints in regard to the report viewer printing.  If a report takes 5 minutes to load/display in the viewer - when clicking the print icon - it then takes another 5 minutes before the print options pop up as if it is working out all the data again....  I was under the impression that the cached data would be used to do the print functionality - but it is re-running the report from scratch to prepare for the printer?   Is this the case or are we doing something wrong?

 

 

Stuart
Top achievements
Rank 1
 asked on 25 Oct 2017
1 answer
536 views

Hello,

I have an object that collects data that then needs to be passed to the Report. A small example is below:

Imports Telerik.Reporting
 
Public Class Form1
    Public dataList As List(Of String)
 
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        'Fill data collection
        dataList.Add("Item 1")
        dataList.Add("Item 2")
        dataList.Add("Item 3")
 
        'Setup Telerik report
        Dim reportProcessor As New Telerik.Reporting.Processing.ReportProcessor
        Dim deviceInfo As New System.Collections.Hashtable()
 
        Dim typeReportSource As New Telerik.Reporting.TypeReportSource
        typeReportSource.TypeName = GetType(Report1).AssemblyQualifiedName
 
        Dim result As Telerik.Reporting.Processing.RenderingResult = reportProcessor.RenderReport("PDF", typeReportSource, deviceInfo)
        Dim fileName As String = "testFile" & "." & result.Extension
        Dim path As String = "C:\Projects\Telerik"
        Dim filePath As String = System.IO.Path.Combine(path, fileName)
 
        'Save Telerik report
        Using fs As New System.IO.FileStream(filePath, System.IO.FileMode.Create)
            fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length)
        End Using
 
    End Sub
End Class
 
Public Class telerikAdapter
    Public Property New dataList As List(Of String)
 
    Public Sub New()
 
    End Sub
End Class

 

In this example, I need dataList to be available in the report. I can set the DataSource to the telerikAdapter class, or any of the other classes that exist in my application. However, these classes are instantiated when Telerik runs the report, and thus have no access to data that exists elsewhere in already instantiated objects.

 

I also tried passing parameters to the report, but I can't pass a collection. I need access to several rather deep collections of data in the report.

 

There must be a way to access dataList or to pass it in when the report is run, but I can't see it.

I'm working with Windows 7 32 bit, VB.NET, and WinForms, if it makes any difference.

 

 

 

Katia
Telerik team
 answered on 25 Oct 2017
7 answers
478 views
I would like to set the Maximum and Minimum values for the DateTime axis for my graph from my datasource. 

For example i want to display from 01/01/2014  to 02/01/2014.  I currently have those two values in parameters, but how do i set the Maximum and Minimum of the scale to these paramaters?  I have tried =Parameters.Start.Value ect... (Start is my datetime parameter)

Any suggestions?
Carl
Top achievements
Rank 2
 answered on 25 Oct 2017
4 answers
294 views
 I have a report with a Map control on it. Most of the points are within a small distance of each other in one city, but there are also a few random points around the rest of the US. The map by default zooms to show all the points. Is it possible to set it to zoom to a certain level and centre on the highest value points as they are the most interesting to the user?
Ivan Hristov
Telerik team
 answered on 25 Oct 2017
1 answer
119 views

When I browsed your asp.net MVC reports demos in mobile view,I could not scroll all op reports parts, only the left pane of the report appears.

 

Is there a solution to this problem?

I need to scroll all of report details.

 

I attached two images to show the deference between desktop view and mobile view.

 

Katia
Telerik team
 answered on 25 Oct 2017
4 answers
320 views
I want to sort a column group which has values in it.When I click on sorting button ,according to the highest or lowest value it has to sort and should give the result according to these values.Can you please help me out in giving a solution for it. 
Katia
Telerik team
 answered on 25 Oct 2017
0 answers
257 views

I have been struggling to create good looking Telerik reporting charts from Telerik standalone designer. One of the things required is to display the data point values on top of each column on the chart. I have tried both OutsideEnd and OutsideColumn. None of them work pretty for the highest column. One screenshot of the chart created is shown in the attachment.

I also tried to see if I could change the scale of the Y-axis so that I could get more space on top of the chart to show the value. Unfortunately it seems that I could not find anywhere to set that.

I have also had issue of Datapoint labels overlapped in stacked bar column graph, which makes a chart ugly. I saw that this issue has been reported by other people in this forum about the new graph control. Not sure if this has been fixed in the newer version.

 

Mike
Top achievements
Rank 1
 asked on 24 Oct 2017
6 answers
371 views

Hi, 

Working on Demo Project and need to understand the work flow for telerik reports. 

1. I create Report Library were i have "RouteCustomerReport.vb"  ("Design Only" not connected with any datasource)

2. I have another project where i import ZulalReportLibrary.dll

3. Below Code display the report without data. 

 

 Private Sub frmRouteCustomerReport_Load(sender As Object, e As EventArgs) Handles MyBase.Load

        Dim rpt As New ZulalReportLibrary.RouteCustomerReport
        rpt.DataSource = MyDataSource()

        Dim TRS As New Telerik.Reporting.TypeReportSource
        TRS.TypeName = "ZulalReportLibrary.RouteCustomerReport, ZulalReportLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"

        ReportViewer1.ReportSource = TRS
        ReportViewer1.RefreshReport()

    End Sub

 

Waseem
Top achievements
Rank 1
 answered on 24 Oct 2017
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?