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. Output to MS Word using C#

Output to MS Word using C#

Scheduled Pinned Locked Moved C#
csharplearningdatabaseoraclequestion
2 Posts 2 Posters 16 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    My boss says... I need to create MS Word 97/2000 documents using C#. In other words, we want to use MS Word to display the output from a C# program. Things will change in the Word document like address, date, From, To and some accounting data pulled from our Oracle database. Of course, I'm a 3 month newbie to .NET & C# programming. Can anyone kick start me with some examples/code/book recommendations? I've got my "Learn C# in 21 Days" book ordered... -Larry:eek:

    E 1 Reply Last reply
    0
    • L Lost User

      My boss says... I need to create MS Word 97/2000 documents using C#. In other words, we want to use MS Word to display the output from a C# program. Things will change in the Word document like address, date, From, To and some accounting data pulled from our Oracle database. Of course, I'm a 3 month newbie to .NET & C# programming. Can anyone kick start me with some examples/code/book recommendations? I've got my "Learn C# in 21 Days" book ordered... -Larry:eek:

      E Offline
      E Offline
      Eric Gunnerson msft
      wrote on last edited by
      #2

      Basically, what you'll need to do is use the Word OLE interface from COM interop. As a first step, in VS you add a reference to the word exe (I think) to your project, and that will give you a managed wrapper around the COM interfaces. You can also do this from the command line with tlbimp.

      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