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

Free Support Forum - aspose.com

I am unable to read the full word document

Hi,
Here I write a code for copy one document file to another document.I can able to copy only 9 pages.But original document contain 19 pages .Please solve this issue.
My document can be download from this link
http://209.196.42.179/SunGardWord1/Documents/MARKETINGDRPROPOSAL_10.30.07.doc
here is the code :

Aspose.Words.License lc = new Aspose.Words.License();
lc.SetLicense(MapPath("bin") + "\\Aspose.Words.lic");
Document doc = new Document(@"C:\Inetpub\wwwroot\SungardWord1\Documents\MARKETINGDRPROPOSAL_10.30.07.doc");
Document newdoc1 = new Document();
// docname = "MARKETINGDRPROPOSAL_10.30.07.doc";
foreach (Section Docsection in doc.Sections)
{
    Node dstSection = newdoc1.ImportNode(Docsection, true, ImportFormatMode.KeepSourceFormatting);
    newdoc1.AppendChild(dstSection);
}
newdoc1.Save("autoGenerated.doc", SaveFormat.Doc, SaveType.OpenInWord, this.Response);

Thanks
Sailaja.

Hi
Thanks for your inquiry. It seems that this occurs because you use Aspose.Words in evaluation mode.

  • Make sure your call to SetLicense gets executed. Step through in the debugger.
  • Make sure your code does not catch and silence an exception thrown by Aspose.Words licensing code. For example, Aspose.Words will throw if it cannot find the license.
  • Make sure SetLicense is executed before you instantiate any Document object.

Also you can attach your license file here for testing.
Best regards.