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.