ActiveReports 18 .NET Edition
MESCIUS.ActiveReports Assembly / GrapeCity.ActiveReports.SectionReportModel Namespace / Picture Class / Image Property
Example

In This Topic
    Image Property (Picture)
    In This Topic
    Gets or sets the Image to be printed in the Picture control.
    Syntax
    'Declaration
     
    Public Property Image As Image
    public Image Image {get; set;}

    Property Value

    A GrapeCity.ActiveReports.Document.Drawing.Image value that represents the image to be printed in the Picture control.
    Example
    private void detail_Format(object sender, System.EventArgs eArgs)
    {   
       this.picture1.Image = GrapeCity.ActiveReports.Document.Drawing.Image.FromStream(new FileInfo("\\mycompany.gif").OpenRead());
    }
    Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format
       Me.picture1.Image = GrapeCity.ActiveReports.Document.Drawing.Image.FromStream(New FileInfo("\mycompany.gif").OpenRead())
    End Sub
    See Also