Page Numbering

Page Numbering

Forum member · Aug 21, 2008
I have the code below to add alpha numbering to my .pdf. It is adding a numeric is my numberstyle in the wrong place? What am I doing wrong? Thanks! Dim MyPDF As New PdfDocument(bytes) Dim MyDocument As New MergeDocument(MyPDF) Dim MyTemplate As New Template() MyTemplate.Elements.Add(New PageNumberingLabel("%%CP%%", 0, 680, 512, 12, Font.Helvetica, 12, TextAlign.Center)) MyDocument.Sections.Begin(NumberingStyle.AlphabeticUpperCase, MyTemplate) MyDocument.Template = MyTemplate MyDocument.Draw(MapPath("AssocUpload1/" & Session("sPropertyCode").ToString() & "/agenda.pdf")) Visible = False

Re: Page Numbering

Support · Aug 22, 2008
Hello, You can set the alphabetic page numbers to the PDF document without any problem using our product. Please use the modified code below. This will solve your problem. Dim MyPDF As New PdfDocument(bytes) Dim MyDocument As New MergeDocument() Dim MyTemplate As New Template() MyTemplate.Elements.Add(New PageNumberingLabel("%%PR%%%%SP%% of %%ST%% ", 0, 680, 512, 12, Font.Helvetica, 12, TextAlign.Center)) MyDocument.Sections.Begin(NumberingStyle.AlphabeticUpperCase) MyDocument.Append(MyPDF) MyDocument.Template = MyTemplate MyDocument.DrawToWeb() Visible = False Thanks, ceTe Software Support Team

Re: Page Numbering

Forum member · Aug 25, 2008
Thanks so much. That's what I needed.