[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.SectionReport.Script

Script Property

Script

Gets or sets a value containing the custom report code.

Declaration
[Browsable(false)]
public string Script { get; set; }
Property Value
Type Description
string

A string value that represents the script.

Examples
var sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.LoadLayout(reportFilePath);
sectionReport.Document.Printer.PrinterName = String.Empty;
sectionReport.AddAssembly(System.Reflection.Assembly.Load("System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"));
sectionReport.Script =
	@"public void Detail_Format()
	{
		System.Windows.Forms.MessageBox.Show(""Details"", ""Title"");	
	}";