PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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.
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
// 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 the reports providing that the print is started (in the "Post-print code of break" for example). This function must not be used in the opening code of report. You must use ..PageNumber.
  • iPageNum should not be used in the pre-print code of a block. 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 ("Reinitialize the number of pages after the block print" in the "GUI" 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 ("Reinitialize the number of pages after the block print" in the "GUI" tab of a block description window).
    The result of iPageNum is not affected by the reinitialization of page numbers in the reports ("Reinitialize the number of pages after the block print" in the "GUI" tab of a block description window).
Component : wd240prn.dll
Minimum version required
  • 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
04 Dec. 2016