PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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
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
// Ajoute une image
// Sélection du fichier image
sFichier is string  
sFichier = fImageSelect(fCurrentDir(), "", "Ajouter une image",
"JPEG (*.JPG)" + TAB + "*.jpg" + CR + "PNG (*.PNG)" + TAB +
"*.png" + CR + "Tous les fichiers (*.*)" + TAB + "*.*")
 
IF sFichier = "" THEN
RETURN
END
 
// Le fichier image est transféré dans une variable de type Image
img is Image = sFichier
 
// Ajout de l'image en fin de document
DocAdd(TT_SansNom1, img)
// Ajoute un saut de page
DocAdd(TT_SansNom1, Charact(12))
Syntax

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

<Result> = DocAdd(<Document> , <Object to add>)
<Result>: docFragment variable
Versions 24 and later
docFragment variable with the added fragment.
New in version 24
docFragment variable with the added fragment.
docFragment variable with the added fragment.
<Document>: Control name or Document variable
Document to use. This document corresponds to :
  • WINDEV the name of a Word Processing control.
  • a variable of type Document.
<Object to add>: Type of added object
Object to add:
  • Element: Name of the Variable of type docElement corresponding to the element to be added.
  • Document: Name of the variable of type Document corresponding to the Document to be added.
  • Paragraph: Name of the Variable of type docParagraph corresponding to the paragraph to be added. 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 to add.
    Versions 24 and later
    You can use the following constants in the text to add to manage the different possible breaks:
    docColumnBreakAdds a column break in a multicolumn section. If the section is not multicolumn, a page break is added.
    docLineBreakAdds a line break.
    docPageBreakAdds a page break.
    docParagraphBreakAdds a paragraph break.
    New in version 24
    You can use the following constants in the text to add to manage the different possible breaks:
    docColumnBreakAdds a column break in a multicolumn section. If the section is not multicolumn, a page break is added.
    docLineBreakAdds a line break.
    docPageBreakAdds a page break.
    docParagraphBreakAdds a paragraph break.
    You can use the following constants in the text to add to manage the different possible breaks:
    docColumnBreakAdds a column break in a multicolumn section. If the section is not multicolumn, a page break is added.
    docLineBreakAdds a line break.
    docPageBreakAdds a page break.
    docParagraphBreakAdds a paragraph break.
  • 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

<Result> = DocAdd(<Fragment> , <Object to add>)
<Result>: docFragment variable
Versions 24 and later
docFragment variable with the added fragment.
New in version 24
docFragment variable with the added fragment.
docFragment variable with the added fragment.
<Fragment>: docFragment variable
Name of docFragment variable to use.
<Object to add>: Type of added object
Object to add:
  • Element: Name of the Variable of type docElement corresponding to the element to be added.
  • Text in character string format: Text to add.
    Versions 24 and later
    You can use the following constants in the text to add to manage the different possible breaks:
    docColumnBreakAdds a column break in a multicolumn section. If the section is not multicolumn, a page break is added.
    docLineBreakAdds a line break.
    docPageBreakAdds a page break.
    docParagraphBreakAdds a paragraph break.
    New in version 24
    You can use the following constants in the text to add to manage the different possible breaks:
    docColumnBreakAdds a column break in a multicolumn section. If the section is not multicolumn, a page break is added.
    docLineBreakAdds a line break.
    docPageBreakAdds a page break.
    docParagraphBreakAdds a paragraph break.
    You can use the following constants in the text to add to manage the different possible breaks:
    docColumnBreakAdds a column break in a multicolumn section. If the section is not multicolumn, a page break is added.
    docLineBreakAdds a line break.
    docPageBreakAdds a page break.
    docParagraphBreakAdds a paragraph break.
  • Image: Name of Image variable to add.
New in version 23

Adding at the end of a fragment Hide the details

<Result> = DocAdd(<Fragment> , <Object to add>)
<Result>: docFragment variable
Versions 24 and later
docFragment variable with the added fragment.
New in version 24
docFragment variable with the added fragment.
docFragment variable with the added fragment.
<Fragment>: docFragment variable
Name of docFragment variable to use.
<Object to add>: Type of added object
Object to add:
  • Element: Name of the Variable of type docElement corresponding to the element to be added.
  • Text in character string format: Text to add.
    Versions 24 and later
    You can use the following constants in the text to add to manage the different possible breaks:
    docColumnBreakAdds a column break in a multicolumn section. If the section is not multicolumn, a page break is added.
    docLineBreakAdds a line break.
    docPageBreakAdds a page break.
    docParagraphBreakAdds a paragraph break.
    New in version 24
    You can use the following constants in the text to add to manage the different possible breaks:
    docColumnBreakAdds a column break in a multicolumn section. If the section is not multicolumn, a page break is added.
    docLineBreakAdds a line break.
    docPageBreakAdds a page break.
    docParagraphBreakAdds a paragraph break.
    You can use the following constants in the text to add to manage the different possible breaks:
    docColumnBreakAdds a column break in a multicolumn section. If the section is not multicolumn, a page break is added.
    docLineBreakAdds a line break.
    docPageBreakAdds a page break.
    docParagraphBreakAdds a paragraph break.
  • Image: Name of Image variable to add.

Adding at the end of a fragment Hide the details

<Result> = DocAdd(<Fragment> , <Object to add>)
<Result>: docFragment variable
Versions 24 and later
docFragment variable with the added fragment.
New in version 24
docFragment variable with the added fragment.
docFragment variable with the added fragment.
<Fragment>: docFragment variable
Name of docFragment variable to use.
<Object to add>: Type of added object
Object to add:
  • Element: Name of the Variable of type docElement corresponding to the element to be added.
  • Text in character string format: Text to add.
    Versions 24 and later
    You can use the following constants in the text to add to manage the different possible breaks:
    docColumnBreakAdds a column break in a multicolumn section. If the section is not multicolumn, a page break is added.
    docLineBreakAdds a line break.
    docPageBreakAdds a page break.
    docParagraphBreakAdds a paragraph break.
    New in version 24
    You can use the following constants in the text to add to manage the different possible breaks:
    docColumnBreakAdds a column break in a multicolumn section. If the section is not multicolumn, a page break is added.
    docLineBreakAdds a line break.
    docPageBreakAdds a page break.
    docParagraphBreakAdds a paragraph break.
    You can use the following constants in the text to add to manage the different possible breaks:
    docColumnBreakAdds a column break in a multicolumn section. If the section is not multicolumn, a page break is added.
    docLineBreakAdds a line break.
    docPageBreakAdds a page break.
    docParagraphBreakAdds a paragraph break.
  • Image: Name of Image variable to add.
Component: wd270mdl.dll
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment