ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Print functions
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
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("Text")
iEndPrinting()
IF iDocumentPrinted() = True THEN
Info("You have requested to print the document")
END
iDestination(iViewer)
iPrintReport(MyReport)
 
arrOutputInfo is array of iOutputInfo
arrOutputInfo = iDocumentPrinted(iListOutput)
 
FOR EACH OutputInfo OF arrOutputInfo
Trace("----------------------------------------")
Trace("Destination = " + OutputInfo.Destination)
Trace("Printer = " + OutputInfo.Printer)
Trace("FileName = " + OutputInfo.FileName)
Trace("PaperSize = " + OutputInfo.PaperSize)
Trace("PaperWidth = " + OutputInfo.PaperWidth)
Trace("PaperHeight = " + OutputInfo.PaperHeight)
Trace("Orientation = " + OutputInfo.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 doesn't determine whether the print job has completed successfully. 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: 06/21/2023

Send a report | Local help