Print Preview ActiveX Active Users: 19 / Visits Today: 359
Highest Active Users: 138
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
 PageNumber - Method
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: PageNumberType - Property Topic Next Topic: PageMarginRight - Property  

emiel
Administrator

Belgium
327 Posts

Posted - 07/21/2005 :  11:25:39  Show Profile
Method PageNumber

Action:

This method returns the current page number.

Syntax:

vPageNumber = PageNumber( bMaxPages As Boolean ) As Variant

Parameter      Opt/Req   Description                  
  • bMaxPages Optional Include max pages in format
    Remarks:

    This method returns the current page number in the format specified by the current value of PageNumberType. In case that bMaxPages is FALSE and PageNumberType is set to prPTArabic the return value is a number, in case of prPTRoman the return value is a string. If bMaxPages is TRUE the return value is in both cases a string containing the actual pagenumber and last pagenumber. In all cases the return value is the actual pagenumber.

    Examples:

    PageNumberType = prPTArabic
    Preview.AddTextAt Preview.PageNumber(True), "2.0 in", "3.0 in"

    this code places the page number at the specified location as for instance: 12/48, where 12 is the actual page and 48 the last page printed.

    vPagNumber = preview.PageNumber (True)

    vPagNumber's content is for instance the page number : "12/48"

    vPagNum = Preview.PageNumber (False)

    vPagNumber's content is for instance the page number : "12"

    PageNumberType = prPTRoman
    Preview.AddTextAt Preview.PageNumber (True), "2.0 in", "3.0 in"

    this code places the page number at the specified location as for instance: xii/xlviii

    vPagNumber = preview.PageNumber (True)

    vPagNumber's content is for instance the page number : "xii/xlviii"

    vPagNum = Preview.PageNumber (False)

    vPagNumber's content is for instance the page number : "xii"

    See also:

    PageNumberType
    AddPageNumberAt
    RomanNumber

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

    Go to Bottom of Page
      Previous Topic: PageNumberType - Property Topic Next Topic: PageMarginRight - Property  
     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