[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Rendering.Tools.DataSourceTools.LoadSharedDataSource

LoadSharedDataSource Method

LoadSharedDataSource(string)

Loads a shared data source from the specified file path.

Declaration
public static DataSource LoadSharedDataSource(string filePath)
Parameters
Type Name Description
string filePath

The path to the .rdsx file.

Returns
Type Description
DataSource

The loaded DataSource.

Exceptions
Type Condition
FileNotFoundException

Thrown if the file does not exist.

LoadSharedDataSource(Stream)

Loads a shared data source from the specified XML stream.

Declaration
public static DataSource LoadSharedDataSource(Stream sharedDataSource)
Parameters
Type Name Description
Stream sharedDataSource

The Stream containing the XML data of the shared data source.

Returns
Type Description
DataSource

The loaded DataSource.

LoadSharedDataSource(ResourceLocator, string)

Loads a shared data source using the specified resource locator and data source reference.

Declaration
public static DataSource LoadSharedDataSource(ResourceLocator resourceLocator, string dataSourceReference)
Parameters
Type Name Description
ResourceLocator resourceLocator

The ResourceLocator instance.

string dataSourceReference

The reference string of the shared data source.

Returns
Type Description
DataSource

The loaded DataSource.