We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

No overload for method 'exexcute' takes 2 arguments

Hi i am usng aspose.words in my application

i am using below code
string Docpath = Server.MapPath("~/NormalReports/");
Document doc = new Document(path + “Template.docx”);
doc.MailMerge.Execute(new string[]{“Patientname”,“PatientAge”,“DateofBirth”,“PatientAddress”,“Number”,“TestName”,“NormalText”},
new object[] { ds.Tables[0].Rows[0].ItemArray[1].ToString(),
ds.Tables[0].Rows[0].ItemArray[2].ToString(),
ds.Tables[0].Rows[0].ItemArray[3].ToString(),
ds.Tables[0].Rows[0].ItemArray[4].ToString(),
ds.Tables[0].Rows[0].ItemArray[5].ToString(),
ds.Tables[0].Rows[0].ItemArray[8].ToString(),
ds.Tables[0].Rows[0].ItemArray[10].ToString()});
doc.Save(Docpath + “Test.docx”);

After compiling 2 errors coming

1)No overload for method ‘exexcute’ takes 2 arguments
2)No overload for method ‘Save’ takes 1 arguments

How to overcome this issue


Hi Hemanth,

Thanks for your inquiry. In case you are using older version of Aspose.Words, I suggest you please use the latest version of Aspose.Words for .NET 14.9.0.

You are using the correct code of Aspose.Words. Please use the Aspose.Words DLL from net2.0 folder. It will serve your purpose. Please read the overloaded methods of Document.Save and MailMerge.Execute from here:

http://www.aspose.com/docs/display/wordsnet/Save+Method
http://www.aspose.com/docs/display/wordsnet/Execute+Method

Please let us know if you still face any issue.