ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Rich Text Area control
  • Example 1: Printing an image in a specific area
  • Example 2: Printing an image on several pages
iPrintImage (Example)
Example 1: Printing an image in a specific area
WINDEVWEBDEV - Server codeWindowsiPhone/iPadJavaAjax
The following example is used to print the "Flower.BMP" image in the following area: line 20 mm, column 50 mm, line 100 mm, column 80 mm.
iPrintImage("Flower.BMP", 20, 50, 100, 80)
iEndPrinting()
Example 2: Printing an image on several pages
WINDEVWEBDEV - Server codeWindowsiPhone/iPadJavaAjax
Depending on the print size of the image, the following code is used to print an image over 2 pages.
// Print Image1.gif over several pages
Height is real = iImageHeight("Image1.BMP")
Width is real = iImageWidth("Image1.BMP")
iPrintImage("Image1.BMP", 20, 50, 200, 180, 0, 0, Height/2, Width/2)
iEndPrinting()
iPrintImage("Image1.BMP", 20, 50, 200, 180, Height/2, Width/2, Height, Width)
iEndPrinting()
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help