See Also

Section Members

Description

Represents a section associated with a document.

For a list of all members defined in this module, see Section members.

Object Model





Remarks

For more details on sections take a look at the Document Sectioning topic.

Interfaces

Implemented InterfaceDescription
Object 

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 MySection 
    Dim MySectionOne 
    Dim MySectionTwo 
    Dim DPDF_NumberingStyle_Numeric  
    DPDF_NumberingStyle_Numeric = 0 
    Dim DPDF_NumberingStyle_RomanLowerCase 
    DPDF_NumberingStyle_RomanLowerCase = 3 
    Set MyTemplate = MyDocument.SetTemplate 
    Set MyPageNumberLabel=MyTemplate.AddPageNumberingLabel( "%%SP%% of %%ST%%", 0, 680, 512, 12 ) 
    ' Begin the first section 
    Set MySection = MyDocument.SetSectionStart() 
    ' Add two pages 
    MyDocument.AddPage()  'Page 1 
    MyDocument.AddPage()  'Page 2 
    ' Begin the second section 
    Set MySectionOne = MyDocument.SetSectionStart() 
    MySectionOne.NumberingStyle = DPDF_NumberingStyle_Numeric   
    Dim SectionTemplate  
    Set SectionTemplate = MySectionOne.SetTemplate  
    Set MyPageNumberLabel = SectionTemplate.AddPageNumberingLabel("%%SP%% of %%ST%%", 0, 680, 512, 12 ) 
    ' Add three pages 
    MyDocument.AddPage()  'Page 3 
    MyDocument.AddPage()  'Page 4 
    MyDocument.AddPage()  'Page 5 
    ' Begin the third section specifying a section prefix 
    Set MySectionTwo = MyDocument.SetSectionStart () 
    MySectionTwo.NumberingStyle = DPDF_NumberingStyle_RomanLowerCase 
    MySectionTwo.Prefix = "Appendix A -" 
    MyDocument.AddPage()  'Page 6 
    MyDocument.AddPage()  'Page 7 
    MyDocument.DrawToWeb 
    Set MyDocument = Nothing   
%> 

See Also

Section Members

 

 


© Copyright 2007, ceTe Software