Gets or sets an Xml string containing the complete report definition.

Namespace:  C1.C1Report
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
[RefreshPropertiesAttribute(RefreshProperties.All)]
[BrowsableAttribute(false)]
[DefaultValueAttribute(null)]
public string ReportDefinition { get; set; }
Visual Basic
<RefreshPropertiesAttribute(RefreshProperties.All)> _
<BrowsableAttribute(False)> _
<DefaultValueAttribute(Nothing)> _
Public Property ReportDefinition As String
	Get
	Set

Remarks

This property can be used to store report definitions into databases, to place them in the clipboard, or to copy reports from one C1Report component to another.

Examples

The following code uses the ReportDefinition property to place the report definition in the clipboard and copy the report definition to another C1Report component:

Copy CodeVisual Basic
' load report definition into c1r1 component
c1r1.Load(reportFile, reportName)
' copy report definition to the clipboard
Dim repDef As String = c1r1.ReportDefinition
Clipboard.SetDataObject(repDef)
' copy report definition to c1r2 component
c1r2.ReportDefinition = repDef
Copy CodeC#
// load report definition into c1r1 component
c1r1.Load(reportFile, reportName);
// copy report definition to the clipboard
string repDef = c1r1.ReportDefinition;
Clipboard.SetDataObject(repDef);
// copy report definition to c1r2 component
c1r2.ReportDefinition = repDef;

For details, see the Loading a Report Definition from a String topic.

See Also