ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel Namespace / Image Class / Source Property
Example

In This Topic
    Source Property (Image)
    In This Topic
    Gets or sets a source of the image.
    Syntax
    'Declaration
     
    Public Property Source As ImageSource
    public ImageSource Source {get; set;}

    Property Value

    An ImageSource value indicating the source of the image.
    Remarks

    If the source is set to ImageSource.External, the Value property evaluates to the location of the image.

    If the source is set to ImageSource.Embedded, the Value property evaluates to the name of the EmbeddedImage in the report.

    If the source is set to ImageSource.Database, the Value property evaluates to the binary data of the image.

    Example
    Image image = new Image();
    image.Source = ImageSource.External;
    image.Value = ExpressionInfo.FromString("http://example.com/image.jpg");
    See Also