Print Preview ActiveX Active Users: 22 / Visits Today: 29
Highest Active Users: 22
Print Preview ActiveX
Home | Profile | Register | Active Topics | Members | Search | FAQ | RSS
Username:
Password:
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  

emiel
Administrator

Belgium
327 Posts

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

Action:

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

Syntax:

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
    Remarks:

    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:

    v/xvi

    Example:

    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 ---------> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=423
    PageNumberType -> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=424
    RomanNumber ------> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=451

    Come and visit :
    www.immoassist.com
    www.ppreview.net
    www.vbdiamond.com
    www.d2dsources.com
    www.mandix.com

    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.06 seconds. Powered By: Snitz Forums 2000 Version 3.4.02