ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Print functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Allows you to:
  • determine whether the user printed the document from the report viewer.
  • get detailed information about the print job.
Example
iDestination(iViewer)
iPrint("Texte")
iEndPrinting()
IF iDocumentPrinted() = True THEN
	Info("Vous avez demandé l'impression du document")
END
iDestination(iViewer)
iPrintReport(MyReport)

tabInfoSortie is array of iOutputInfo
tabInfoSortie = iDocumentPrinted(iListOutput)

FOR EACH InfoSortie OF tabInfoSortie
	Trace("----------------------------------------")
	Trace("Destination = " + InfoSortie.Destination)
	Trace("Imprimante = " + InfoSortie.Printer)
	Trace("NomFichier = " + InfoSortie.FileName)
	Trace("FormatPapier = " + InfoSortie.PaperSize)
	Trace("LargeurPapier = " + InfoSortie.PaperWidth)
	Trace("HauteurPapier = " + InfoSortie.PaperHeight)
	Trace("Orientation = " + InfoSortie.Orientation)
END
Syntax

Determining if the user has started a print or export job from the report viewer Hide the details

<Result> = iDocumentPrinted()
<Result>: Boolean
  • True if the user requested the print job from the report viewer,
  • False otherwise.
Caution: This function does not indicate whether printing has been successful.. If the printer has a hardware problem, the function always returns the same result.

Getting detailed information on the print or export job Hide the details

<Result> = iDocumentPrinted(<Options>)
<Result>: Array of iOutputInfo
Array of iOutputInfo variables containing the different print jobs started from the report viewer.
<Options>: Integer constant
Type of list box:
iListOutputList of the different print or export jobs started from the report viewer.
Business / UI classification: Neutral code
Component: wd300prn.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help