Click here to Skip to main content
16,014,613 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionWhen Is The Backgroundworker Really Completed? Pin
Sonhospa21-Jun-10 8:05
Sonhospa21-Jun-10 8:05 
AnswerRe: When Is The Backgroundworker Really Completed? Pin
Luc Pattyn21-Jun-10 8:30
sitebuilderLuc Pattyn21-Jun-10 8:30 
AnswerRe: When Is The Backgroundworker Really Completed? Pin
Аslam Iqbal12-Jul-10 12:45
professionalАslam Iqbal12-Jul-10 12:45 
GeneralRe: When Is The Backgroundworker Really Completed? Pin
Sonhospa13-Jul-10 11:06
Sonhospa13-Jul-10 11:06 
GeneralRe: When Is The Backgroundworker Really Completed? Pin
Аslam Iqbal14-Jul-10 8:08
professionalАslam Iqbal14-Jul-10 8:08 
QuestionStoring and reading Word documents in SQL Pin
Jason Skala20-Jun-10 17:46
Jason Skala20-Jun-10 17:46 
AnswerRe: Storing and reading Word documents in SQL Pin
Luc Pattyn20-Jun-10 18:15
sitebuilderLuc Pattyn20-Jun-10 18:15 
GeneralRe: Storing and reading Word documents in SQL Pin
Jason Skala20-Jun-10 18:36
Jason Skala20-Jun-10 18:36 
Hi Luc,
I have also tried this code that I think is what you are talking about. When I try to open the Word doc that is in the temp folder, it tells me that it is corrupt. It does however do a recovery and the document opens fine.


Dim conn = New SqlConnection(My.Settings.Maintenance_ManagementSQLConnectionString)
Dim EQ As String = Me.Monsanto_Equip_NoTextBox.Text.ToString
Dim AreaCMD As New SqlCommand()
Dim wordDoc As Byte()
AreaCMD.Connection = conn
AreaCMD.CommandText = "SELECT LOTO FROM [tower]where [monsanto equip no] = '" & EQ & "'"
conn.Open()
wordDoc = AreaCMD.ExecuteScalar()
File.WriteAllBytes("C:\Temp\WordDoc.docx", wordDoc)
GeneralRe: Storing and reading Word documents in SQL Pin
Luc Pattyn20-Jun-10 19:13
sitebuilderLuc Pattyn20-Jun-10 19:13 
GeneralRe: Storing and reading Word documents in SQL Pin
Jason Skala20-Jun-10 20:59
Jason Skala20-Jun-10 20:59 
GeneralRe: Storing and reading Word documents in SQL Pin
DaveAuld20-Jun-10 22:39
professionalDaveAuld20-Jun-10 22:39 
GeneralRe: Storing and reading Word documents in SQL Pin
Luc Pattyn21-Jun-10 2:19
sitebuilderLuc Pattyn21-Jun-10 2:19 
QuestionNeed help with Image Pin
jaygalway211620-Jun-10 17:43
jaygalway211620-Jun-10 17:43 
AnswerRe: Need help with Image Pin
Luc Pattyn20-Jun-10 18:06
sitebuilderLuc Pattyn20-Jun-10 18:06 
GeneralRe: Need help with Image Pin
jaygalway211620-Jun-10 18:44
jaygalway211620-Jun-10 18:44 
GeneralRe: Need help with Image Pin
Luc Pattyn20-Jun-10 19:04
sitebuilderLuc Pattyn20-Jun-10 19:04 
QuestionVisStudio (VB.Net) 2005 to 2008/2010 - Errors just returning from functions Pin
QuickBooksDev19-Jun-10 1:19
QuickBooksDev19-Jun-10 1:19 
AnswerRe: VisStudio (VB.Net) 2005 to 2008/2010 - Errors just returning from functions Pin
AnnieMacD19-Jun-10 1:26
AnnieMacD19-Jun-10 1:26 
AnswerRe: VisStudio (VB.Net) 2005 to 2008/2010 - Errors just returning from functions Pin
Luc Pattyn19-Jun-10 1:58
sitebuilderLuc Pattyn19-Jun-10 1:58 
AnswerRe: VisStudio (VB.Net) 2005 to 2008/2010 - Errors just returning from functions Pin
DaveAuld19-Jun-10 4:38
professionalDaveAuld19-Jun-10 4:38 
QuestionCoalesce -- Any suggestions on how to improve this? Pin
Gregory Gadow18-Jun-10 8:08
Gregory Gadow18-Jun-10 8:08 
AnswerRe: Coalesce -- Any suggestions on how to improve this? Pin
rhuiden18-Jun-10 10:26
rhuiden18-Jun-10 10:26 
QuestionSingle Sign on Pin
berba18-Jun-10 2:59
berba18-Jun-10 2:59 
AnswerRe: Single Sign on Pin
Dave Kreskowiak18-Jun-10 8:06
mveDave Kreskowiak18-Jun-10 8:06 
GeneralRe: Single Sign on Pin
berba22-Jun-10 23:15
berba22-Jun-10 23:15 

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.