PC SOFT

WINDEV的在线文档

  • Modifying the page displayed in an Image control
  • Modifying the page of the PDF file displayed in the report background
  • Number of pages found in a "multi-page" file
  • Drawing in an Image control associated with a "multi-page" image
  • Limits
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

..页码 is used to:
  • find out and modify the number of the page displayed in an Image control ("multi-page" image files)
  • find out and modify the page number of a PDF file displayed in an Image control of a window
  • find out and modify the page number of a PDF file displayed in report background.

Reminder: Some image formats (TIFF for example) can contain several images in the same file. Each image corresponds to a page of the file. These formats are called "multi-page" formats.

15版本和更高版本
WinDev This property is now available for the Java applications.
15新版本
WinDev This property is now available for the Java applications.
WinDev This property is now available for the Java applications.
例子
WinDevWindows
// Variables
i整数型
// Modify the image file associated with the "IMG_MyImage" control in a window
IMG_MyImage"MultipageFile.TIF"
// Successively display the different pages found in the image file
对于i1直到IMG_MyImage..页数
IMG_MyImage..页码=i
// Time-out for loading the images
多任务(-100
结束

语法

Finding out the number of the page displayed 隐藏详细信息

<Page Number> = <Element Name>..页码
<Page Number>: Integer
  • Number of the page currently displayed in the specified Image control or in the background of the specified report.
  • 1 if the format of the image file is not "multi-page" or if the first page of the "multi-page" file is displayed.
  • 0 if the specified control or report is not associated with a supported image format.
<Element Name>: Character string (with or without quotes)
Name of the Image control or report to use.

Modifying the number of the page displayed 隐藏详细信息

<Element Name>..页码 = <Page Number>
<Element Name>: Character string (with or without quotes)
Name of the Image control or report to use.
<Page Number>: Integer
Number of the page that must be displayed in the specified Image control or in the background of the specified report.

注意
WinDevWindows用户代码(MCU)

Modifying the page displayed in an Image control

When an image file or a PDF file is associated with a control (from the window editor, via ..图片, ...), the image displayed by default corresponds to the first page of the "multi-page" file.

To modify the page displayed in the Image control, all you have to do is use ..页码.

Caution: ..页码 only applies to the image file currently associated with the Image control.

Modifying the page of the PDF file displayed in the report background

If a PDF file is used as report form, you have the ability to choose (in the report description) the page of the PDF file that will be displayed ("Background" tab, "# of PDF page" option). To modify the page displayed in the report background by programming, use ..页码.

Caution: ..页码 only applies to the image file currently used as report form.

WinDevWindows用户代码(MCU)

Number of pages found in a "multi-page" file

To find out the number of pages found in a "multi-page" image file, use ..页数.

WinDevWindows用户代码(MCU)

Drawing in an Image control associated with a "multi-page" image

If a drawing (performed by the drawing functions) is performed in the image control, this drawing will be automatically erased when the page is modified by ..页码.

This drawing must be re-drawn whenever the page displayed in the image control is modified. To re-draw this drawing, we recommend that you use a procedure.

Limits

..页码 only applies to:
  • the image controls found in the windows.
  • the reports.