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