[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.SectionReportModel.Picture.ImageBytes

ImageBytes Property

ImageBytes

Gets or sets the Image to be printed in the Picture control.

Declaration
[Browsable(false)]
public byte[] ImageBytes { get; set; }
Examples

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 Format of Detail of your report.

private void detail_Format(object sender, System.EventArgs eArgs)
{
    this.picture1.ImageBytes = System.IO.File.ReadAllBytes("\\mycompany.gif");
}