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
Prints a document in "docx" format.
Example
MyDocument is Document = "c:\temp\proposal.docx"
iDestination(iViewer)
iPrintDoc(MyDocument)
Syntax

Printing the content of a Word Processing control or a Document variable Hide the details

<Result> = iPrintDoc(<Document>)
<Result>: Boolean
  • True if the document is valid for printing,
  • False otherwise.
<Document>: Document variable or control name
Document to print. This document corresponds to:

Print the content of a "docx" file, a Buffer variable or a binary memo Hide the details

<Result> = iPrintDoc(<Element to print> [, <Password>])
<Result>: Boolean
  • True if the document is valid for printing,
  • False otherwise.
<Element to print>: String, Buffer or binary memo
  • Name and path of the "docx" file to be printed.
  • Name of Buffer variable to print.
  • Name of binary Memo item to print.
<Password>: Optional character string or secret string
  • Password to open the element to print ("docx" file, content of Buffer variable, content of Binary memo variable).
  • Empty string ("") if the element to print has no password.
New in version 2025
Secret strings: If you use the secret string vault, the type of secret string used for this parameter must be "Ansi or Unicode string".
To learn more about secret strings and how to use the vault, see Secret string vault.
Business / UI classification: Neutral code
Component: wd300mdl.dll
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 11/23/2024

Send a report | Local help