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. Finding specific coordinates in MS Word using C#

Finding specific coordinates in MS Word using C#

Scheduled Pinned Locked Moved C#
csharpquestion
5 Posts 3 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.
  • D Offline
    D Offline
    dspyank
    wrote on last edited by
    #1

    Hey all, I have a C# program that opens a word document for editing. I need to have it open, then locate a particular line and column in the word doc, then print a text value in the spot located. Does anyone know how I should go about this? Thank you! Dave

    D L 2 Replies Last reply
    0
    • D dspyank

      Hey all, I have a C# program that opens a word document for editing. I need to have it open, then locate a particular line and column in the word doc, then print a text value in the spot located. Does anyone know how I should go about this? Thank you! Dave

      D Offline
      D Offline
      dspyank
      wrote on last edited by
      #2

      sorry if I was vague. I just need to know if there is a snippet of code out there that I could use to find a coordinate in a word document.

      D 1 Reply Last reply
      0
      • D dspyank

        sorry if I was vague. I just need to know if there is a snippet of code out there that I could use to find a coordinate in a word document.

        D Offline
        D Offline
        Drew McGhie
        wrote on last edited by
        #3

        Can you give us more information as to what information you have that define what will be selected?

        1 Reply Last reply
        0
        • D dspyank

          Hey all, I have a C# program that opens a word document for editing. I need to have it open, then locate a particular line and column in the word doc, then print a text value in the spot located. Does anyone know how I should go about this? Thank you! Dave

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          dspyank wrote:

          then locate a particular line and column in the word doc

          Well the location is (line,column) so that is very confusing.

          dspyank wrote:

          then print a text value in the spot located

          What does that mean? Insert text at that location? If so you need to go look at the Word Object Model documentation.

          led mike

          D 1 Reply Last reply
          0
          • L led mike

            dspyank wrote:

            then locate a particular line and column in the word doc

            Well the location is (line,column) so that is very confusing.

            dspyank wrote:

            then print a text value in the spot located

            What does that mean? Insert text at that location? If so you need to go look at the Word Object Model documentation.

            led mike

            D Offline
            D Offline
            dspyank
            wrote on last edited by
            #5

            Mike,

            led mike wrote:

            then print a text value in the spot located

            locate a point ( Line 4 Column 65 ) Then have my program write to that point. I will check out the documentation. Sorry I was so confusing, but thanks for your help! Dave

            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