private
void
radButton1_Click(
object
sender, RoutedEventArgs e)
{
reportViewer1.UseNativePrinting =
false
;
reportViewer1.Report =
null
;
reportViewer1.Report =
"TelerikNoPreview.Web.Report1,TelerikNoPreview.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
;
// Wait for complete here
// The following would be nice in a RenderCompleted event handler if one existed
var layoutRoot = (FrameworkElement)VisualTreeHelper.GetChild(reportViewer1, 0);
var viewerModel = (ReportViewerModel)layoutRoot.DataContext;
var printCommand = viewerModel.PrintReportCommand;
if
(printCommand.CanExecute(
null
))
{
printCommand.Execute(
null
);
}
}
I need to create reports with 2 levels of details. For example:
(top level): Name, SSN, Address
(1st level down): Account type, Account number
(2nd level down): Deposit/Withdrawl amount, date, payee
Can the infragistics report tool perform this?
Can there be multiple parent/child/grandchild hierarchies in the same report?
---
Also, can the data-source for this report be a hierarchical (in this case, 1 parent level + child levels + grandchild levels) xml file? How is the reported to the structure of the xml file?
Thanks!
Can the Telerik Reporting create a report that will, per programming logic remove a "panel" of a report (with this "panel" containing information that is only displayed under certain circumstances): This "inclusion" or "removal" would be based on c# code that creates logic based on data from the datasource's data value(s)?
Maybe what I refer to as a "panel" is a "sub report"...you can tell me in your lingo...
For example, there might be one section of a report that displays if the person is over age 65. Otherwise, that section of the report is not displayed (and the vertical white space is closed to 0"--meaning there is no vertical white-space where this report information would have been displayed).
I tried adding a property called "Values" that exposed the object array and setting the expression to "=Values[2]" but that didn't help either. Got the error "Missing operator before [2] operand." Also tried "=Values.2" and that didn't help either ("Cannot interpret tocken '2' at position 7.").
Everything works find if I create explicit properties on the business object to expose the values in the array, but as I noted previously, this isn't a feasible solution. So is this simply not possible with Telerik Reporting, or am I missing a subtle syntactical requirement? Am I stuck having to take my existing list of business objects and convert them into a data table to use as the report's Data Source?