PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Prints a document in "docx" format.
Note: This function is equivalent to DocPrint.
Caution: This documentation presents the last features of the Word Processing control. Make sure that all the necessary modules are updated.
Example
MyDocument is Document = "c:\temp\proposal.docx"
iPreview()
iPrintDoc(MyDocument)
Syntax

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

<Result> = iPrintDoc(<Document>)
<Result>: Boolean
Versions 24 and later
  • True if the document is valid for printing,
  • False otherwise.
New in version 24
  • True if the document is valid for printing,
  • False otherwise.
  • True if the document is valid for printing,
  • False otherwise.
<Document>: Document variable or character string (with or without quotes)
Document to print. This document corresponds to:
  • WINDEV the name of a Word Processing control.
  • a Document variable.
WINDEV

Printing the content of a Word Processing control with resizing Hide the details

<Result> = iPrintDoc(<Word Processing control> [, <Sizing>])
<Result>: Boolean
Versions 24 and later
  • True if the document is valid for printing,
  • False otherwise.
New in version 24
  • True if the document is valid for printing,
  • False otherwise.
  • True if the document is valid for printing,
  • False otherwise.
<Word Processing control>: Control name
Name of the Word Processing control that displays the document to print.
<Sizing>: Integer constant
Print size:
iHomotheticHomothetic enlargement or reduction of the document pages to adapt them to the output format.
iHomotheticNoEnlargementHomothetic reduction of the document pages to adapt them to the output format. The pages that use a format less than the output format keep their format and are centered.
iRealSizePrint in real size. The pages that use a format:
  • smaller than the output format are centered in the page.
  • bigger than the output format are truncated and are centered in the page.
Caution: This parameter is available from version 230042.
Versions 24 and later

Printing the content of a "docx" document Hide the details

<Result> = iPrintDoc(<File> [, <Password>])
<Result>: Boolean
  • True if the document is valid for printing,
  • False otherwise.
<File>: Character string (with quotes)
Name and path of the "docx" file to print.
<Password>: Optional character string (with quotes)
  • Password to open the "docx" file,
  • Empty string ("") if the file has no password.
New in version 24

Printing the content of a "docx" document Hide the details

<Result> = iPrintDoc(<File> [, <Password>])
<Result>: Boolean
  • True if the document is valid for printing,
  • False otherwise.
<File>: Character string (with quotes)
Name and path of the "docx" file to print.
<Password>: Optional character string (with quotes)
  • Password to open the "docx" file,
  • Empty string ("") if the file has no password.

Printing the content of a "docx" document Hide the details

<Result> = iPrintDoc(<File> [, <Password>])
<Result>: Boolean
  • True if the document is valid for printing,
  • False otherwise.
<File>: Character string (with quotes)
Name and path of the "docx" file to print.
<Password>: Optional character string (with quotes)
  • Password to open the "docx" file,
  • Empty string ("") if the file has no password.
Business / GUI classification : Neutral code
Component : wd250mdl.dll
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment