ActiveReports 8
ResetImage Method
See Also  Example
GrapeCity.ActiveReports.v8 Assembly > GrapeCity.ActiveReports.SectionReportModel Namespace > Picture Class : ResetImage Method

Glossary Item Box

Sets the current image to null.

Syntax

Visual Basic (Declaration) 
Public Sub ResetImage() 
C# 
public void ResetImage()

Example

C#Copy Code
private void groupHeader1_Format(object sender, System.EventArgs eArgs)
{
    if (this.txtCountry.Value.ToString() == "France")
    {
        this.picture1.ResetImage();
    }
    else
    {
        this.picture1.Image = System.Drawing.Image.FromFile("c:\\DSCF2183.JPG");
    }
}
Visual BasicCopy Code
Private Sub GroupHeader1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles GroupHeader1.Format
    If Me.txtCountry.Value.ToString = "France" Then
        Me.Picture1.ResetImage()
    Else
        Me.Picture1.Image = System.Drawing.Image.FromFile("c:\DSCF2183.JPG")
    End If
End Sub

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Picture Class
Picture Members
ActiveReports6~GrapeCity.ActiveReports.Picture~Image