Represents a report, which can be previewed, printed or exported.
Namespace: MindFusion.Reporting.Silverlight
Assembly: MindFusion.Reporting.Silverlight
C# Copy Code |
---|
public class Report : FrameworkElement |
Visual Basic Copy Code |
---|
Public Class Report |
You can create new reports by instantiating from this class. New pages can be added to the report by creating Page objects and adding them to the report's Pages collection. Items are added to the Report indirectly by adding them to one of the pages contained in the report.
MindFusion reports can be created declaratively, in XAML. The code of a very simple report is displayed below:
XAML Copy Code |
---|
<r:Report x:Name="myReport"> |
In the above example the r namespace is declared as follows:
XAML Copy Code |
---|
xmlns:r="http://mindfusion.eu/reporting/silverlight" |
Once the report is initialized, you need to process it by calling its Run method. After the report has been processed it is ready to be used in various scenarios.
The report can be printed by using a ReportPrinter object. For details, check Printing.
The report can be displayed on a Page through the built-in Report Viewer.
System.Object
System.Windows.DependencyObject
System.Windows.UIElement
System.Windows.FrameworkElement
MindFusion.Reporting.Silverlight.Report