[]
Gets a value representing the collection of references that could be use in the code of a report script.
[Browsable(false)]
public ScriptReferences ScriptReferences { get; }
Type | Description |
---|---|
ScriptReferences | A ScriptReferences object. Collection of namespaces based on strings. |
These strings are used in the 'using' or 'imports' statements to compile the script.
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"");
}";