Telerik Forums
Reporting Forum
3 answers
95 views
Currently reports work fine if everything is designed in the designer or if the full report is generated using code. However, we use design time reports which are extended at run time based on certain parameters. Two very basic use cases for this are:
1) Adding dynamic columns to a table
2) Adding a standard fixed header / footer to the report (with contents depending on the specific report instance)

The issue we have is that the report items we need to add to the report (header or extra columns) depend on data from the database.

It is possible (with a lot of restrictions and workarounds) to get the above working, but it would really make it a lot simpler if the following were available on the report class:
a) An event  / virtual method which can be overridden in a base class which gets called after the design time definition of the report has been created (similar to form loaded in other applications).
b) A way to get access at runtime to the column definitions of the SqlDataSource linked to a table (if it is a Sql source).

Our current partial solution is to set the data source of the table at design time and design the table accordingly. In our report's constructor we clear the data source of the table. In the "need data source" event of the table we create a new data source in code (duplicating the parameters etc. which were already defined during the design), open the dataset, inspect the column list and add the table columns as required. (Actually we return two result sets, one of which is a list of columns to add as selected by the user).



Stef
Telerik team
 answered on 15 Sep 2014
3 answers
553 views
I am attempting to use the HTML5 report viewer in one application and have another application as my report server.  I have debugged and attached to the report server.  I am hitting a breakpoint in the report controller as well as in my reports constructor so I know the site is running and finding the report.

I have configured it as directed on the help page and was able to download the formats using url http://localhost:62712/api/reports/formats.

I used Fiddler to get information in the attached but what jumps out to me is:
POST /api/reports/clients/[object%20Object]/parameters HTTP/1.1

I wanted to attach the projects but was not able to with the 'Allowed extensions' but basically I have changed nothing from the demos:
http://www.telerik.com/help/reporting/telerik-reporting-rest-host-http-service-using-web-hosting.html
http://www.telerik.com/help/reporting/html5-report-viewer-embedding.html

Please help!
Cheers,
Rob
P.S. My company is evaluating this product for purchase.
Stef
Telerik team
 answered on 15 Sep 2014
1 answer
75 views
Hai all........

i created a report in telrik Q1 2014 based on Employee table based on id it displaying the values there i added a subreport passing employeedid as a parameter my example is calculating the salary details in main report i am getting Employeeid,name,Wrokingdate,dayname,daysal and in subreport i am getting employeeid,Deductiontype,deductionamount based on emplyeeid.
Now in main report i want to calculate Net sal based on (totalsalry of working days-totalDeductioamount) now how to get total deduction amount of subreport in main report can any one please help me how to get total amount of deductions
Stef
Telerik team
 answered on 15 Sep 2014
1 answer
92 views
Hello,

I have a report (in Q3 2013 version) with several datasources and parameters. Some of those parameters are binded to datasource.
When I run the report in our web application I can see in MS SQL server profiler that binded datasources are run multiple times. Some of them like 40 times during the rendering.

Did I miss something important about the rendering procedure that can cause such a behavior? I did not find any pattern, jsut that only datasources that are bidned as sources for parameters are affected. But I was not able to find a pattern.

Thank you for your advice.

J.H.

Hinata
Top achievements
Rank 1
 answered on 12 Sep 2014
1 answer
182 views
I'm trying to display a simple report with several parameters.  When I tried to run as .TypeReportSource() I was getting cast errors it couldn't convert to an IReportDocument... so I changed to .InstanceReportSource()

it finds the report, sets it... all the parameters set then I get Entry point was not found. inside the ReportViewer once it launches.

It is probably also important to note that I am currently upgrading my version of telerik from Q3 2012 to Q2 2014.  I've attached a capture of the screen I am getting.  

This is my source code:
        Dim Report As New Telerik.Reporting.InstanceReportSource

        Report.ReportDocument = New FarmListWrapper()

        Report.Parameters.Add(New Telerik.Reporting.Parameter("UserId", UserContext.Current.UserId))
        Report.Parameters.Add(New Telerik.Reporting.Parameter("CustomerId", UserContext.Current.DisplayCustomerId))
        Report.Parameters.Add(New Telerik.Reporting.Parameter("CustomerName", UserContext.Current.DisplayCustomer.CustomerName))
        Report.Parameters.Add(New Telerik.Reporting.Parameter("StateId", Nothing))
        Report.Parameters.Add(New Telerik.Reporting.Parameter("CountyId", Nothing))

        ReportViewer1.ReportSource = Report
        ReportViewer1.RefreshReport()



