ActiveReports 18 .NET Edition
Samples / Samples / Advanced / Page and RDLX Reports / Custom Resource Locator
In This Topic
    Custom Resource Locator
    In This Topic

    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.

    Custom Resource Locator

    Sample Location

    Visual Basic.NET

    https://github.com/activereports/Samples18/tree/main/Advanced/PageAndRDLX/CustomResourceLocator/VB.NET

    C#

    https://github.com/activereports/Samples18/tree/main/Advanced/PageAndRDLX/CustomResourceLocator/C#

    Details

    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: