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. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved C#
6 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.
  • S Offline
    S Offline
    ShaktisinhRathod
    wrote on last edited by
    #1

    [Message Deleted]

    OriginalGriffO 1 Reply Last reply
    0
    • S ShaktisinhRathod

      [Message Deleted]

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      ShaktisinhRathod wrote:

      I am Facing a problem in Word.Document.SaveAs(,) It Shows Error "No overload for method 'SaveAs' takes '11' arguments" when I run application on OTHER MACHINE which also using Office2003. Same Applicaiton works On My machine with 16 arguments

      Have you checked you are supplying 16 arguments? Beacuse the error says 11, and the compiler can normally count pretty well... BTW: when I have to supply lots of arguments to a method, I tend to put them each on a separate line - it make identifying which is which a lot easier, and you can also comment them:

      aDoc.SaveAs(ref destFile, // File name
      ref missing1, // File format default
      ref missing1, //... etc
      ref missing1,
      ref missing1,
      ref missing1,
      ref missing1,
      ref missing1,
      ref missing1,
      ref missing1,
      ref missing1,
      ref missing1,
      ref missing1,
      ref missing1,
      ref missing1,
      ref missing1);

      missing1);

      No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      S 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        ShaktisinhRathod wrote:

        I am Facing a problem in Word.Document.SaveAs(,) It Shows Error "No overload for method 'SaveAs' takes '11' arguments" when I run application on OTHER MACHINE which also using Office2003. Same Applicaiton works On My machine with 16 arguments

        Have you checked you are supplying 16 arguments? Beacuse the error says 11, and the compiler can normally count pretty well... BTW: when I have to supply lots of arguments to a method, I tend to put them each on a separate line - it make identifying which is which a lot easier, and you can also comment them:

        aDoc.SaveAs(ref destFile, // File name
        ref missing1, // File format default
        ref missing1, //... etc
        ref missing1,
        ref missing1,
        ref missing1,
        ref missing1,
        ref missing1,
        ref missing1,
        ref missing1,
        ref missing1,
        ref missing1,
        ref missing1,
        ref missing1,
        ref missing1,
        ref missing1);

        missing1);

        No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

        S Offline
        S Offline
        ShaktisinhRathod
        wrote on last edited by
        #3

        [Message Deleted]

        OriginalGriffO 1 Reply Last reply
        0
        • S ShaktisinhRathod

          [Message Deleted]

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #4

          Check your references.

          No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          S 1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            Check your references.

            No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

            S Offline
            S Offline
            ShaktisinhRathod
            wrote on last edited by
            #5

            [Message Deleted]

            OriginalGriffO 1 Reply Last reply
            0
            • S ShaktisinhRathod

              [Message Deleted]

              OriginalGriffO Offline
              OriginalGriffO Offline
              OriginalGriff
              wrote on last edited by
              #6

              Ah! So you created an application on one pc, and moved the .EXE file to another. When you run the application on the second PC, you get a run time exception "System.MissingMethodException: Method not found" or similar? Is this the correct sequence of events? Have you installed Word on the second PC, and is it the same version? Did you copy the EXE with a proper setup, or what?

              No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
              "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

              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