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
Functions for managing the Word Processing control (prefix syntax)
The following functions are used to manage Word Processing controls, using prefix syntax:
<docFragment variable>.AddAdds an element, text or image at the end of a docFragment variable.
Replaces the current formatting of a selection with the default formatting.
<docFragment variable>.InsertReplaces 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.
<docFragment variable>.InsertTableReplaces the specified fragment with a table.
<Document variable>.AddAdds at the end of a Document variable: an element, a document, a paragraph, a text, an image or a fragment.
<Document variable>.CloseCloses the docx file associated with the Document variable and frees the document.
<Document variable>.EndModificationIndicates the end of a series of actions performed in a Document variable in a single event ("undo/redo").
<Document variable>.InsertInserts an object in a Document variable. The objects that can be used are:
  • an element,
  • a document,
  • a paragraph,
  • a text,
  • an image,
  • a fragment.
<Document variable>.InsertTableInserts a table in a Document variable.
<Document variable>.PrintPrints the content of a Document in "docx" format.
<Document variable>.RedoRestores the last action canceled on a Document variable.
<Document variable>.RedoCountReturns the number of canceled actions that can be redone on a Document variable.
<Document variable>.ReplaceFinds all the instances of a character string and replaces them with another string in a Document variable.
<Document variable>.SaveSaves a document as a "docx" file.
<Document variable>.SeekFinds a character string in an entire Document variable.
<Document variable>.StartModificationIndicates the start of a series of actions performed on a Document variable in a single event ("undo/redo").
<Document variable>.ToHTMLConverts a Document variable into an HTML file.
<Document variable>.ToImageExports a page contained in a Document variable in image format.
<Document variable>.ToTextCreates a character string with the data of a Document variable.
<Document variable>.UndoUndoes the last action performed on a Document variable.
<Document variable>.UndoCountReturns the number of actions that can be undone in a Document variable.
<Document variable>.UndoRedoDeleteAllDeletes the entire history of Undo/Redo mechanism for a Word Processing document.
<Document>.FindElementByNameSearches for an element by its name in a Word Processing document.
<Word Processing>.AddAdds at the end of a Word Processing control: an element, a document, a paragraph, a text, an image or a fragment.
Replaces the current formatting of a selection in a Word Processing control with the default formatting.
<Word Processing>.CloseCloses the docx file associated with the Word Processing control and frees the document.
<Word Processing>.EndModificationIndicates the end of a series of actions performed in a Word Processing control in a single event ("undo/redo").
<Word Processing>.ExitEditExits from the current edit. The entry in edit was performed by <Word Processing>.GoIntoEdit.
<Word Processing>.FindElementByNameSearches for an element by its name in a Word Processing document.
Enables the format painter mode in the Word Processing control or determines if this mode is enabled.
<Word Processing>.GoIntoEditEnters in edit in the Word Processing control in a specific document section: body, header or footer.
<Word Processing>.InfoXYFor 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).
<Word Processing>.InsertInserts an object in a Word Processing control. The objects that can be used are:
  • an element,
  • a document,
  • a paragraph,
  • a text,
  • an image,
  • a fragment.
<Word Processing>.InsertTableInserts a table into a Word Processing control.
<Word Processing>.OpenOpens a Word Processing file (docx format) in Read/Write mode. The docx file is opened and locked until it is closed.
<Word Processing>.PositionTriggers the scroll of Word Processing control in order for the requested text to be entirely displayed.
<Word Processing>.PrintPrints the content of a Word Processing control in "docx" format.
<Word Processing>.RedoRestores the last undone action on a Word Processing control.
<Word Processing>.RedoCountReturns the number of canceled actions that can be redone on a Word Processing control.
<Word Processing>.ReplaceFinds all the instances of a character string and replaces them with another string in a Word Processing control.
<Word Processing>.SaveSaves a document as a "docx" file.
<Word Processing>.SeekFinds a character string in an entire Word Processing control.
<Word Processing>.SelectSelects a fragment in a Word Processing control.
<Word Processing>.StartModificationIndicates the start of a series of actions performed in a Word Processing control in a single event ("undo/redo").
<Word Processing>.ToHTMLConverts the content of a Word Processing control into an HTML file.
<Word Processing>.ToImageExports a page from a Word Processing control in image format.
<Word Processing>.ToPDFConverts a Word Processing document into a PDF file.
<Word Processing>.ToTextCreates a character string from the data of a Word Processing control.
<Word Processing>.UndoUndoes the last action performed on a Word Processing control.
<Word Processing>.UndoCountReturns the number of actions that can be undone in a Word Processing control.
<Word Processing>.UndoRedoDeleteAllDeletes the entire history of the Undo/Redo mechanism for a Word Processing control.
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/04/2024

Send a report | Local help