sreekar please give code for converting the image into array byte...pl urgent.
vrk_raju
Posts
-
how to insert image into sql database table -
how to insert image into sql database tablei want to insert pic into datatable pl help with vb code.. str_insert = "INSERT INTO SIS_TeachingStaff VALUES('TSMT2','V.RAJANIKANTH','LECTURER','TEACHING STAFF','Msc(Maths)','" & Emp_pic.Image & " '" '" & CByte(Me.opendialogbox.FileName.Length) & "' " cmd = New SqlCommand(str_insert, conn) cmd.Connection = conn cmd.ExecuteNonQuery() error is:operator '&' is not defined for types 'string' and 'system.drawing.image'
-
how to insert image into sql database tablehow to insert the pic into the database table.. str_insert = "INSERT INTO SIS_TeachingStaff VALUES('TSMT2','V.RAJANIKANTH','LECTURER','TEACHING STAFF','Msc(Maths)','" & Emp_pic.Image & " '" '" & CByte(Me.opendialogbox.FileName.Length) & "' " cmd = New SqlCommand(str_insert, conn) cmd.Connection = conn cmd.ExecuteNonQuery() error is:operator '&' is not defined for types 'string' and 'system.drawing.image'
-
i want to print the datagridview content when i press the pirnt buttonactually iam converting the datagridview content in to excel format and printing the excel sheet. but i wnat to print the contents of datagridview directly pressing the print button.. pl help... raju :)