[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.SectionReport.ScriptReferences

ScriptReferences Property

ScriptReferences

Gets a value representing the collection of references that could be use in the code of a report script.

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

A ScriptReferences object. Collection of namespaces based on strings.

Remarks

These strings are used in the 'using' or 'imports' statements to compile the script.

Examples
var sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.LoadLayout(reportFilePath);
sectionReport.Document.Printer.PrinterName = String.Empty;
if (!sectionReport.ScriptReferences.DefaultNamespaces.Contains("System.Windows.Forms"))
	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"");	
	}";