- WLanguage functions not recommended in a report
- Print functions of WLanguage that can be used in a report
WLanguage functions available for a report
Most WLanguage functions can be used in the events of a report (created with the report editor).
However, some of them are not recommended such as the print functions specific to the print in WLanguage or the functions for accessing the records used by the report.
WLanguage functions not recommended in a report
It is not recommended to use the following functions in the events of the report, blocks or controls. If these functions are used, the report execution may be incorrect.
Functions for accessing a record: All the HFSQL functions that modify a record in memory or the current record in the base file of the report are not recommended in the events of a report, blocks or controls. Indeed, these functions may modify the browse performed in the base file of the report.
These functions are: HAdd
, HLitxxxx, HModify
|The following functions are not allowed in Reports & Queries:|
Print functions of WLanguage that can be used in a report
The following print functions can be used in a report:
|iAreaHeight||Calculates the height of a fixed-width area required to print the entire text that uses the current font.|
|iBorder||Prints a border at specified coordinates.|
|iCloseReport||Stops printing the current report immediately.|
|iConfigure||Configures the printer for a print performed in WLanguage:|
- by opening the configuration window.
- by modifying the printer used for the current print.
|iCreateFont||Creates a new print font.|
|iDidotFont||Selects the unit that will be used for the height of the fonts (created by iCreateFont): DIDOT point or PICA point.|
|iDocumentCanceled||Used to find out whether the current print was canceled by the user.|
|iDocumentPrinted||Determines whether the user printed the document from the report viewer.|
|iEndReport||Forces the report print to stop.|
|iEscape||Sends an ESCAPE command or a data command to a printer.|
|iFont||Selects the default font.|
|iForceComplement||Forces the printing of a Body Complement block.|
|iInfoPrinter||Retrieves the characteristics of the current or default printer.|
|iInitReportQuery||Initializes the query linked to the report (for a query with parameters).|
|iInitReportQueryConnection||Initializes the query linked to the report.|
- the full name of the last file generated during the print (PDF, RTF, text, ...).
- the list of created duplicate files.
- the list of nested reports currently printed (reports run by iPrintReport in one of the processes of the report currently printed).
- the list of sequenced reports currently printed (iSequenceAdd).
|iListPrinter||Returns the list of printers installed on the current computer.|
|iMargin||Defines the "logical" print margins.|
|iMMToPica||Converts the coordinates of a point (expressed in millimeters) into system coordinates.|
|iNestedHeaderFooter||Prints (or not) the page headers and footers of nested report.|
|iPageEnd||Forces the move to the next page during the report print.|
|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.|
|iParameter||Retrieves the printer configuration and configures the print.|
|iParameterPDF||Defines the options for the generated PDF file.|
|iParameterPreview||Configures the print preview:|
- display a message regarding the resources of current computer.
- display or not the ribbon panes (as well as the buttons found).
- the export options available in the mini preview window.
|iPicaToMM||Converts the coordinates of a point (expressed in system coordinates) into millimeters.|
|iPreview||Configures the print destination.|
|iPrintBlock||Forces a report block to print.|
|iPrintBodyComplement||Forces a body complement block to print while specifying the height of complement block.|
|iPrintReport||Prints a report created with the report editor.|
|iReportPrintingStatus||Returns the status of the current print.|
|iReset||Reinitializes the print settings (margins, font, paper format, orientation, ...) stored in the print library.|
|iRoundBorder||Prints a border with rounded outlines at specified coordinates.|
|iSelectFont||Creates a new print font from the standard window for font selection...|
|iSkipPage||Generates a page break: the corresponding code is sent to the printer queue.|
|iSubstBlock||Substitutes one block of the report with another block while the report is printed.|
|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.|
|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.|
|iWindowCancel||Configures the print cancel window..|
This page is also available for…