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

In This Topic
    Picture Class
    In This Topic
    Prints an image on the report.
    Object Model
    Picture Class
    Syntax
    'Declaration
     
    Public NotInheritable Class Picture 
       Inherits ARControl
       Implements GrapeCity.ActiveReports.Controls.Design.IPersistControl 
    Example
    private void detail_Format(object sender, System.EventArgs eArgs)
    {
        this.picture1.BackColor = System.Drawing.Color.Transparent;
        this.picture1.HyperLink = "mailto:support@company.com";
    	this.picture1.Image = GrapeCity.ActiveReports.Document.Drawing.Image.FromStream(new FileInfo("\\mycompany.gif").OpenRead());
        this.picture1.LineColor = System.Drawing.Color.Navy;
        this.picture1.LineStyle = LineStyle.Solid;
        this.picture1.LineWeight = 2.0f;
        this.picture1.PictureAlignment = PictureAlignment.Center;
        this.picture1.SizeMode = SizeModes.Clip;
    }
    Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format
       Me.Picture1.BackColor = System.Drawing.Color.Transparent
       Me.Picture1.HyperLink = "mailto:support@company.com"
       Me.Picture1.Image = GrapeCity.ActiveReports.Document.Drawing.Image.FromStream(New FileInfo("\mycompany.gif").OpenRead())
       Me.Picture1.LineColor = System.Drawing.Color.Navy
       Me.Picture1.LineStyle = LineStyle.Solid
       Me.Picture1.LineWeight = 2.0F
       Me.Picture1.PictureAlignment = PictureAlignment.Center
       Me.Picture1.SizeMode = SizeModes.Clip
    End Sub
    Inheritance Hierarchy

    System.Object
       GrapeCity.ActiveReports.SectionReportModel.ARControl
          GrapeCity.ActiveReports.SectionReportModel.Picture

    See Also