Global page setup for Aspose.words

Hi,

I am working on aspose.word worddocument (.net). I have couple of questions regarding pagesetup.

  1. I was wondering if I can globally apply PageSetup for all the pages in the document, instead of going section by section and defining the pagesetup.
  2. MS Word has default margins (Normal, Narrow, Moderate…). I was wondering if I can set these default styles/margins, instead of setting up all the margins manually.

Thanks,
Indu.

@Induma As regards the second request, I created a ticket to add this feature in our tracking system as WORDSNET-23931. You will be notified via this forum thread once this issue has been resolved.
As regards the first request, as far as I understand, it is necessary to implement the following code, isn’t it?

foreach (Section sect in doc.Sections)
{
	PageSetup ps = sect.PageSetup;
	ps.PageWidth = 100;
	...
}

Please note, this may be not appropriate for our product to release such insignificant functionality as the public API. Instead, you may implement it in your code.

The issues you have found earlier (filed as WORDSNET-23931) have been fixed in this Aspose.Words for .NET 22.12 update also available on NuGet.