I need to NOT number the first page and then start numbering the second and subsequent pages starting with 1 (ie. 1,2,3). I have been looking at the help files and thought using ST was the answer but still have not quite figured it out. Can I also skip certain pages in the numbering (ie. *,1,2,3,*,4,5,* [*=not numbered])
Thanks in advance for any help!
PageNumbering
Re: PageNumbering
Support · Dec 13, 2005Hello,
Yes, you can skip certain pages and not have page numbering on them without any problem. You will need to use Sections in order to do this. Below is te ASP code showing that:
Code:
Dim MyDocument, MyPage
Dim MyPageNumberLabel
Dim MySection1
Dim MySection2
Dim MySection3
Set MyDocument = Server.CreateObject( "DynamicPDF.Document" )
Set MyPage = MyDocument.AddPage()
' Section 1
Set MySection1 = MyDocument.SetSectionStart()
MySection1.StartingPageNumber = 1
Dim SectionTemplate1
Set SectionTemplate1 = MySection1.SetTemplate
Set MyPageNumberLabel = SectionTemplate1.AddPageNumberingLabel("%%SP%%", 0, 680, 512, 12 )
Set MyPage = MyDocument.AddPage()
Set MyPage = MyDocument.AddPage()
' Section 2
Set MySection2 = MyDocument.SetSectionStart()
Set MyPage = MyDocument.AddPage()
' Section 3
Set MySection3 = MyDocument.SetSectionStart()
MySection3.StartingPageNumber = 3
Dim SectionTemplate3
Set SectionTemplate3 = MySection3.SetTemplate
Set MyPageNumberLabel = SectionTemplate3.AddPageNumberingLabel("%%SP%%", 0, 680, 512, 12 )
Set MyPage = MyDocument.AddPage()
MyDocument.DrawToWeb
Set MyPage = Nothing
Set MyDocument = Nothing
Thanks,
ceTe Software Support Team
Re: PageNumbering
Forum member · Dec 13, 2005Ahh! I was missing the StartingPageNumber property. Thanks!