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.
Remark: 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"
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
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 control name
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, 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.
Versions 25 and later
iHomotheticNoEnlargementPrintableZone
New in version 25
iHomotheticNoEnlargementPrintableZone
iHomotheticNoEnlargementPrintableZone
Homothetic 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.
Caution: This parameter is available from version 230042.
Versions 24 and later

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>: Character string (with quotes), Buffer or binary memo
  • Name and path of "docx" file to print.
  • Name of Buffer variable to print.
  • Versions 25 and later
    Name of binary Memo item to print.
    New in version 25
    Name of binary Memo item to print.
    Name of binary Memo item to print.
<Password>: Optional character string (with quotes)
  • 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 24

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>: Character string (with quotes), Buffer or binary memo
  • Name and path of "docx" file to print.
  • Name of Buffer variable to print.
  • Versions 25 and later
    Name of binary Memo item to print.
    New in version 25
    Name of binary Memo item to print.
    Name of binary Memo item to print.
<Password>: Optional character string (with quotes)
  • 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.

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>: Character string (with quotes), Buffer or binary memo
  • Name and path of "docx" file to print.
  • Name of Buffer variable to print.
  • Versions 25 and later
    Name of binary Memo item to print.
    New in version 25
    Name of binary Memo item to print.
    Name of binary Memo item to print.
<Password>: Optional character string (with quotes)
  • 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 : wd250mdl.dll
Minimum version required
  • Version 22
This page is also available for…
Comments
Imprimindo etiquetas using PRN numa impressora Zebra
https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/236189-print-file-prn-label-with-windev-printer-zebra-236239/read.awp
BOLLER
15 Jan. 2020