Hello,
We are evaluating the aspose words.net product, we are facing a scenario we cannot resolve, it’s the last thing we should test before purchasing the packing, but we can’t make it done correctly.
We would like to create a document consists of N pages, and the PageNo we would like to put on every page is calculated using a formula related to our business, for example the first page in the document may have the number 100 and the next page have the number 1, our question is how to accomplish this scenario?
Also we have another value we would like to put it in the header, it’s a value changing according to how many pages in the document, so if we have a document consisting of 8 pages, the value for the first 3 pages maybe xx and for the last 5 pages maybe yy, this is based on some conditions.
What we are looking for is something that’s firing on the evaluation of each header in every page, we will evaluate our conditions and put the correct value for the page.
Attached is a sample document we are using in the demo the SessionText field is replaced in the runtime with alot of text which make the document have N Pages. We would like to call a C# function/method on every page to determine the correct value for both “BookNo” and "PageNo"
Regards,
Ahmed