Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Open word

Open word

Scheduled Pinned Locked Moved Visual Basic
tutorialcsharp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    eyalso
    wrote on last edited by
    #1

    hi i need an example how to open word document from vb.net and also the dll file (reference) thanks Eyal

    eyalso

    K 1 Reply Last reply
    0
    • E eyalso

      hi i need an example how to open word document from vb.net and also the dll file (reference) thanks Eyal

      eyalso

      K Offline
      K Offline
      KreativeKai
      wrote on last edited by
      #2

      Here are the DLLs Interop.Microsoft.Office.Core.dll Interop.Word.dll I'm not sure what exactly you're trying to accomplish with word, but here is some code which we have doing a merge in word. Hope this helps Dim wrdApp As Word.Application Dim wrdDoc As Word.Document Dim wrdMailMerge As Word.MailMerge MainScreen.lblStatus.Text = "Starting Mail Merge Process" MainScreen.Refresh() 'open word document and perform mail merge wrdApp = CreateObject("Word.Application") wrdApp.Visible = blnShowDetail wrdDoc = wrdApp.Documents.Open(strToFilePath & strMergeDoc) wrdMailMerge = wrdDoc.MailMerge wrdMailMerge.Execute(False)

      Lost in the vast sea of .NET

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups