Hi i just want create a project to school i card
i do evry thing in my project but i have no idea to save photo of
student on icard
simply i want save image in data base or
access imege on form to print icard
please heme me
how can i do this
plese send me code with small project if posible
Andre, I think you had better check the value of the picture property because If I remember correctly, it is just a handle to a memory location, so in short, you will be saving a long value to the database and not the bits of the picture...
That is because the rs.fields("fieldname") = picture1.picture is only saving a long integer to the database that at one time pointed to a memory location where the picture itself was stored. Use debasisdas links above andreret's post or see these...
To Store the Image in the file use DRIVELISTBOX, DIRLISTBOX AND FILELISTBOX
NOW FIND THE IMAGE FILE. U R MAKING I-CARD PROGRAMME. SO VERY FIRSTLY YOU MUST HAVE SCANNED THE PHOTOS OF THE STUDENTS BY SCANNER OR WEB CAM. NOW AT THE TIME YOU ENTER DATA OF THE STUDENT NAME, GENDER, CLASS, DIVISION,ETC. SAVE THE
DRIVE & "\" & DIR & "\" & FILENAME ...MAY BE JPG OR BMP etc...
WHILE PRINTING IF YOU ARE USING CRYSTAL REPORT... YOU HAVE TO USE OLE OBJECT BY
INSERT --> OLE OBJECT --> BIT MAP AND CHECK .. I HAVE DONE IT ALREADY.. JUST TRY ... IF FAILED ... TRY ONCE MORE ...IF FAILED ... TRY ONCE MORE ... IF FAILED... REPLY ME ... MAI HOON NA .... I WILL SEND THE CODE
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...