[]
Gets or sets a value representing the custom report string data.
[TypeConverter(typeof(StringConverter))]
public object UserData { get; set; }
Type | Description |
---|---|
object | A object value that refers to user string data. |
This property can be used to store user string data.
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!";