Does #p; and #P; also work in Visual Basic? I have tried to do this and it just shows a blank space where the page numbers should be.
>Hi Sharat,
>
>Thank you for your interest in Essential PDF.
>
>1) In Grid model to get page number of the current page use #p; and to get the total number of pages you can use #P;
>
>Here is the sample which does the above and displays footer with Page X of Y format:
GridModel.zip>
>You can also get the total page number using the following code.
>
>doc.pages.count;
>
>2) You can get the page number in flow model too using #p; and #P;
>
>Here is a sample for doing this in flow model:
FlowModelSample.zip>
>However please note that the #p; symbolic representation has its limitation it can only be used with TemplateArea.
>
>Please take a look and let me know if you have any other questions.
>
>Thanks,
>Ajish.