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

Free Support Forum - aspose.com

Remove first page

Hi,
I want to remove first page in aspose.words.net, PLEASE HELP!!! thamk you so much!

c51d7219-29bb-48db-8a7f-f6713737cd30.zip (28.9 KB)

@naomidu,

In this case, removing the first two Paragraphs will remove the first Page from this document:

Document doc = new Document("E:\\c51d7219-29bb-48db-8a7f-f6713737cd30.docx");

doc.FirstSection.Body.FirstParagraph.Remove();
doc.FirstSection.Body.FirstParagraph.Remove();

doc.Save("E:\\19.2.docx");

Hope, this helps.