PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Function iPageNum and the reports created with the report editor
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns or initializes the number of the page currently printed.
Remark: iPageNum can be used to force the number of first page to a number other than 1.
Versions 18 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 18
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 19 and later
Android This function is now available for Android applications.
Android Widget This function is now available in Android widget mode.
New in version 19
Android This function is now available for Android applications.
Android Widget This function is now available in Android widget mode.
Android This function is now available for Android applications.
Android Widget This function is now available in Android widget mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Imprime le numéro de page
iPrint(iXPos(200) + iPageNum())
// Force le numéro de page à 10
iPageNum(10)
...
iEndPrinting()
Syntax
<Result> = iPageNum([<Page number>])
<Result>: Integer
Number of current page.
<Page number>: Optional integer
New number for the current page.
AndroidAndroid Widget This parameter is not available.
Remarks

Function iPageNum and the reports created with the report editor

  • The iPageNum function can be used in reports provided that printing has been started (for example in the "After print break" event). This function must not be used in the report opening code. The Property PageNumber should be used.
  • It is not recommended to use the iPageNum function in the preprint code of a. Indeed, the final size of block is not known in this process and the page number on which the block will be positioned may change.
  • Versions 20 and later
    The result of iPageNum is not affected by the reinitialization of page numbers in the reports ("Reset the number of pages after printing the block" in the "UI" tab of a block description window).
    New in version 20
    The result of iPageNum is not affected by the reinitialization of page numbers in the reports ("Reset the number of pages after printing the block" in the "UI" tab of a block description window).
    The result of iPageNum is not affected by the reinitialization of page numbers in the reports ("Reset the number of pages after printing the block" in the "UI" tab of a block description window).
Component: wd270prn.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment