Click here to Skip to main content
15,888,527 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
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 
For Downloding...
'Declare on Gen.DECLARATION
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

'This line is also declared on Declaration with both,uploading and downloading
Dim strStream As ADODB.Stream

Dim RstRpt As New ADODB.Recordset
Set RstRpt = ModFncRecordSetReturnRst("Select FILECONTENT from DMSDOCCONTENTTRN" _
& " Where DOCUMENTCODE ='" & txtcode.text & "'")

If RstRpt.RecordCount > 0 Then
Set strStream = New ADODB.Stream
strStream.Type = adTypeBinary
strStream.Open
strStream.Write RstRpt.Fields("FILECONTENT").Value
DestinationFile = "C:\" & txtcode.text

strStream.SaveToFile (DestinationFile), adSaveCreateOverWrite
'FileCopy SourceFile, DestinationFile
SetAttr DestinationFile, vbNormal
Call ShellExecute(hwnd, "Open", DestinationFile, "", "C:\", 1)

'it will save it in C:\ and Open it from the C:\ Path
'In case of Any Trouble Ask me.

Take Care.
Bye.

Regards;
Ali
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 
AnswerRe: call a .css Pin
Guffa24-May-07 23:05
Guffa24-May-07 23:05 
GeneralRe: call a .css Pin
matjame24-May-07 23:59
matjame24-May-07 23:59 
GeneralRe: call a .css Pin
Colin Angus Mackay25-May-07 0:08
Colin Angus Mackay25-May-07 0:08 
AnswerRe: call a .css Pin
Guffa25-May-07 0:11
Guffa25-May-07 0:11 

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.