xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xtrareport-28df5cab.md
Gets or sets the string containing all script references represented by the XtraReport.ScriptReferences property.
Namespace : DevExpress.XtraReports.UI
Assembly : DevExpress.XtraReports.v25.2.dll
NuGet Package : DevExpress.Reporting.Core
[Browsable(false)]
[DefaultValue("")]
[SRCategory(ReportStringId.CatBehavior)]
public string ScriptReferencesString { get; set; }
<SRCategory(ReportStringId.CatBehavior)>
<Browsable(False)>
<DefaultValue("")>
Public Property ScriptReferencesString As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
A String containing all the strings returned by the XtraReport.ScriptReferences property.
|
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.
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