PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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 Document variable:
  • an element,
  • a document, a paragraph,
  • a text,
  • an image,
  • a fragment.
Example
MonDocument est un Document
 
// Ajoute une image
// Sélection du fichier image
sFichier est chaîne  
sFichier = fSélecteurImage(fRepEnCours(), "", "Ajouter une image",
"JPEG (*.JPG)" + TAB + "*.jpg" + RC + "PNG (*.PNG)" + TAB +
"*.png" + RC + "Tous les fichiers (*.*)" + TAB + "*.*")
 
SI sFichier = "" ALORS
RETOUR
FIN
 
// Le fichier image est transféré dans une variable de type Image
img est une Image = sFichier
 
// Ajout de l'image en fin de document
MonDocument.Ajoute(img)
MonDocument est un Document
 
// Ajoute un saut de page
MonDocument.Ajoute(Caract(12))
Syntax
<Result> = <Document>.Add(<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>: Document variable
Name of the variable of type Document to be used.
<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.
Component: wd270mdl.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment