PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Printing text
  • Printing images
  • Printing drawings
  • Other functions
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
Step 3: Printing characters, images, ...
Overview
This step consists in "sending the different elements to print to the printer":
  • text,
  • images,
  • drawings, ...
The actual print on the requested support (configured by iPreview or iDestination) will be effective at the end of print (iEndPrinting).
Windows Mobile Caution: The borders, the lines and the images are 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 The print in WLanguage is now available for the iPhone/iPad applications.
New in version 18
iPhone/iPad The print in WLanguage is now available for the iPhone/iPad applications.
iPhone/iPad The print in WLanguage is now available for the iPhone/iPad applications.
Printing text
The main WLanguage functions used to print texts are as follows.
Notes:
  • The texts can use different fonts: the font is selected by iFont.
  • The texts can be printed at specific positions: iXPos and iYPos.
Versions 09 and later
iDidotFont
New in version 09
iDidotFont
iDidotFont
Selects the unit that will be used for the height of the fonts (created by iCreateFont): DIDOT point or PICA point.
Versions 09 and later
iFont
New in version 09
iFont
iFont
Selects the default font.
Versions 09 and later
iPrint
New in version 09
iPrint
iPrint
Sends the character string passed in parameter to the print buffer.
Versions 09 and later
iPrintWord
New in version 09
iPrintWord
iPrintWord
Sends the character string passed in parameter to the print "buffer".
Versions 09 and later
iPrintZone
New in version 09
iPrintZone
iPrintZone
Prints a text in a rectangular area.
Versions 09 and later
iTextHeight
New in version 09
iTextHeight
iTextHeight
Calculates the height of the font for the text to print (en millimeters).
Versions 09 and later
iTextWidth
New in version 09
iTextWidth
iTextWidth
Calculates the width (in millimeters) of the text to print, according to the specified font.
Versions 09 and later
iXPos
New in version 09
iXPos
iXPos
Used to manage the horizontal position (X coordinate) of print cursor in the page.
Versions 09 and later
iYPos
New in version 09
iYPos
iYPos
Used to manage the vertical position (Y coordinate) of print cursor in the page.
Versions 09 and later
iZoneHeight
New in version 09
iZoneHeight
iZoneHeight
Calculates the necessary height of a fixed-width area in order for the entire text using the current font to be printed in this area.
Printing images
Several WLanguage functions can be used to print images while taking the image size into account.
Versions 09 and later
iImageHeight
New in version 09
iImageHeight
iImageHeight
Calculates the height of the image to print (in millimeters).
Versions 09 and later
iImageWidth
New in version 09
iImageWidth
iImageWidth
Calculates the width of the image to print (in millimeters).
Versions 09 and later
iPrintBarCode
New in version 09
iPrintBarCode
iPrintBarCode
Prints a bar code (inside a rectangle).
Versions 09 and later
iPrintImage
New in version 09
iPrintImage
iPrintImage
Sends the image file to print to the print buffer.
Versions 09 and later
iTransparentMagenta
New in version 09
iTransparentMagenta
iTransparentMagenta
Modifies the management mode of Magenta color in order for this color to be considered as being transparent (or not) in all the forthcoming prints.
Linux Only the images in JPEG format can be printed in Linux.
Printing drawings
The following WLanguage functions are used to easily print different shapes:
Versions 09 and later
iBorder
New in version 09
iBorder
iBorder
Prints a border at specified coordinates.
Versions 09 and later
iEllipse
New in version 09
iEllipse
iEllipse
Prints an ellipse (in a rectangle).
Versions 09 and later
iHLine
New in version 09
iHLine
iHLine
Prints an horizontal line at specified coordinates.
Versions 09 and later
iLine
New in version 09
iLine
iLine
Prints a line at specified coordinates.
Versions 09 and later
iNewLine
New in version 09
iNewLine
iNewLine
Prints a line (in Windows standard, with a rounded end) at specified coordinates.
Versions 09 and later
iPrintBarCode
New in version 09
iPrintBarCode
iPrintBarCode
Prints a bar code (inside a rectangle).
Versions 09 and later
iRoundBorder
New in version 09
iRoundBorder
iRoundBorder
Prints a border with rounded outlines at specified coordinates.
Versions 09 and later
iTransparentMagenta
New in version 09
iTransparentMagenta
iTransparentMagenta
Modifies the management mode of Magenta color in order for this color to be considered as being transparent (or not) in all the forthcoming prints.
Versions 09 and later
iVLine
New in version 09
iVLine
iVLine
Prints a vertical line at specified coordinates.
Versions 09 and later
iXPos
New in version 09
iXPos
iXPos
Used to manage the horizontal position (X coordinate) of print cursor in the page.
Versions 09 and later
iYPos
New in version 09
iYPos
iYPos
Used to manage the vertical position (Y coordinate) of print cursor in the page.
Other functions
Several WLanguage functions are used to optimize the prints performed in WLanguage. You have the ability to manage:
  • the page break
  • the size of the page, ...
Versions 15 and later
iColumnNum
New in version 15
iColumnNum
iColumnNum
Returns the number of the current column in a multi-column report.
Versions 09 and later
iEndPrinting
New in version 09
iEndPrinting
iEndPrinting
Signals the end of the document to print and actually starts printing the data stored in the printer spooler via the following functions: iPrint, iPrintImage, iNewLine, etc.
Versions 09 and later
iPageHeight
New in version 09
iPageHeight
iPageHeight
Calculates the height of printable page (in millimeters) while taking the top or bottom margins into account.
Versions 09 and later
iPageHeightLeft
New in version 09
iPageHeightLeft
iPageHeightLeft
Calculates the available height (in millimeters) left on the current page while taking into account the defined margins (top or bottom).
Versions 09 and later
iPageNum
New in version 09
iPageNum
iPageNum
Returns or initializes the number of the page currently printed.
Versions 09 and later
iPageWidth
New in version 09
iPageWidth
iPageWidth
Calculates the width (in millimeters) of the printable page while taking the left or right margins into account.
Versions 09 and later
iReportPrintingStatus
New in version 09
iReportPrintingStatus
iReportPrintingStatus
Returns the status of the current print.
Versions 09 and later
iReset
New in version 09
iReset
iReset
Re-initializes the print settings (margins, font, paper format, orientation, ...) stored in the print library.
Versions 09 and later
iSkipLine
New in version 09
iSkipLine
iSkipLine
Forces one or more line break.
Versions 09 and later
iSkipPage
New in version 09
iSkipPage
iSkipPage
Generates a page break: the corresponding code is sent to the printer queue.
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment