or
Public
Function
CsvList(
ParamArray
items
As
String
())
As
String
Return
Join((From s
In
items Where
Not
String
.IsNullOrEmpty(Trim(s))
Select
s).ToArray,
", "
)
End
Function
= my_reports.General.CsvList(
Fields.Firm,
Fields.Name1,
Fields.Name2,
Fields.Address,
Fields.AptType +
" "
+ Fields.AptNum,
Fields.City,
Fields.State,
Fields.Zip,
"PH: "
+ Fields.Phone,
"FX: "
+ Fields.Fax,
"RSN: "
+ Fields.Reason
)
<telerik:ReportViewer x:Name="ReportViewer1" Report="{Binding DataContext.Report, ElementName=this}" />
In its code behind I set the datacontext to the ViewModel:
this.DataContext = new myViewModel();
Name | Year | Amount |
Company A | 2009 | 5 |
Company A | 2009 | 5 |
Company B | 2009 | 5 |
Company B | 2009 | 5 |
Dim report As New myrpt
Dim adapter As New System.Data.SqlClient.SqlDataAdapter(sql, GetConnectionString())
report.DataSource = adapter
Me.ReportViewer1.Report = report
Me.ReportViewer1.RefreshReport()
SortableCollectionView)
to the server side (probably using a WCF service) to view it in Silverlight. In other words can the Silverlight viewer look at a Silverlight report or must it always be a report created in straight ASP.Net.
I'm trying to use Exec:
=Sum(Fields.Total)/Exec('rptName', Sum(Fields.Total))
to calculate %.
But I'm getting 0.
Order and Sample are the result of the grouping
If I use only = Exec('rptName', Sum(Fields.Total)) I'm getting 64.
Can someone help me, please...