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

In This Topic
    ImageBytes Property
    In This Topic
    Gets or sets the Image to be printed in the Picture control. This snippet shows how to load data in script into Picture instance with name "Picture1". public void Detail_Format() { this.Picture1.ImageBytes = System.IO.File.ReadAllBytes("\\mycompany.gif"); } This snippet shows how to load data in code-based reports into Picture instance with name "picture1". Subscribe to event Section.Format of Detail of your report. private void detail_Format(object sender, System.EventArgs eArgs) { this.picture1.ImageBytes = System.IO.File.ReadAllBytes("\\mycompany.gif"); }
    Syntax
    'Declaration
     
    Public Property ImageBytes As Byte()
    public byte[] ImageBytes {get; set;}
    Example
    This snippet shows how to load data in script into Picture instance with name "Picture1".This snippet shows how to load data in code-based reports into Picture instance with name "picture1". Subscribe to event Section.Format of Detail of your report.
    public void Detail_Format()
    {
        this.Picture1.ImageBytes = System.IO.File.ReadAllBytes("\\mycompany.gif");
    }
    private void detail_Format(object sender, System.EventArgs eArgs)
    {
        this.picture1.ImageBytes = System.IO.File.ReadAllBytes("\\mycompany.gif");
    }
    See Also