Print Preview ActiveX Active Users: 12 / Visits Today: 42
Highest Active Users: 57
Print Preview ActiveX
Home | Profile | Register | Active Topics | Members | Search | FAQ | RSS
Save Password
Forgot your Password?

 All Forums
 Print Preview
 Help file
 AddPageNumberAt - Method
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: AddPageTemplate - Method Topic Next Topic: AddFrame - Method  


327 Posts

Posted - 07/14/2005 :  11:38:16  Show Profile
Method AddPageNumberAt


This method adds a page number element to the current frame or page at the specified position.


AddPageNumberAt (strFormat As String, vXpos As Variant, vYpos As Variant, bShowMaxPages As Boolean, cAlign As Constant )

Parameter        Opt/Req     Description                
  • strFormat Required Format string
  • vXpos Optional Horizontal position, Long or String
  • vYpos Optional Vertical position, Long or String
  • bShowMaxPages Optional If True then total page count is included
  • cAlign Optional Left, Center, Right alignment

    The page number element is added to the current frame or page at the selected position.

    The sFormat string is scanned for '??', which then will be replaced by the current page number, using the current pagenumber-type.

    The vXpos and vYpos parameters may either be numbers which are taken to be the position in twips or a string like "1 cm" or "1 in". If a parameter is specified as a string then it is converted to twips using the CTwips function.

    If ShowMaxpages is set to True then the format of the output is like:

    5/16, where 5 is the actual pagenumber and 16 the last page of the document.

    In case prPTRoman is selected the output will be:



    To add a page number at a position 2 cm from top and left of that page in case prPTArabic is set:

    Preview.AddPageNumberAt "Page ??", "2 cm", "2 cm", True
    The text string printed can look like: Page 16/21

    See also:

    PageNumber --------->
    PageNumberType ->
    RomanNumber ------>

    Come and visit :

    Edited by - emiel on 07/27/2005 12:24:48
    Go to Bottom of Page
      Previous Topic: AddPageTemplate - Method Topic Next Topic: AddFrame - Method  
     New Topic  Topic Locked
     Printer Friendly
    Jump To:
    Print Preview ActiveX © Mandix Go To Top Of Page
    This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000 Version 3.4.02