ActiveReports 14
ActiveReports 14 User Guide / Samples and Walkthroughs / Samples / Samples / Advanced / Page and RDL 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.

    Sample Location

    Visual Basic.NET

    ..\Samples14\Advanced\PageAndRDL\CustomResourceLocator\VB.NET

    C#

    ..\Samples14\Advanced\PageAndRDL\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:

    See Also