PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Prints an horizontal line at specified coordinates. Unlike iNewLine, the end of line is squared (instead of being rounded). The line is drawn at cursor location (configured by iYPos).
The print is not started (only iEndPrinting can be used to start the print).
Note: The origin (0,0) is located in the top left corner of the sheet. It takes the physical margins of printer into account.
Windows Mobile The lines will be printed only if the printer supports this feature. See Characteristics of a print on Pocket PC for more details.
Versions 18 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 18
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 19 and later
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
New in version 19
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Draws a line across the page width
// Thickness: 2.5 Pica
iHLine(0, iPageWidth(), 2.5)
iEndPrinting()
Syntax
<Result> = iHLine(<X1> , <X2> [, <Thickness> [, <Color> [, <Style>]]])
<Result>: Boolean
  • True if the line was printed,
  • False otherwise.
<X1>: Real
Horizontal coordinate of the beginning of line (in millimeters). Value included between 0 and the page width (returned by iPageWidth).
<X2>: Real
Horizontal coordinate of the end of line (in millimeters). Value included between 0 and the page width (returned by iPageWidth).
<Thickness>: Optional real
Line thickness (in picas). By default, this thickness is equal to 1 (one Pica = 0,353 mm).
To get a thickness of 1 pixel, <Thickness> must be equal to 0. When the thickness increases, it is proportionally distributed between the two sides of line.
<Color>: Optional integer
Color used for the line. If this parameter is not specified, the color used is black.
This color corresponds to:
<Style>: Optional integer constant
Type of line.
iContinuous
(default value)
Solid line
iDottedDotted line (....)
iDotAndDashDot-and-dash line (-.-.)
iDashedDashed line (-----)
WINDEVWEBDEV - Server code Caution: To get a dotted line, <Thickness> must be equal to 0. If <Thickness> is greater than or equal to 1, the line will always be a solid line. This parameter can be ignored if it is not supported by the printer driver.
Windows Mobile This parameter always corresponds to a solid line. If one of the constants corresponding to the other types of lines is used, this constant will be ignored.
Remarks
  • The line is drawn at vertical cursor location (configured by iYPos).
  • The cursor position is not modified when the outline is drawn.
  • The dotted type (iDotted) or the mixed type (iDotAndDash) combined with a thick border may produce unpleasant effects.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230prn.dll
Windows Mobile wp230prn.dll
Java wd230java.jar
Linux wd230prn.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Exemplo Ihline
iDestination(iPDF)
iPrint("")
iPrint("")
iPrint("Relatorio de Bancos")
iPrint("")
iHLine(0, iPageWidth())
iPrint("")
iPrint(iXPos(1) + "Codigo" + iXPos(18) +"Nome")
iHLine(0, 30)
iPrint("")
FOR EACH bancos
iPrint(iXPos(1)+ NumToString(bancos.id_bancos,"06d") + iXPos(18) + bancos.nome)
END
iHLine(0, iPageWidth(), 2.5)

iPrint("")
iPrint("Tipos Linhas - iDotted")
iHLine(0, 30,iDotted)
iPrint("")
iPrint("iDotAndDash")
iHLine(0, 40,iDotAndDash)
iPrint("")
iPrint("iDashed")
iHLine(0, 50,iDashed)

iEndPrinting()
ShellExecute(iLastFile())

// Blog com Video e Exemplo

http://windevdesenvolvimento.blogspot.com.br/2016/11/aula-973-windev-relatorio-33-ihline.html

https://www.youtube.com/watch?v=92Ukxmarrk0

De matos
Dec. 04 2016