|
|
|
|
|
- Overview
- Printing text
- Printing images
- Printing drawings
- Other functions
Step 3: Printing characters, images, etc.
This step consists in "sending the different elements to print to the printer": - text,
- images,
- drawings, ...
The main WLanguage functions used to print texts are as follows. Remarks: - Texts can be in different fonts: the font is selected by the iFont function.
- Text can be written at specific positions: functions iXPos and iYPos.
| | iAreaHeight | Calculates the height of a fixed-width area required to print the entire text that uses the current font. | iDidotFont | Selects the unit to be used for font height (created with function iCreateFont): DIDOT point or PICA point. | iFont | Selects the default font. | iPrint | Sends the character string passed as parameter to the print buffer. | iPrintArea | Prints a text in a rectangular area. | iPrintWord | Sends the character string passed in parameter to the print buffer. | iTextHeight | Calculates the height of the font for the text to print (in millimeters). | iTextWidth | Calculates the width (in millimeters) of the text to print, according to the specified font. | iXPos | Used to manage the horizontal position (X-coordinate) of print cursor in the page. | iYPos | Used to manage the vertical position (Y-coordinate) of print cursor in the page. |
Several WLanguage functions can be used to print images while taking the image size into account.
| | iImageHeight | Calculates the height of the image to print (in millimeters). | iImageWidth | Calculates the width of the image to print (in millimeters). | iPrintBarCode | Prints a bar code (inside a rectangle). | iPrintImage | Sends the image file to print to the print buffer. | 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. |
The following WLanguage functions are used to easily print different shapes:
| | iBorder | Prints a border at specified coordinates. | iEllipse | Prints an ellipse (in a rectangle). | iHLine | Prints a horizontal line at specified coordinates. | iLine | Prints a line at specified coordinates. | iNewLine | Prints a line (in Windows standard, with a rounded end) at specified coordinates. | iPrintBarCode | Prints a bar code (inside a rectangle). | iRoundBorder | Prints a border with rounded outlines at specified coordinates. | 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. | iVLine | Prints a vertical line at specified coordinates. | iXPos | Used to manage the horizontal position (X-coordinate) of print cursor in the page. | iYPos | Used to manage the vertical position (Y-coordinate) of print cursor in the page. |
Several WLanguage functions are used to optimize the prints performed in WLanguage. You can manage, for example: - the page break
- page size, ...
| | iColumnNum | Returns the number of the current column in a multi-column report. | 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. | iPageHeight | Calculates the height of printable page (in millimeters) while taking the top or bottom margins into account. | iPageHeightLeft | Calculates the available height (in millimeters) left on the current page while taking into account the defined margins (top or bottom). | iPageNum | Returns or initializes the number of the page currently printed. | iPageWidth | Calculates the width (in millimeters) of the printable page while taking the left or right margins into account. | iReportPrintingStatus | Returns the status of the current print. | iReset | Reinitializes the print settings (margins, font, paper format, orientation, ...) stored in the print library. | iSkipLine | Forces one or more line break. | iSkipPage | Forces a page skip: the corresponding code is sent to the printer spooler. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|