ISOPictureReadFromFile Method |
Read picture from file into database. Supports GIF, JPG, BMP formats.
Namespace:
SuperOffice.COM.SuperOfficeDB
Assembly:
SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntaxvoid ReadFromFile(
string filename
)
Sub ReadFromFile (
filename As String
)
Dim instance As ISOPicture
Dim filename As String
instance.ReadFromFile(filename)
void ReadFromFile(
[InAttribute] String^ filename
)
Parameters
- filename
- Type: SystemString
Full path to file
Examples[New Example]
Dim db As New Database
If db.Login("<username>", "<password>") Then
Dim person As SOPerson = db.GetPerson(7)
If Not person.HasPicture Then
person.Picture.ReadFromFile("c:\torrdal.jpg")
End If
person.Save()
Else
MsgBox("failed to log in")
End If
See Also