ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Editors / Report editor / Programming a report
  • Overview
  • WLanguage functions not recommended in a report
  • Print functions of WLanguage that can be used in a report
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
WLanguage functions available for a report
Overview
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.
Print functions of WLanguage that can be used in a report
The following print functions can be used in a report:
iAreaHeightCalculates the height of a fixed-width area required to print the entire text that uses the current font.
iBorderPrints a border at specified coordinates.
iCloseReportStops printing the current report immediately.
iConfigureConfigures the printer for a print performed in WLanguage:
  • by opening the configuration window.
  • by modifying the printer used for the current print.
iCreateFontCreates a new print font.
iDidotFontSelects the unit that will be used for the height of the fonts (created by iCreateFont): DIDOT point or PICA point.
iDocumentCanceledUsed to find out whether the current print was canceled by the user.
iDocumentPrintedDetermines whether the user printed the document from the report viewer.
iEndReportForces the report print to stop.
iEscapeSends an ESCAPE command or a data command to a printer.
iFontSelects the default font.
iForceComplementForces the printing of a Body Complement block.
iInfoPrinterRetrieves the characteristics of the current or default printer.
iInitReportQueryInitializes the query linked to the report (for a query with parameters).
iInitReportQueryConnectionInitializes the query linked to the report.
iLastFileReturns:
  • the full name of the last file generated during the print (PDF, RTF, text, ...).
  • the list of created duplicate files.
iListNestedReportsReturns:
  • 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).
iListPrinterReturns the list of printers installed on the current computer.
iMarginDefines the "logical" print margins.
iMMToPicaConverts the coordinates of a point (expressed in millimeters) into system coordinates.
iNestedHeaderFooterPrints (or not) the page headers and footers of nested report.
iPageEndForces the move to the next page during the report print.
iPageHeightCalculates the height of printable page (in millimeters) while taking the top or bottom margins into account.
iPageHeightLeftCalculates the available height (in millimeters) left on the current page while taking into account the defined margins (top or bottom).
iPageNumReturns or initializes the number of the page currently printed.
iPageWidthCalculates the width (in millimeters) of the printable page while taking the left or right margins into account.
iParameterRetrieves the printer configuration and configures the print.
iParameterPDFDefines the options for the generated PDF file.
iParameterPreviewConfigures 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.
iPicaToMMConverts the coordinates of a point (expressed in system coordinates) into millimeters.
iPreviewConfigures the print destination.
iPrintBlockForces a report block to print.
iPrintBodyComplementForces a body complement block to print while specifying the height of complement block.
iPrintReportPrints a report created with the report editor.
iReportPrintingStatusReturns the status of the current print.
iResetReinitializes the print settings (margins, font, paper format, orientation, ...) stored in the print library.
iRoundBorderPrints a border with rounded outlines at specified coordinates.
iSelectFontCreates a new print font from the standard window for font selection...
iSkipPageGenerates a page break: the corresponding code is sent to the printer queue.
iSubstBlockSubstitutes one block of the report with another block while the report is printed.
iTextHeightCalculates the height of the font for the text to print (in millimeters).
iTextWidthCalculates the width (in millimeters) of the text to print, according to the specified font.
iTransparentMagentaModifies the management mode of Magenta color in order for this color to be considered as being transparent (or not) in all the forthcoming prints.
iWindowCancelConfigures the print cancel window..
See also
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/14/2024

Send a report | Local help