Click here to Skip to main content
15,928,734 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Backup Dbs in vb.net Pin
Dave Kreskowiak25-May-07 11:56
mveDave Kreskowiak25-May-07 11:56 
GeneralRe: Backup Dbs in vb.net Pin
Johan Hakkesteegt28-May-07 3:01
Johan Hakkesteegt28-May-07 3:01 
Questionmy.appliation.command line arguments in vbnet Pin
Sonia Gupta24-May-07 23:31
Sonia Gupta24-May-07 23:31 
AnswerRe: my.appliation.command line arguments in vbnet Pin
Colin Angus Mackay25-May-07 0:00
Colin Angus Mackay25-May-07 0:00 
GeneralRe: my.appliation.command line arguments in vbnet Pin
Sonia Gupta25-May-07 0:14
Sonia Gupta25-May-07 0:14 
QuestionOpening Image in Vb from SQL database Pin
Dileep_Vickey24-May-07 23:12
Dileep_Vickey24-May-07 23:12 
AnswerRe: Opening Image in Vb from SQL database Pin
MhmdSherin24-May-07 23:31
MhmdSherin24-May-07 23:31 
AnswerRe: Opening Image in Vb from SQL database Pin
Syed Ali Raza25-May-07 2:48
Syed Ali Raza25-May-07 2:48 
This is the sample Code
where 'FileContent' is the field name of Image and it will save the file in C:\ to open File, where document COde is the primary key in table.This Code opens all kind of File.

Dim RstRpt As New ADODB.Recordset
Set RstRpt = "Select FILECONTENT from tablename" _
& " Where DOCUMENTCODE ='" TXTBOX1.TEXT & "',CNN,ADOPENKEYSET)
Set strStream = New ADODB.Stream
strStream.Type = adTypeBinary
strStream.Open
strStream.Write RstRpt.Fields("FILECONTENT").Value
DestinationFile = "C:\" & Trim(TXTBOX1.TEXT )
strStream.SaveToFile (DestinationFile), adSaveCreateOverWrite
'FileCopy SourceFile, DestinationFile
SetAttr DestinationFile, vbNormal
Call ShellExecute(hwnd, "Open", DestinationFile, "", "C:\", 1)


Hopefully i will help u
Ali
GeneralRe: Opening Image in Vb from SQL database Pin
Dileep_Vickey27-May-07 23:38
Dileep_Vickey27-May-07 23:38 
GeneralRe: Opening Image in Vb from SQL database Pin
Dileep_Vickey27-May-07 23:44
Dileep_Vickey27-May-07 23:44 
AnswerRe: Opening Image in Vb from SQL database Pin
Syed Ali Raza29-May-07 0:23
Syed Ali Raza29-May-07 0:23 
GeneralRe: Opening Image in Vb from SQL database Pin
Syed Ali Raza29-May-07 1:01
Syed Ali Raza29-May-07 1:01 
QuestionHelp me ! Urgent. Pin
d_smit24-May-07 22:37
d_smit24-May-07 22:37 
AnswerRe: Help me ! Urgent. Pin
Colin Angus Mackay24-May-07 22:50
Colin Angus Mackay24-May-07 22:50 
GeneralRe: Help me ! Urgent. Pin
d_smit24-May-07 23:01
d_smit24-May-07 23:01 
GeneralRe: Help me ! Urgent. Pin
Sonia Gupta24-May-07 23:33
Sonia Gupta24-May-07 23:33 
GeneralRe: Help me ! Urgent. Pin
Colin Angus Mackay25-May-07 0:05
Colin Angus Mackay25-May-07 0:05 
AnswerRe: Help me ! Urgent. Pin
Tom Wright25-May-07 8:39
Tom Wright25-May-07 8:39 
AnswerHow many friggin' times do we have to tell you?!?!?! Pin
leckey25-May-07 18:00
leckey25-May-07 18:00 
QuestionReading from rtf file to DB Pin
samerh24-May-07 21:45
samerh24-May-07 21:45 
AnswerRe: Reading from rtf file to DB Pin
Dave Kreskowiak25-May-07 3:06
mveDave Kreskowiak25-May-07 3:06 
QuestionGetting values from datagridview and showing in relevant textboxes Pin
venkata lakshmi prasanna24-May-07 21:43
venkata lakshmi prasanna24-May-07 21:43 
AnswerRe: Getting values from datagridview and showing in relevant textboxes Pin
Rupesh Kumar Swami24-May-07 22:09
Rupesh Kumar Swami24-May-07 22:09 
Questioncall a .css Pin
matjame24-May-07 21:35
matjame24-May-07 21:35 
AnswerRe: call a .css Pin
Vasudevan Deepak Kumar24-May-07 22:25
Vasudevan Deepak Kumar24-May-07 22: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.