for (int i = 0; i < invoice.Audit.Steps.Count; i++) |
{ |
this.textBox10.Value = invoice.Audit.Steps[i].User; |
this.textBox11.Value = invoice.Audit.Steps[i].Status; |
this.textBox12.Value = invoice.Audit.Steps[i].Date; |
} |
Public Sub New() |
InitializeComponent() |
Me.DataSource = New Addresses() |
Me.TextBox1.Value = "=Fields.Item" |
End Sub |
Public Class Addresses |
Inherits List(Of System.Net.IPAddress) |
Public Sub New() |
Me.Add(System.Net.IPAddress.Parse("192.168.0.1")) |
Me.Add(System.Net.IPAddress.Parse("192.168.0.2")) |
Me.Add(System.Net.IPAddress.Parse("192.168.0.3")) |
Me.Add(System.Net.IPAddress.Parse("192.168.0.4")) |
Me.Add(System.Net.IPAddress.Parse("192.168.0.5")) |
End Sub |
End Class |
Public Class Addresses |
Inherits List(Of String) |
Public Sub New() |
Me.Add("192.168.0.1") |
Me.Add("192.168.0.2") |
Me.Add("192.168.0.3") |
Me.Add("192.168.0.4") |
Me.Add("192.168.0.5") |
End Sub |
End Class |
Public Class Addresses |
Private _item As System.Net.IPAddress = System.Net.IPAddress.Parse("192.168.0.2") |
Public Property Item() As System.Net.IPAddress |
Get |
Return Me._item |
End Get |
Set(ByVal value As System.Net.IPAddress) |
Me._item = value |
End Set |
End Property |
End Class |
private
void companyBooking_NeedDataSource(object sender, System.EventArgs e)
{
Telerik.Reporting.Processing.
Chart companyBookingChart = sender as Telerik.Reporting.Processing.Chart;
companyBookingChart.DataSource =
this.bokadoktornDataSetTableAdapter1.GetData();
}
In the InitializeComponent()-method I have this eventHandler.
this.companyBookingChart.NeedDataSource += new System.EventHandler(this.companyBooking_NeedDataSource);
This is my database-sqlquery, (Works fine)
SELECT YEAR(BookedDate) AS Year, MONTH(BookedDate) AS Month, CONCAT(u.FirstName, ' ', u.LastName) AS FullName, Count(*) AS NoOfBookings
FROM Bookings b
INNER JOIN Users u ON u.Id = b.BookedById
INNER JOIN CompanyUsers cu ON cu.Id = u.Id
WHERE cu.CompanyId = 1
GROUP BY u.Id, MONTH(BookedDate), YEAR(BookedDate)
ORDER BY NoOfBookings DESC;
When I preview my report nothing happends. I dont know why, everything worked fine until I added my chart. Is it something wrong with my NeedDataSource-method.
Thanks
/Emil