Skip to main content

XtraReport.ScriptReferencesString Property

Gets or sets the string containing all script references represented by the XtraReport.ScriptReferences property.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

[Browsable(false)]
[DefaultValue("")]
[SRCategory(ReportStringId.CatBehavior)]
public string ScriptReferencesString { get; set; }

Property Value

Type Default Description
String String.Empty

A String containing all the strings returned by the XtraReport.ScriptReferences property.

Remarks

This property is intended to provide the capability to set the XtraReport.ScriptReferences property at runtime. Note that if you assign several assembly paths to the ScriptReferencesString property, they should be separated by a new line character.

Example

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