7
Contributors
10
Replies
11
Views
9 Years
Discussion Span
Last Post by Sawamura
Featured Replies
  • 1

    see this link [URL="http://www.vbdotnetheaven.com/UploadFile/mgold/WordDocument04182005081441AM/WordDocument.aspx"]http://www.vbdotnetheaven.com/UploadFile/mgold/WordDocument04182005081441AM/WordDocument.aspx[/URL] Read More

0

i can answer that,

Dim oWord
        Dim rng
        Dim odoc
        oWord = CreateObject("Word.Application")
        oWord.Visible = True
        odoc = oWord.Documents.Add
        rng = oDoc.Range(Start:=0, End:=0)
        rng.text = TextBox1.Text

at least i think this is it

0

i can answer that,

Dim oWord
        Dim rng
        Dim odoc
        oWord = CreateObject("Word.Application")
        oWord.Visible = True
        odoc = oWord.Documents.Add
        rng = oDoc.Range(Start:=0, End:=0)
        rng.text = TextBox1.Text

at least i think this is it

thank u for u answer
but this is not suit
any other way

0

System.Diagnostics.Process.Start _
("Your doc name.doc")

give some breif code to open a word document

0

Dear rhinocort23
Thank you for ur reply
It will work .
but it will display only the content of filename in textbox.

i want to open a file in the textbox1.text
plz help me

0

well for that you have to use an open file dialog thing which im not to good at, someone else will have to help with that

1

All you have to do to open any file is Process.start("C:\example\example.doc")

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.