[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.SectionReport.UserData

UserData Property

UserData

Gets or sets a value representing the custom report string data.

Declaration
[TypeConverter(typeof(StringConverter))]
public object UserData { get; set; }
Property Value
Type Description
object

A object value that refers to user string data.

Remarks

This property can be used to store user string data.

Examples
var sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.Document.Printer.PrinterName = String.Empty;
sectionReport.CompatibilityMode = GrapeCity.ActiveReports.Document.CompatibilityModes.CrossPlatform;
var ctl = new GrapeCity.ActiveReports.SectionReportModel.TextBox{Name = "text1"};
sectionReport.Sections.Add(new GrapeCity.ActiveReports.SectionReportModel.Detail{Name = "Details"});
sectionReport.Sections[0].Controls.Add(ctl);
sectionReport.ScriptLanguage = "C#";
sectionReport.Script = @"public void Detail_Format(){text1.Text = (string)rpt.UserData;}";
sectionReport.UserData = "Hello World!";