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. C#
  4. MS Word Automation

MS Word Automation

Scheduled Pinned Locked Moved C#
csharpcomhelpquestiondotnet
4 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.
  • T Offline
    T Offline
    tmoney101
    wrote on last edited by
    #1

    hey, I have devloped a program using visual c# express that performs a word mail merge using a com object. Now i am pretty new to .net and c# so this is where my problem is. I would like to know how .net works, as when I "publish" the project to a folder on my pc, and run the setup file, the program installs and it runs fine. However when I tried to run it on my laptop it would not run. It told me it didnt have the correct word PIA (interop). I also notcied that my laptop is running a different version of word. My questions are: Firstly does a pc have to have the .net framework installed to run my c# application? How can I develop my c# program so that the automation will work with a different version of word, and so that it isnt missing the required PIA? Thanks for your time. Any help or pointers is very much appreciated.

    G 1 Reply Last reply
    0
    • T tmoney101

      hey, I have devloped a program using visual c# express that performs a word mail merge using a com object. Now i am pretty new to .net and c# so this is where my problem is. I would like to know how .net works, as when I "publish" the project to a folder on my pc, and run the setup file, the program installs and it runs fine. However when I tried to run it on my laptop it would not run. It told me it didnt have the correct word PIA (interop). I also notcied that my laptop is running a different version of word. My questions are: Firstly does a pc have to have the .net framework installed to run my c# application? How can I develop my c# program so that the automation will work with a different version of word, and so that it isnt missing the required PIA? Thanks for your time. Any help or pointers is very much appreciated.

      G Offline
      G Offline
      Graham Wade
      wrote on last edited by
      #2

      Firstly I am coming from the VB side so this may or may not be relevant. Yes, you do have to have the .net framework installed unless you disable the net framework for that project. Each version of Word (and all office applications) needs it's own PIA, however, they are usually backwards compatible. So I always develop and deploy the PIA for the latest version of word that I have. As an aside the PIA for Word 2007 is not backwards compatible at the moment.:-D Regards Graham Wade

      T 1 Reply Last reply
      0
      • G Graham Wade

        Firstly I am coming from the VB side so this may or may not be relevant. Yes, you do have to have the .net framework installed unless you disable the net framework for that project. Each version of Word (and all office applications) needs it's own PIA, however, they are usually backwards compatible. So I always develop and deploy the PIA for the latest version of word that I have. As an aside the PIA for Word 2007 is not backwards compatible at the moment.:-D Regards Graham Wade

        T Offline
        T Offline
        tmoney101
        wrote on last edited by
        #3

        thanks for your help. Ok, so do you know if its possible to that the PIA installs on the machine during installation of my software? If this is possible do you know any good help / turorials? I had a search but couldnt find much. thanks again

        G 1 Reply Last reply
        0
        • T tmoney101

          thanks for your help. Ok, so do you know if its possible to that the PIA installs on the machine during installation of my software? If this is possible do you know any good help / turorials? I had a search but couldnt find much. thanks again

          G Offline
          G Offline
          Graham Wade
          wrote on last edited by
          #4

          If you are using Visual Studio, add a setup project to you solution and it shuold detect the dependancy and install it for you. Regards Graham Wade

          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