PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • iPageNum and the reports created in the report editor
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns or initializes the number of the page currently printed.
Note: iPageNum can be used to force the number of the first page to a value different than 1.
Versions 18 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 18
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 19 and later
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
New in version 19
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the 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
// Prints the page number
iPrint(iXPos(200) + iPageNum())
// Forces the page number to 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 Java This parameter is not available.
Remarks
WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPadWindows MobileUniversal Windows 10 AppAjaxUser code (UMC)

iPageNum and the reports created in the report editor

  • iPageNum can be used in reports after the printing has been started (in the "After print break" code for instance). This function has no effect in the opening code of the report.
  • iPageNum should not be used in the pre-print code of a block. Indeed, the final size of the 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 impacted by the reinitialization of page numbers in the reports ("Reinitialize the number of pages after block print" option found in the "GUI" tab of the description window of a block).
    New in version 20
    The result of iPageNum is not impacted by the reinitialization of page numbers in the reports ("Reinitialize the number of pages after block print" option found in the "GUI" tab of the description window of a block).
    The result of iPageNum is not impacted by the reinitialization of page numbers in the reports ("Reinitialize the number of pages after block print" option found in the "GUI" tab of the description window of a block).
Components
WINDEVWEBDEV - Server codeReports and Queries wd230prn.dll
Windows Mobile wp230prn.dll
Java wd230java.jar
Linux wd230prn.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Exemplo iPageNum
IF CBOX_gerar_pdf=True THEN
iDestination(iPDF)
ELSE
iPreview(ipvZoom100)
END

iBorder(0,0,iPageWidth(),10,1,10)

//Lado Esquerdo
//Linha
//Altura
//Espessura
//Cor Fundo

iPrint(ixPos(1) + "Empresa Matos informatica Ltda "+ixPos(180) +"Pagina"+iPageNum())

iHLine(0, iPageWidth())
iPrint("")
iPrint(iXPos(1) + "Codigo" + iXPos(18) +"Nome")
FOR EACH bancos
iPrint(iXPos(1)+ NumToString(bancos.id_bancos,"06d") + iXPos(18) + bancos.nome)
END
iEndPrinting()
ShellExecute(iLastFile())

// Blog com Video e Exemplo

http://windevdesenvolvimento.blogspot.com.br/2016/11/aula-975-windev-relatorio-35-ipagenum.html

https://www.youtube.com/watch?v=yiWEo7boDcU

De matos
Dec. 04 2016