ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Word Processing functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Note: 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, document, paragraph, text, image or fragment.
  • at the end of a fragment: an element, text or image.
DocChangeZOrderChanges the Z-order of an Image or Text Area element in a DocX document.
New in version 2025
DocClearFormatting
Replaces the current formatting of a selection with the default formatting.
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 the grouping of a set of operations into a single event (undo/redo management).
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.
New in version 2025
DocFormatPainterMode
Enables the format painter mode in the Word Processing control or determines if this mode is enabled.
DocGoIntoEditEnters Word Processing control in a specific part of the document: body, header or footer.
DocInfoXYFor a given position (coordinates of a point) in a Word Processing control, 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 the grouping of a set of operations on a document into a single event (undo/redo management).
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: 09/20/2024

Send a report | Local help