PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Example 1: Printing a bordered text
  • Example 2: Finding out the physical margins while printing a border
Example 1: Printing a bordered text
WINDEVWEBDEV - Server codeWindowsLinuxWindows MobileJavaAjaxUser code (UMC) The following example is used to print a bordered text.
// Prints the name on line 1, at 50 mm from the side of the page
iPrint(iXPos(50) + CU.CUSTNAME)
// Encloses the text in a line equal to 2 Pica point
// The background color of the border contains 50% gray
iBorder(0, 0, 10, iPageWidth(), 2, 50)
// Ends the print
iEndPrinting()
Example 2: Finding out the physical margins while printing a border
WINDEVWEBDEV - Server codeWindowsWindows MobileJavaAjaxUser code (UMC) The following example is used to find out the physical margins of the printer.
// Find out the physical margins while drawing a border
iMargin(0, 0, 0, 0)
iBorder(0, 0, iPageWidth(), iPageHeight())
iEndPrinting()
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment