page numbering question

page numbering question

Forum member · Mar 14, 2007
Hi... I'm trying to use lower case Roman numerals for my page numbering, but I'm only getting Numeric values: Dim MyPage as ceTe.DynamicPDF.Page = new ceTe.DynamicPDF.Page(dimensions) Dim documentTemplate As Template = New Template() MyDocument.Template = documentTemplate documentTemplate.Elements.Add( New PageNumberingLabel("%%CP%%", 0, 720, 550, 12, Font.Helvetica, 8)) MyDocument.Sections.Begin(NumberingStyle.RomanLowerCase) Also, how do I use the pageOffset to start page numbering from a different number? Thanks!

Re: page numbering question

Support · Mar 14, 2007
Hello, You are setting this roman letters to the section and you are using %%CP%% tag in the PageNumberingLabel. In order to show the roman letters you will have to use the %%SP%% instead of %%CP%% as it shows the section page number. CP will show the current page number for whole document not from the section. Yes, you can start the page number from a different number by setting the PageOffset property of the PageNumberingLabel to some number. pageNumberingLabel.PageOffset = 5; Thanks, ceTe Software Support Team.

Re: page numbering question

Forum member · Mar 14, 2007
Thanks for quick reply! I still think I'm missing something. Changing to SP works, but I'm not able to set the starting page. I'm getting this error: Reference to a non-shared member requires an object reference. Also, is it possible to display the page number on alternate sides of the page?

Re: page numbering question

Support · Mar 14, 2007
Hello, The error you are getting is not because of the PageNumberingLabel or the PageOffset, it is most probably because of a variable which is not in scope or you are using some instance variable without creating an object. The pageOffset will work only for the Current pages (CP) not for the section pages (SP). Yes, you can display page numbers in alternate pages by using the EvenOddTemplate, you can refer to the Even Odd Template topic on our help documentaion. Thanks, ceTe Software Support Team.

Re: page numbering question

Forum member · Mar 14, 2007
Hm...so it's *not* possible to start page numbering with Roman Numerals?

Re: page numbering question

Support · Mar 14, 2007
Hello, You can start the page numbering for a section with roman numerals without any problem. You can not use the page offset within the section. It will only apply to the page numbering that is used outside of the section. Thanks, ceTe Software Support Team

Re: page numbering question

Forum member · Mar 14, 2007
Got it. Thanks.