PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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 codeReports and QueriesWindowsiPhone/iPadWindows MobileJavaAjaxUser code (UMC) 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 codeReports and QueriesWindowsiPhone/iPadWindows MobileJavaAjaxUser code (UMC) 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 required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment