Click here to Skip to main content
15,896,912 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
AnswerRe: How do I track in which line the error exactly occurs ? Pin
dan!sh 31-May-09 5:49
professional dan!sh 31-May-09 5:49 
AnswerRe: How do I track in which line the error exactly occurs ? Pin
Christian Graus31-May-09 12:27
protectorChristian Graus31-May-09 12:27 
QuestionHow do you populate an array with dataset values Pin
directred31-May-09 1:12
directred31-May-09 1:12 
AnswerRe: How do you populate an array with dataset values Pin
0x3c031-May-09 1:23
0x3c031-May-09 1:23 
AnswerRe: How do you populate an array with dataset values Pin
Johan Hakkesteegt31-May-09 19:56
Johan Hakkesteegt31-May-09 19:56 
QuestionHow to save and retrieve an image in Access using vb.net Pin
mirzamujib31-May-09 0:39
mirzamujib31-May-09 0:39 
AnswerRe: How to save and retrieve an image in Access using vb.net Pin
0x3c031-May-09 1:30
0x3c031-May-09 1:30 
AnswerRe: How to save and retrieve an image in Access using vb.net Pin
Dave Kreskowiak31-May-09 3:28
mveDave Kreskowiak31-May-09 3:28 
QuestionAbout Auto detecting immage face Pin
ashika198630-May-09 23:29
ashika198630-May-09 23:29 
AnswerRe: About Auto detecting immage face Pin
Dalek Dave31-May-09 1:52
professionalDalek Dave31-May-09 1:52 
GeneralRe: About Auto detecting immage face Pin
Dave Kreskowiak31-May-09 3:21
mveDave Kreskowiak31-May-09 3:21 
AnswerRe: About Auto detecting immage face Pin
Dave Kreskowiak31-May-09 3:25
mveDave Kreskowiak31-May-09 3:25 

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.