I just creating a report that can count number of student for a specific age group .using database record i'm generating those reports
Here it looks like
Age | Count
18 | 344
20 | 356
30 | 567
Age Unknown | 323
Age 18, 20 , 30 , I able to count using following Edit Grouping and Edit Filtering options
for example , to count age 18
in Edit Grouping : = Fields.Age = 18
in Edit Filtering :
Expression | Operator | Value
= Fields.Age | = | 18
I want to get count for "Age Unknown" group if age column null in database , what is the grouping and Filtering syntax for that in telerik
What are the best ways to use repository/service and dependency injection with reports?
e.g. If I have an ... ICustomerReportDataService.GetCustomers(<some parameters>) that backs my report, what is the best way to get this into my report?
Note that ICustomerReportDataService is an interface that will eventually be served by the IOC container (that does not have a parameterless constructor)
Hi,
Just trying for the first time as a possible replacement for SSRS. In the designer I cannot drag items, e.g. textboxes, or picture boxes for more than a fraction of a second. It's very strange, if I move the mouse slowly, I can more the textbox a few pixels then it stops as though I've let go of the button. If I move the mouse quickly I can get more distance, but still stops after a fraction of a second. I can move the textbox with the arrow keys or by entering the location directly in the properties. Version is 9.0.15.324 on Win8 .I've tried turning off all the snap options, but the problem is the same.
Hello,
I need to create a report programmatically and watch this report in a report viewer when i push a button for print this. I have read information but i can't resolve it. This is my code:
protected void Page_Load(object sender, EventArgs e)
{
doReport();
}
private void doReport()
{
DataTable table = new DataTable();
table.Columns.Add("Col1", typeof(string));
table.Columns.Add("Col2", typeof(string));
table.Columns.Add("Col3", typeof(string));
table.Columns.Add("Col4", typeof(string));
List<
datos
> datosList = new List<
datos
>();
datosList.Add(new datos { dato1 = " lala", dato2 = "lele", dato3 = "lili", dato4 = "lolo" });
datosList.Add(new datos { dato1 = " lala", dato2 = "lele", dato3 = "lili", dato4 = "lolo" });
datosList.Add(new datos { dato1 = " lala", dato2 = "lele", dato3 = "lili", dato4 = "lolo" });
datosList.Add(new datos { dato1 = " lala", dato2 = "lele", dato3 = "lili", dato4 = "lolo" });
for (int i = 0; i < datosList.Count; i++)
{
string dato1 = datosList[i].dato1;
string dato2 = datosList[i].dato2;
string dato3 = datosList[i].dato3;
string dato4 = datosList[i].dato4;
table.Rows.Add(dato1, dato2, dato3, dato4);
}
Telerik.Reporting.ObjectDataSource objectDataSource = new Telerik.Reporting.ObjectDataSource();
objectDataSource.DataSource = table;
objectDataSource.CalculatedFields.Add(new Telerik.Reporting.CalculatedField("FullName", typeof(string), "=Fields.PagePath + ' ' + Fields.Pageviews")); // Adding a sample calculated field.
Telerik.Reporting.Report report = new Telerik.Reporting.Report();
report.Name = "prueba";
report.DocumentName = "prueba";
report.DataSource = objectDataSource;
Telerik.Reporting.InstanceReportSource reportSource = new Telerik.Reporting.InstanceReportSource();
reportSource.ReportDocument = report;
ReportViewer1.ReportSource = reportSource;
ReportViewer1.RefreshReport();
}
public class datos
{
public datos()
{}
public string dato1 ;
public string dato2 ;
public string dato3 ;
public string dato4 ;
}
Any idea? Thanks
Here I am using graph control for showing more that 25 records, If record is less than 10 dynamically populate according to condition then graph is showing properly other wise graph is overlap.
Any one have any idea which properties fulfill this requirement.
Dear all,
I have a table that is displayed in multiple pages. The Problem is the group footer of the table is only displayed in the last page. Is there any way to display the
group footer in each page?
Thanks indeed for your advice.
Regards,
A.
Hello, We have working HTML5 Report viewer with back-end WCF servics.
Now , we are looking for additional step ahead where we can generate the report programmatically and send it over as email attachment.
I have followed the article "Exporting Report Programmatically" & able to create the report programmatically, however when I am assigning the data to report source it goes as NULL.
ReportViewer1.ReportSource = reportSource;
The serveic returns valid data in Telerik.Reporting.ObjectDataSource but it goes as NULL while assigning it to Report viewer.
Any thoughts, what could be wrong here ?
topSpendersDataList = BusinessManager.GetTopSpenders();
Telerik.Reporting.ObjectDataSource objectDataSource =
new
Telerik.Reporting.ObjectDataSource();
objectDataSource.DataSource = topSpendersDataList;
// GetData returns a DataSet with three tables
objectDataSource.DataMember =
"GetTopSpenders"
;
// Indicating the exact table to bind to. If the DataMember is not specified the first data table will be used.
objectDataSource.CalculatedFields.Add(
new
Telerik.Reporting.CalculatedField(
"FirstName"
,
typeof
(
string
),
"=Fields.firstName"
));
// Adding a sample calculated field.
objectDataSource.CalculatedFields.Add(
new
Telerik.Reporting.CalculatedField(
"LastName"
,
typeof
(
string
),
"=Fields.lastName"
));
// Creating a new report
Telerik.Reporting.Report report =
new
Telerik.Reporting.Report();
// Assigning the ObjectDataSource component to the DataSource property of the report.
report.DataSource = objectDataSource;
// Use the InstanceReportSource to pass the report to the viewer for displaying
Telerik.Reporting.InstanceReportSource reportSource =
new
Telerik.Reporting.InstanceReportSource();
reportSource.ReportDocument = report;
// Assigning the report to the report viewer.
ReportViewer1.ReportSource = reportSource;
Thanks,
Nitin