Back to Devexpress

XtraReport.ScriptReferencesString Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xtrareport-28df5cab.md

latest2.9 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[Browsable(false)]
[DefaultValue("")]
[SRCategory(ReportStringId.CatBehavior)]
public string ScriptReferencesString { get; set; }
vb
<SRCategory(ReportStringId.CatBehavior)>
<Browsable(False)>
<DefaultValue("")>
Public Property ScriptReferencesString As String

Property Value

TypeDefaultDescription
StringString.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.

csharp
XtraReport1 report = new XtraReport1();
report.ScriptReferencesString = "Dlls\\MyAssembly1.dll\r\nDlls\\MyAssembly2.dll";
vb
Dim Report As New XtraReport1()
Report.ScriptReferencesString = "Dlls\MyAssembly1.dll" + ControlChars.Cr + _ 
ControlChars.Lf + "Dlls\MyAssembly2.dll"

See Also

Use Report Scripts

XtraReport Class

XtraReport Members

DevExpress.XtraReports.UI Namespace