See Also

Picture Class  | Picture Members  | Image

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

ResetImage Method

Sets the current image to null.

[Visual Basic]
Public Sub ResetImage()
[C#]
public void ResetImage();

Example

[C#] 

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 Basic] 

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

See Also

Picture Class  | Picture Members  | Image

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.