Nasko
Telerik team
 answered on 12 Sep 2014
1 answer
241 views
Hi All,

I have a general question about report structure and performance with the web viewer in .NET webforms.

Backgound:
==============
We have a report which need to display >330 'parent' rows. This report contains 4 sub reports, and the sub reports can contain 20-30 fields. Each sub report will show 'a number' of 'child' records (anything from 0-50) as an example.

The parent data source has all the child data attached and the sub reports use the same data source, with a parameter applied to filter the data to the current 'parentid'.

The total number of parent plus child records is approximately 2000.

Problem:
=============
After the data has been retrieved from the db (<1 second) and the report has had its data sources bound (~1-2 seconds), the next step is the rending of the report. This at the moment takes ~17 minutes on our live server.
Our live server is a quad core with 4GB RAM.

Additionally, CPU usage on both processors sits at 100% and memory at 4GB. When the report finishes running, the IIS worker process on the server drops down to 150-200MB memory usage, but the server memory usage stays at 4GB. If I reboot the server or IIS, the memory sits at < 1GB until I run the report again.
It feels like a leak, but I'm not able to put my finger on it at the moment.

This rendering performance is obviously 'undesirable' to say the least!

Question(s):
=============

1. With this quantity of data should we be experiencing this render speed? Whilst I wouldn't expect lightning performance < 1-2 minutes would seem more realistic for this quantity.

2. Having read the performance guidelines, I have shortlisted some areas we'd have available to us, could you prioritise which we may expect to see the greater benefit from?

a) We could attempt to reduce the complexity of the report by lowering the number of fields in the sub reports. Some may be able to be combined, or we may be able to concatenate the data on the server to reduce the number of controls.
b) We could attempt to remove the sub reports, and display tables as part of the original report, as described by the performance tips section.
c) We could maybe try to subset the data of the child reports somehow rather than pulling the whole lot and using the parameter on the original data source
d) We could write our own paged report viewer (but this seems to negate the value of using telerik as a report viewer), Having a look, there doesn't seem an in built way to incorporate server side paging into the report viewer (is this still the case?)

Any advice in this area would be greatly appreciated,

Kind Regards



Hinata
Top achievements
Rank 1
 answered on 12 Sep 2014
6 answers
621 views
I have the x-axis as a date field.  No matter how I adjust the formatting, it shows Date and Time as the label.  I only want the DATE.  I have used the following format strings but it totally ignores any settings: {0:d} and {0:M/d/yyyy}
Nasko
Telerik team
 answered on 11 Sep 2014
1 answer
68 views
does the web chart support 2 axis on the chart with a percentage on left side and numeric on right side.
I want to have 3 series lines with percentage, numerator, denominator on same chart.
Hinata
Top achievements
Rank 1
 answered on 11 Sep 2014
2 answers
126 views
Hi there,

I'm looking for  a piece of advice- any help would be appreciated!

Our Customer would like to have possibility to edit generated reports before exporting and/or storing them to the DB. Actually they would like to give users possibility to edit reports' content (not the layout itself) in preview mode. After several meeting-sessions we have split the requirements:
1. Power User should have possibility to create report template (stand-alone Report Designer is ok, but is there any component that can be integrated to the Web Site?);
2. Normal User should have possibility to generate a report instance basing on the template;
3. The generated report instance should be available as a preview inside our web site- Normal User will be able to edit the content (some of the fields), but not the layout;
4. The generated report can be saved to the DB and be edited later (optional);
5. There must be a possibility to export the generated report as a Pdf file (actually, they need secured Pdf). 

I've started with "googling", watching demo-videos, etc. and have found several potentially useful components, but I'm not sure if it's possible to stick them together to reach the goal... There are several findings:
1. There is no possibility to protect PDFs using Telerik- we will have to use something else;
2. HTML5 Report Viewer can be used for previewing (probably Editor component can be used together with the Viewer?);
3. Editable Pdfs are not the solution.

Did anybody implemented anything similar and/or does anybody have ideas how to make a trick?

Thanks in advance!

Cheers,
Kostya.
bk
Top achievements
Rank 1
 answered on 10 Sep 2014
11 answers
751 views
Hi,

   Sorting not working in the crosstab. I've given order by in the query. Even i set the Sorting property in crosstab. Sorting is not working. Is it a bug or i need to specify somewhere else? Pls help.

Thanks in advance.
Rich
Top achievements
Rank 1
 answered on 10 Sep 2014
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?