PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • 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.

Important

The following functions are not allowed in Reports & Queries:
HAddUserHStopServerHChangeLogDir
HCopyFileHCreationHCreationIfNotFound
HDBCreationHWriteHImportHF55
HImportTextHFree
HMigrateLinkedCompositeKeyHModifyHModifyDatabaseRights
HModifyFileRightsHModifyServerRightsHModifyGroup
HModifyDatabasePropertyHModifyFilePropertyHModifyServerProperty
HCrossHRegenerateFileHDelete
HDeleteDatabaseHDeleteFileHDeleteGroup
HDeleteLinkHDeleteUserHViewToFile
Print functions of WLanguage that can be used in a report
The following print functions can be used in a report:
iPreviewConfigures the print destination.
iBorderPrints a border at specified coordinates.
iRoundBorderPrints a border with rounded outlines at specified coordinates.
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.
iLastFileReturns:
  • the full name of the last file generated during the print (PDF, RTF, text, ...).
  • the list of created duplicate files.
iEscapeSends an ESCAPE command or a data command to a printer.
iWindowCancelConfigures the print cancel window..
iCloseReportStops printing the current report immediately.
iEndReportForces the report print to stop.
iForceComplementForces the printing of a Body Complement block.
iNestedHeaderFooterPrints (or not) the page headers and footers of nested report.
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).
iTextHeightCalculates the height of the font for the text to print (in millimeters).
iAreaHeightCalculates the height of a fixed-width area required to print the entire text that uses the current font.
iDocumentCanceledUsed to find out whether the current print was canceled by the user.
iDocumentPrintedAllows you to find out whether the user has requested to print the document from the report viewer.
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.
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.
iPageWidthCalculates the width (in millimeters) of the printable page while taking the left or right margins into account.
iTextWidthCalculates the width (in millimeters) of the text to print, according to the specified font.
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.
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.
iMarginDefines the "logical" print margins.
iMMToPicaConverts the coordinates of a point (expressed in millimeters) into system coordinates.
iPageNumReturns or initializes the number of the page currently printed.
iParameterRetrieves the printer configuration and configures the print.
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.
iParameterPDFDefines the options for the generated PDF file.
iPicaToMMConverts the coordinates of a point (expressed in system coordinates) into millimeters.
iFontSelects the default font.
iDidotFontSelects the unit that will be used for the height of the fonts (created by iCreateFont): DIDOT point or PICA point.
iResetReinitializes the print settings (margins, font, paper format, orientation, ...) stored in the print library.
iSkipPageGenerates a page break: the corresponding code is sent to the printer queue.
iSelectFontCreates a new print font from the standard window for font selection...
iReportPrintingStatusReturns the status of the current print.
iSubstBlockSubstitutes one block of the report with another block while the report is printed.
iPageEndForces the move to the next page during the report print.
See also
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment