ActiveReports 13
Custom Resource Locator
ActiveReports 13 > ActiveReports User Guide > Samples and Walkthroughs > Samples > Advanced > Page and RDL Reports > Custom Resource Locator

The Custom Resource Locator sample demonstrates a custom implementation of the resource locator to load pictures from the user's Pictures or My Pictures directory. In general, you can use a resource locator in a report to find any resources that a report may require.

Sample Location

Visual Basic.NET

<User Folder>\Documents\GrapeCity Samples\ActiveReports 13\Advanced\PageAndRDL\CustomResourceLocator\VB.NET


<User Folder>\Documents\GrapeCity Samples\ActiveReports 13\Advanced\PageAndRDL\CustomResourceLocator\C#


When you run this sample, you see the MainForm with the list of images from the Pictures or My Pictures directory. Select any image and click the Show Report button. A report with the selected image opens in the PreviewForm.

Caution: To run this sample properly, you must have image files in your pictures directory. If the directory does not contain any pictures, you should add them to the folder manually.

The sample consists of:

See Also

Getting Started