PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Adds:
  • at the end of a Word Processing document: an element, a document, a paragraph, a text, an image or a fragment.
  • Versions 23 and later
    at the end of a fragment: an element, a text or an image.
    New in version 23
    at the end of a fragment: an element, a text or an image.
    at the end of a fragment: an element, a text or an image.
Caution: This documentation presents the last features of the Word Processing control. Make sure that all the necessary modules are updated.
Example
// Adds an image
// Select the image file
sFile is string  
sFile = fImageSelect(fCurrentDir(), "", "Add an image",
"JPEG (*.JPG)" + TAB + "*.jpg" + CR + "PNG (*.PNG)" + TAB +
"*.png" + CR + "All files (*.*)" + TAB + "*.*")

IF sFile = "" THEN
RETURN
END

// The image file is transferred into an Image variable
img is Image = sFile

// Add the image at the end of document
DocAdd(WP_NoName1, img)
// Adds a page break
DocAdd(WP_NoName, Charact(12))
Syntax

Adding at the end of a Word Processing document Hide the details

DocAdd(<Document> , <Object to Add>)
<Document>: Document variable
Document to use. This document corresponds to :
  • the name of a Word Processing control.
  • a Document variable.
<Object to Add>: Type of added object
  • Element: Name of docElement variable corresponding to the element to add.
  • Document: Name of Document variable corresponding to the document to add.
  • Paragraph: Name of docParagraph variable corresponding to the paragraph to add. This paragraph must have been retrieved from a document, it cannot be created from nothing because the array of paragraph elements is read-only.
  • Text in character string format: Text that will be added.
  • Image: Name of Image variable to add.
  • Fragment: Name of docFragment variable to add.
Versions 23 and later

Adding at the end of a fragment Hide the details

DocAdd(<Fragment> , <Object to Add>)
<Fragment>: docFragment variable
Name of the docFragment variable to use.
<Object to Add>: Type of added object
  • Element: Name of docElement variable corresponding to the element to add.
  • Text in character string format: Text that will be added.
  • Image: Name of Image variable to add.
New in version 23

Adding at the end of a fragment Hide the details

DocAdd(<Fragment> , <Object to Add>)
<Fragment>: docFragment variable
Name of the docFragment variable to use.
<Object to Add>: Type of added object
  • Element: Name of docElement variable corresponding to the element to add.
  • Text in character string format: Text that will be added.
  • Image: Name of Image variable to add.

Adding at the end of a fragment Hide the details

DocAdd(<Fragment> , <Object to Add>)
<Fragment>: docFragment variable
Name of the docFragment variable to use.
<Object to Add>: Type of added object
  • Element: Name of docElement variable corresponding to the element to add.
  • Text in character string format: Text that will be added.
  • Image: Name of Image variable to add.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230mdl.dll
Linux wd230mdl.so
Minimum required version
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment