xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xtrareport-2e5b9205.md
Specifies the collection of file names (with full or relative paths) of the assemblies used by the scripts in a report.
Namespace : DevExpress.XtraReports.UI
Assembly : DevExpress.XtraReports.v25.2.dll
NuGet Package : DevExpress.Reporting.Core
[SRCategory(ReportStringId.CatBehavior)]
public string[] ScriptReferences { get; set; }
<SRCategory(ReportStringId.CatBehavior)>
Public Property ScriptReferences As String()
| Type | Description |
|---|---|
| String[] |
An array of String values, specifying the referenced assemblies.
|
This property value should list all the assemblies whose namespaces are included in scripts via using (C#) or Imports (Visual Basic) directives.
The following assemblies are always accessible from report scripts and adding them to the ScriptReferences collection is not required.
Core assemblies that are referenced by any reporting application:
Several standard .NET framework assemblies that are always referenced by XtraReports:
Other assemblies that are currently loaded into your application’s domain.
To enable other assemblies in report scripts, they should be listed in the XtraReport.ScriptReferences property (or its runtime counterpart - XtraReport.ScriptReferencesString).
To learn more, see Using Report Scripts.
The following example demonstrates how to add references to external assemblies whose classes can be used in scripts. While at design time this can be done via the XtraReport.ScriptReferences property, at runtime the XtraReport.ScriptReferencesString property should be used.
XtraReport1 report = new XtraReport1();
report.ScriptReferencesString = "Dlls\\MyAssembly1.dll\r\nDlls\\MyAssembly2.dll";
Dim Report As New XtraReport1()
Report.ScriptReferencesString = "Dlls\MyAssembly1.dll" + ControlChars.Cr + _
ControlChars.Lf + "Dlls\MyAssembly2.dll"
See Also