AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Propiedades WLanguage / Propiedades de ventanas, páginas y controles
  • Modifying the displayed page
  • Case of PDF and DOCX files with a large number of pages
  • Limit
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
The property PageNumber property is used to identify:
  • WINDEV the number of pages found in a "multi-page" image file. This image is displayed in an Image control or in the background of a Chart control.
  • WINDEVAndroidiPhone/iPad the number of pages found in a PDF file displayed in an Image control.
  • WINDEVAndroidiPhone/iPad the number of pages found in a PDF file displayed in a PDF Reader control.
  • WINDEV the number of pages found in a DOCX file displayed in a Word Processing control.
Reminder Some image formats (such as TIFF) can contain several images in a single file. Each image corresponds to a file page. These formats are called "multi-page" formats.
Ejemplo
WINDEV
// Modify the image file associated with the "IMG_MyImage" control
IMG_MyImage.Image = "MultipageFile.TIF"
// Successively display the different pages found in the image file
FOR I = 1 TO IMG_MyImage.NumberPage
IMG_MyImage.PageNumber = I
// Timeout for loading images
Multitask(-100)
END
WINDEVAndroidiPhone/iPad
// Display page 23 in the PDF Reader control
IF PDF_MyPDFReader.NumberPage>23 THEN
PDF_MyPDFReader.NumberDisplayedPage = 23
END
Sintaxis
<Number of pages> = <Control used>.NumberPage
<Number of pages>: Integer
  • Number of pages found in the file associated with the specified control.
  • 1 if the format of image file is not "multi-page" or if the "multi-page" format contains a single page.
  • 0 if the specified control is not associated with an image format supported by WINDEV.
<Control used>: Control name
Name of the field to be manipulated:
  • WINDEVAndroidiPhone/iPad Name of Image control,
  • WINDEV Name of Chart control,
  • WINDEVAndroidiPhone/iPad Name of the PDF Reader control.
  • WINDEV Name of the Word Processing control.
Observaciones

Modifying the displayed page

To change the page displayed:
  • For the Image controls and the Chart controls, use PageNumber.
  • For the PDF Reader controls and the Word Processing controls, use NumberDisplayedPage.
WINDEV

Case of PDF and DOCX files with a large number of pages

If the PDF or DOCX file opened in the Page control contains a large number of pages, the control loads each page in turn: not all pages are immediately accessible.
In this case:
  • the NumberPage property is blocking: it waits for the file to load.. The application is blocked.
  • The NumberAccessiblePages property returns the number of pages currently loaded in the PDF file without waiting for the load process to complete.
  • The NumberDisplayedPage property returns the number of the page currently displayed in the control (at least 50% of the page).

Limit

The NumberPage property applies only to:
  • WINDEVAndroidiPhone/iPad Image controls in windows,
  • WINDEV Chart controls in windows,
  • WINDEVAndroidiPhone/iPad PDF Reader controls.
  • WINDEV Word Processing controls.
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 10/05/2025

Señalar un error o enviar una sugerencia | Ayuda local