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.
  • Modifying the image
  • Modifying the background image in a report
  • Limits
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
The Property Image Fond makes it possible to know and modify the Image of Background of an element: window, page, control or report.
Remarks:
  • The background image of a report is defined in the report description("Background" tab).
Example
Versions 20 and later
// Before printing Page_header
// Modify the background image of report
// Use a different page found in a PDF
MyPrintedPictureStatus = True
MonEtat.ImageFond = PDFExtractPage("Fiche.pdf", 2)
New in version 20
// Before printing Page_header
// Modify the background image of report
// Use a different page found in a PDF
MyPrintedPictureStatus = True
MonEtat.ImageFond = PDFExtractPage("Fiche.pdf", 2)
// Before printing Page_header
// Modify the background image of report
// Use a different page found in a PDF
MyPrintedPictureStatus = True
MonEtat.ImageFond = PDFExtractPage("Fiche.pdf", 2)
Syntax

Finding out the background image of a control, window or report Hide the details

<Current image> = <Element used>.BackgroundImage
<Current image>: Character string
Name and path of background image. This background image can correspond to:
  • Versions 20 and later
    The background image of a report.
    New in version 20
    The background image of a report.
    The background image of a report.
<Element used>: Name of control, window, page or report
Name of element used.

Modifying the background image of a control, window or report Hide the details

<Element used>.BackgroundImage = <New image>
<Element used>: Name of control, window, page or report
Name of element used.
<New image>: Character string
Name and path (full, relative or UNC) of new background image. This image can correspond to:
  • Versions 20 and later
    The background image of a report.
    New in version 20
    The background image of a report.
    The background image of a report.
Remarks

Modifying the image

When changing the image, the image is sought in the application library (WDL file) then on disk at the specified location.
Remark: If an attempt is made to replace the image found in the WDL by an image with the same name found on disk, the change of image is not performed.
Versions 20 and later

Modifying the background image in a report

The Property BackgroundImage is available in all report types. The Property BackgroundImage must be called up before the start of page printing, for example in the event "Before printing the top block".
For a report on form:
  • the Property BackgroundImage replaces the Image of Background chosen in edition. All types of images supported in the reports are available (PDF, SVG, JPG, PNG, etc.).
  • the image is saved by page: therefore, a different background image can be specified for each printed page.
  • when the property is assigned, the new background image will be printed from the next page skip.
In a report other than form:
  • the image is drawn in "homothetic".
  • this property has an effect in the actual print, in the print preview and in PDF export. It has no effect for the other types of export (RTF, XLS, HTML, XML).
Remark: The management of margins specified in the "Background" tab of the report description ("Ignore the physical margins of the printer") is ignored: the physical margins are systematically ignored.
New in version 20

Modifying the background image in a report

The Property BackgroundImage is available in all report types. The Property BackgroundImage must be called up before the start of page printing, for example in the event "Before printing the top block".
For a report on form:
  • the Property BackgroundImage replaces the Image of Background chosen in edition. All types of images supported in the reports are available (PDF, SVG, JPG, PNG, etc.).
  • the image is saved by page: therefore, a different background image can be specified for each printed page.
  • when the property is assigned, the new background image will be printed from the next page skip.
In a report other than form:
  • the image is drawn in "homothetic".
  • this property has an effect in the actual print, in the print preview and in PDF export. It has no effect for the other types of export (RTF, XLS, HTML, XML).
Remark: The management of margins specified in the "Background" tab of the report description ("Ignore the physical margins of the printer") is ignored: the physical margins are systematically ignored.

Modifying the background image in a report

The Property BackgroundImage is available in all report types. The Property BackgroundImage must be called up before the start of page printing, for example in the event "Before printing the top block".
For a report on form:
  • the Property BackgroundImage replaces the Image of Background chosen in edition. All types of images supported in the reports are available (PDF, SVG, JPG, PNG, etc.).
  • the image is saved by page: therefore, a different background image can be specified for each printed page.
  • when the property is assigned, the new background image will be printed from the next page skip.
In a report other than form:
  • the image is drawn in "homothetic".
  • this property has an effect in the actual print, in the print preview and in PDF export. It has no effect for the other types of export (RTF, XLS, HTML, XML).
Remark: The management of margins specified in the "Background" tab of the report description ("Ignore the physical margins of the printer") is ignored: the physical margins are systematically ignored.

Limits

Minimum version required
  • Version 9
This page is also available for…
Comments
Video BackgroundImage
https://youtu.be/mZCAUmMzZDA

https://windevdesenvolvimento.blogspot.com/2019/03/dicas-2058-windev-comandos-52.html

// BTN_ALTERAR_FUNDO_BACKGROUNDIMAGE
WIN_COMANDOS2..BackgroundImage = "C:\TEMP\011_ErpMatos_1.png"
amarildo
28 Mar. 2019