Display word doc in visual basic form
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Display word doc in visual basic form

  1. #1
    Join Date
    Aug 2000
    Location
    Rotterdam, Netherlands
    Posts
    115

    Display word doc in visual basic form

    Is it, in any way, possible to display a Word .doc file in your visual basic application?

    Maybe in a text box or is there a special control for it?



  2. #2
    Join Date
    Mar 2002
    Location
    NY
    Posts
    236

    Re: Display word doc in visual basic form

    you can use OLE control.

    Don't rate me, I know what I know and help when I can. Numbers means nothing.

  3. #3
    Join Date
    Aug 2000
    Location
    Rotterdam, Netherlands
    Posts
    115

    Re: Display word doc in visual basic form

    can you explain further please?

    How, or maybe have an example?



  4. #4
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: Display word doc in visual basic form

    Add webbrowser control and open word in it

    Private Sub Form_Load()
    WebBrowser1.Navigate "c:\a\user.doc"
    End Sub


    Iouri Boutchkine
    iouri@hotsheet.com
    Iouri Boutchkine
    iouri@hotsheet.NOSPAM.com

  5. #5
    Join Date
    Mar 2002
    Location
    NY
    Posts
    236

    Re: Display word doc in visual basic form

    Place OLE control on your form.
    Set SourceDoc property to your Word document path.
    And you're ready to go.
    You can do that in run-time as well.

    OLE1.SourceDoc = "C:\All_Your_Word_Docs\This.doc"

    Also, you can use the method that Iouri has posted before.


    Don't rate me, I know what I know and help when I can. Numbers means nothing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center