A newer version of this page is available. Switch to the current version.

XtraReport.ScriptReferences Property

Specifies the collection of file names (with full paths, or file names only if the assemblies are located in GAC) of the assemblies used by the scripts in a report.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll


public string[] ScriptReferences { get; set; }
Public Property ScriptReferences As String()

Property Value

Type Description

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:

    • DevExpress.Charts.v18.2.Core
    • DevExpress.Data.v18.2
    • DevExpress.Office.v18.2.Core
    • DevExpress.PivotGrid.v18.2.Core
    • DevExpress.Printing.v18.2.Core
    • DevExpress.RichEdit.v18.2.Core
    • DevExpress.Sparkline.v18.2.Core
    • DevExpress.XtraCharts.v18.2
  • Several standard .NET framework assemblies that are always referenced by XtraReports:

    • Microsoft.CSharp.dll
    • System.dll
    • System.Data.dll
    • System.Xml.dll
    • System.Drawing.dll
    • System.Windows.Forms.dll
    • System.Core.dll
  • 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 reference .NET framework assemblies in the ScriptReferences property, specify only their file name (a report will always locate them in the "C:\Windows\Microsoft.NET\Framework" directory).
  • To reference any other assembly, specify its file path (either full or relative) along with the file name.

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";
See Also