ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Word Processing 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
Remark: These functions are also available in prefix syntax (Functions for managing the Word Processing control (prefix syntax)).
The following functions are used to manage Word Processing controls:
DocAddAdds:
  • at the end of a Word Processing document: an element, a document, a paragraph, a text, an image or a fragment.
  • at the end of a fragment: an element, a text or an image.
DocChangeZOrderChanges the Z-order of an Image or Text Area element in a DocX document.
DocCloseCloses a docx file and frees the document.
DocDeleteDeletes an element from a document. This element is deleted from its associated document.
DocDeleteTableOfContentsDeletes a table of contents from a document.
DocEndModificationSignals the end of grouping for a set of operations in a single event (management of "undo/redo").
DocExitEditExits from the current edit. The entry in edit was performed by DocGoIntoEdit.
DocFindFinds a character string:
  • in an entire Word Processing document.
  • in a fragment.
DocFindElementByNameSearches for an element by its name in a Word Processing document.
DocGoIntoEditEnters in edit in the Word Processing control in a specific document section: body, header or footer.
DocInfoXYFor a given position in a Word Processing control (coordinates of a control point), returns one of the following:
  • the number of the corresponding page,
  • the corresponding X-position (in mm),
  • the corresponding Y-position (in mm)
DocInsertInserts an object into a Word Processing document or replaces the content of the current fragment. The objects that can be used are:
  • an element,
  • a document,
  • a paragraph,
  • a text,
  • an image,
  • a fragment.
DocInsertTableInserts a table into a Word Processing document.
DocInsertTableOfContentsInserts a table of contents in a Word Processing document.
DocOpenOpens a Word Processing file (docx format) in Read/Write mode. The docx file is opened and locked until it is closed.
DocPositionTriggers the scroll of Word Processing control in order for the requested text to be entirely displayed.
DocPositionTopPageReturns the position of the first character in a given page in a Text Processing control.
DocPrintPrints a document in "docx" format.
DocRedoRestores the last undone action on a Word Processing document.
DocRedoCountReturns the number of canceled actions that can be redone on a Word Processing document.
DocReplaceFinds all the instances of a character string and replaces them with another string:
  • in an entire Word Processing document.
  • in a fragment.
DocSaveSaves a document as a "docx" file.
DocSelectSelects a fragment in a Word Processing control.
DocStartModificationSignals the start of grouping for a set of operations on a document in a single event (management of "undo/redo").
DocToHTMLConverts a Word Processing document into an HTML file.
DocToImageExports a page found in a Word Processing document in image format.
DocToPDFConverts a Word Processing document into a PDF file.
DocToTextCreates a character string from the data:
  • found in a Word Processing control or in a Word Processing document.
  • found in a paragraph of a Word Processing control.
DocUndoUndoes the last action performed on a Word Processing document.
DocUndoCountReturns the number of actions that can be undone on a document.
DocUndoRedoDeleteAllDeletes the entire history of Undo/Redo mechanism for a Word Processing document.
DocUpdateFormulaUpdates the formulas in a document.
DocUpdateTableOfContentsUpdates the table of the contents of a document.
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help