PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

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
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:
  • WINDEV the name of a Word Processing control.
  • a variable of type Document.
WINDEV

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

<Result> = iPrintDoc(<Word Processing control> [, <Sizing>])
<Result>: Boolean
  • 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, ignoring physical margins.
iHomotheticNoEnlargementHomothetic reduction of the document pages to adapt them to the output format, ignoring physical margins. Pages with a smaller format keep their format and are centered.
iHomotheticNoEnlargementPrintableZoneHomothetic reduction of the document pages to adapt them to the output format, taking into account physical margins. Pages with a smaller 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.

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
  • 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.
Business / UI classification: Neutral code
Component: wd280mdl.dll
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment