| public RenewalList(int KeyPK) |
| { |
| /// <summary> |
| /// Required for telerik Reporting designer support |
| /// </summary> |
| InitializeComponent(); |
| this.sqlDataAdapter1.SelectCommand.Parameters["@KeyPK"].Value = KeyPK; |
| this.DataSource = this.sqlDataAdapter1; |
I need to be able to pass parameters to a subreport sproc at run time, I would perfer session variables but I don't really care, just need to pass the variables.
Here is what I’m talking about. I need a report that shows Maintenance, Oil usage and Meter hours against Power Generators located at 15 different sites. The data needs to be filtered for what ever date range the user passes, usually a month . I don’t use a report viewer, just export the report directly to pdf and let the user save the report. They put a begin date and end date into two text boxes, and clicks the report button.
Main Report datasource is SqlDatasource with a Sproc, it returns Site Name and SiteID, No parameters, I want to see all sites data in this particular report.
Subreport 1 - Oil usage for that site. Table has fields SiteID, DateAdded, QuantityAdded
Parameters(@BeginDate, @EndDate)
Subreport 2 - Meter Hours for that site . Table has fields SiteID, ReadingDate, MeterReading
Parameters(@BeginDate, @EndDate)
Subreport 3 Maintenance performed
Parameters(@BeginDate, @EndDate)
How do I make this work with Telerik Reports??????
Right now I have hard coded the stored procedures as this is the first report I have created but next month I need to be able to provide the user with a way of filtering the report. I am in a real jam here. Any help would be greatly appreciated. Thanks
Telerik.Reporting.Processing.
DetailSection section = sender as Telerik.Reporting.Processing.DetailSection;
Telerik.Reporting.Processing.
ReportItem commessaItem = (Telerik.Reporting.Processing.ReportItem)section.ChildElements.Find("txtIdCommessa", false)[0];
Telerik.Reporting.
DetailSection section = sender as Telerik.Reporting.DetailSection;
Telerik.Reporting.
TextBox commessaItem = (Telerik.Reporting.TextBox)section.Items.Find("txtIdCommessa", false)[0];
txtConteggioUtenze.Value =
"Test";
does not print nothing.
Can anyone suggest me the object to use to handle the value of a text box or the event to use ?
do I have to use the item events to manage their values ?
I'm attaching also the report.cs to have support