Click here to Skip to main content
15,889,315 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionerror propagation [modified] Pin
captainmogo11-Mar-09 9:58
captainmogo11-Mar-09 9:58 
AnswerRe: error propagation Pin
Dave Kreskowiak12-Mar-09 3:46
mveDave Kreskowiak12-Mar-09 3:46 
GeneralRe: error propagation Pin
captainmogo12-Mar-09 4:15
captainmogo12-Mar-09 4:15 
GeneralRe: error propagation Pin
Luc Pattyn12-Mar-09 4:54
sitebuilderLuc Pattyn12-Mar-09 4:54 
GeneralRe: error propagation Pin
captainmogo12-Mar-09 5:03
captainmogo12-Mar-09 5:03 
GeneralRe: error propagation Pin
Luc Pattyn12-Mar-09 5:23
sitebuilderLuc Pattyn12-Mar-09 5:23 
GeneralRe: error propagation Pin
captainmogo12-Mar-09 8:14
captainmogo12-Mar-09 8:14 
QuestionHow to export to word using VB 2008 Pin
Manfred ramirez11-Mar-09 8:45
Manfred ramirez11-Mar-09 8:45 
Hello I am trying to create a windows form application with VB 2008 and i am intending to read info from any textbox or whatever and export the data to word I do not know how to do it, I did some research and this is what I found :
Dim oWord As Word._Application()
oWord = New Word.Application()

But is giving me errors the word.application declaration seems to work with older version but not 2008. Please help.

I also found this code but it does not work:

Public Module DriveWord

Public Sub Main()

'Start Word in the background
Dim App As New Word.Application()
App.DisplayAlerts = Word.WdAlertLevel.wdAlertsNone

'Create a new document
Dim Doc As Word._Doucment = App.Documents.Add()

Console.WriteLine()
Console.Writeline("Creating New Document")
Console.Writeline()

'Add a heading and two lines of text
Dim Range As Word.Range = Doc.Paragraphs.Add().Range

Range.InsertBefore ("Test Document")
Range.Style = "Heading 1"

Range = Doc.Paragraphs.Add().Range
Range.InsertBefore("Line one." &vbCrLf & "Line two.")
Range.Font.Bold = True

'Save and close the current document.
Doc.SaveAs(App.StartupPath & "\test.doc")
Doc.Close()
Doc=Nothing

End Sub

regards,
AnswerRe: How to export to word using VB 2008 Pin
Luc Pattyn11-Mar-09 9:41
sitebuilderLuc Pattyn11-Mar-09 9:41 
Questiontransfer data from xml to database table Pin
madhuchandran11-Mar-09 6:49
madhuchandran11-Mar-09 6:49 
AnswerRe: transfer data from xml to database table Pin
Jon_Boy11-Mar-09 7:01
Jon_Boy11-Mar-09 7:01 
QuestionHow to ping every computer in a LAN Pin
Amer Rehman11-Mar-09 6:41
Amer Rehman11-Mar-09 6:41 
AnswerRe: How to ping every computer in a LAN Pin
0x3c011-Mar-09 6:59
0x3c011-Mar-09 6:59 
AnswerRe: How to ping every computer in a LAN Pin
Expert Coming11-Mar-09 22:35
Expert Coming11-Mar-09 22:35 
Question.NET Remoting help Pin
OorSkietKoS11-Mar-09 5:42
OorSkietKoS11-Mar-09 5:42 
AnswerRe: .NET Remoting help Pin
Johan Hakkesteegt11-Mar-09 7:41
Johan Hakkesteegt11-Mar-09 7:41 
GeneralRe: .NET Remoting help Pin
OorSkietKoS11-Mar-09 20:25
OorSkietKoS11-Mar-09 20:25 
GeneralRe: .NET Remoting help Pin
Johan Hakkesteegt12-Mar-09 2:18
Johan Hakkesteegt12-Mar-09 2:18 
AnswerRe: .NET Remoting help Pin
Dave Kreskowiak12-Mar-09 3:40
mveDave Kreskowiak12-Mar-09 3:40 
GeneralRe: .NET Remoting help Pin
OorSkietKoS12-Mar-09 4:40
OorSkietKoS12-Mar-09 4:40 
GeneralRe: .NET Remoting help Pin
Dave Kreskowiak12-Mar-09 5:55
mveDave Kreskowiak12-Mar-09 5:55 
QuestionVb.Net tlb file Pin
rmedo11-Mar-09 4:08
rmedo11-Mar-09 4:08 
AnswerRe: Vb.Net tlb file Pin
Jon_Boy11-Mar-09 4:21
Jon_Boy11-Mar-09 4:21 
GeneralRe: Vb.Net tlb file Pin
rmedo11-Mar-09 4:23
rmedo11-Mar-09 4:23 
GeneralRe: Vb.Net tlb file Pin
Jon_Boy11-Mar-09 6:55
Jon_Boy11-Mar-09 6:55 

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.