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 a bordered text
  • Example 2: Finding out the physical margins while printing a border
Example 1: Printing a bordered text
WINDEVWindowsLinuxJavaUser 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 job
iEndPrinting()
Example 2: Finding out the physical margins while printing a border
WINDEVWindowsJavaUser 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

Last update: 05/26/2022

Send a report | Local help