MindFusion.Reporting for Silverlight Programmer's Guide
Report.FromDictionary Method
See Also
 





Initializes a new instance of the Report class from the resource identified by the specified key in the dictionary with the specified Uri.

Namespace: MindFusion.Reporting.Silverlight
Assembly: MindFusion.Reporting.Silverlight

 Syntax

C#  Copy Code

public static Report FromDictionary (
    Uri uri,
    string key
)

Visual Basic  Copy Code

Public Shared Function FromDictionary ( _
    uri As Uri, _
    key As String _
) As Report

 Parameters

uri
The Uri of the dictionary containing the report.
key

The key of the report.

 Return Value

The report with the specified key.

 Remarks

This is a convenience method, which facilitates Report loading from resource dictionaries. The method will throw an exception if either uri does not resolve to a ResourceDictionary or the dictionary does not contain a report with the specified key.

 Example

Assuming that there is a resource dictionary MyReport.xaml in the current application, which contains a report resource with key simpleReport, the following code loads the report from the dictionary:

C#  Copy Code
var report = Report.FromDictionary(new Uri(@"MyReport.xaml", UriKind.Relative), "simpleReport");

 See Also

Report Members
Report Class
MindFusion.Reporting.Silverlight Namespace