I'm a developer in a Database Solution company in Australia. Currently, I am evaluating the Apose.word for a project. I can not return the Document object through web services.
There is always an exception, when I open the web services though brower:
You must implement the Add(System.Object) method on Aspose.Words.Document because it inherits from IEnumerable.
This is the code:
public Document GenerateWord(string ValuationReference)
Aspose.Words.Demos.Viewer pathv = new Aspose.Words.Demos.Viewer();
string licenseFile = @"C:\Program Files\Aspose\Aspose.Words\Demos\Aspose.Words.Demos\bin\Aspose.Words.lic";
//This shows how to license Aspose.Words, if you don't specify a license,
//Aspose.Words works in evaluation mode.
Aspose.Words.License license = new Aspose.Words.License();
DinnerInvitationDemo demo = new DinnerInvitationDemo();
Document doc = demo.Generate(ValuationReference);
When I change the definition of the function to void, everything is all right. Should I serialize the Document object or there is something I don't kown ? Can anybody help me out?