Click here to Skip to main content
16,010,553 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: DataGrid Editing Pin
MacIntyre1-Jun-09 6:32
MacIntyre1-Jun-09 6:32 
GeneralRe: DataGrid Editing Pin
MacIntyre1-Jun-09 4:37
MacIntyre1-Jun-09 4:37 
Question[Visual Basic 6.0] Convert string to unicode for command line Pin
blurboy31-May-09 22:04
blurboy31-May-09 22:04 
AnswerRe: [Visual Basic 6.0] Convert string to unicode for command line Pin
Dave Kreskowiak1-Jun-09 1:51
mveDave Kreskowiak1-Jun-09 1:51 
AnswerRe: [Visual Basic 6.0] Convert string to unicode for command line Pin
CPallini1-Jun-09 2:30
mveCPallini1-Jun-09 2:30 
Questionsum up rows in excel Pin
priy@31-May-09 21:29
priy@31-May-09 21:29 
AnswerRe: sum up rows in excel Pin
Dalek Dave31-May-09 21:35
professionalDalek Dave31-May-09 21:35 
GeneralRe: sum up rows in excel Pin
priy@31-May-09 21:44
priy@31-May-09 21:44 
GeneralRe: sum up rows in excel Pin
Dalek Dave31-May-09 22:42
professionalDalek Dave31-May-09 22:42 
GeneralRe: sum up rows in excel Pin
priy@31-May-09 23:27
priy@31-May-09 23:27 
GeneralRe: sum up rows in excel Pin
Dalek Dave31-May-09 23:39
professionalDalek Dave31-May-09 23:39 
GeneralRe: sum up rows in excel Pin
priy@1-Jun-09 0:00
priy@1-Jun-09 0:00 
GeneralRe: sum up rows in excel Pin
Dalek Dave1-Jun-09 1:01
professionalDalek Dave1-Jun-09 1:01 
GeneralRe: sum up rows in excel Pin
priy@3-Jun-09 19:17
priy@3-Jun-09 19:17 
GeneralRe: sum up rows in excel Pin
Dalek Dave3-Jun-09 22:29
professionalDalek Dave3-Jun-09 22:29 
Questionhi any one plzzz help urgent Pin
harieshkumar.n31-May-09 20:32
harieshkumar.n31-May-09 20:32 
AnswerRe: hi any one plzzz help urgent Pin
Christian Graus31-May-09 21:51
protectorChristian Graus31-May-09 21:51 
AnswerRe: hi any one plzzz help urgent Pin
0x3c01-Jun-09 0:29
0x3c01-Jun-09 0:29 
AnswerRe: hi any one plzzz help urgent Pin
Dave Kreskowiak1-Jun-09 2:06
mveDave Kreskowiak1-Jun-09 2:06 
QuestionImage not loading in Crystal Report Pin
Ovais Memon31-May-09 19:52
Ovais Memon31-May-09 19:52 
Dear All,

I have some problem in loading an image in crystal report. I am using VS 2005 with CR 9.
I have a table adapter in which i used an unbound column "Image" of type System.Byte.
And I used the following code to set image.


....
Dim s As String = dt.Rows(0).Item("ImagePath").ToString
Dim fs As FileStream = New FileStream(s, FileMode.Open, FileAccess.Read)
Dim image(fs.Length) As Byte

fs.Read(image, 0, Convert.ToInt32(fs.Length))
dt.Rows(0).Item("Image") = image ................................(1)
fs.Close()
....

But it throws an exception at (1) [Unable to cast type of System.IConvertible to type System.Byte]
I used to debug the code, and when i reached at (1), i found the datatype of dt.Rows(0).item("Image") = System.DBNull
Although it is set to type System.Byte at design time in Table Adapter.

Please help me out

Regards,

Ovais
AnswerRe: Image not loading in Crystal Report Pin
Kschuler1-Jun-09 8:12
Kschuler1-Jun-09 8:12 
QuestionHow do I track in which line the error exactly occurs ? Pin
tiagu31-May-09 4:55
tiagu31-May-09 4:55 
AnswerRe: How do I track in which line the error exactly occurs ? Pin
Dave Kreskowiak31-May-09 5:45
mveDave Kreskowiak31-May-09 5:45 
GeneralRe: How do I track in which line the error exactly occurs ? Pin
tiagu31-May-09 21:28
tiagu31-May-09 21:28 
GeneralRe: How do I track in which line the error exactly occurs ? Pin
Dave Kreskowiak1-Jun-09 1:47
mveDave Kreskowiak1-Jun-09 1:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.