Description
Starts a new Section on the calling document. Whenever a new section is added to the document, any page added after the section will have page number reinitialised. If the document has a PageNumberingLabel within section, it returns a new Section object.
Syntax
Public Function SetSectionStart() As Section
Return Type
A Section object.
Remarks
Refer to PageNumberingLabel for section page count. For more details on sections,please take a look at the Document Sectioning topic.
Example
[ASP - VBScript]
<!-- METADATA TYPE="typelib" UUID="{DF9225FE-94A4-490D-8CAD-E8366CE621D3}"--> <% Dim MyDocument Set MyDocument = Server.CreateObject ( "DynamicPDF.Document" ) ' Create a template object and add a page numbering label Dim MyTemplate Dim MyPageNumberLabel Dim MySection1 Dim MySection2 Dim MySection3 Set MyTemplate = MyDocument.SetTemplate Set MyPageNumberLabel = MyTemplate.AddPageNumberingLabel( "%%PR%% %%SP%% of %%ST%%", 0, 680, 512, 12 ) ' Begin the first section Set MySection1 = MyDocument.SetSectionStart() ' Add two pages MyDocument.AddPage() 'Page 1 MyDocument.AddPage() 'Page 2 ' Begin the second section Set MySection2 = MyDocument.SetSectionStart() MySection2.NumberingStyle = DPDF_NumberingStyle_AlphabeticUpperCase 'Add three pages MyDocument.AddPage() 'Page 3 MyDocument.AddPage() 'Page 4 MyDocument.AddPage() 'Page 5 ' Begin the third section specifying a section prefix Set MySection3 = MyDocument.SetSectionStart() MySection3.NumberingStyle = DPDF_NumberingStyle_AlphabeticLowerCase MySection3.Prefix = "Appendix A -" MyDocument.AddPage() 'Page 6 MyDocument.AddPage() 'Page 7 ' Draw the PDF MyDocument.DrawToWeb Set MyDocument = Nothing %>
|
See Also
Document Object
© Copyright 2007, ceTe Software