PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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 Document variable:
  • an element,
  • a document, a paragraph,
  • a text,
  • an image,
  • a fragment.
Example
MyDocument is Document
 
// 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
MyDocument.Add(img)
MyDocument is Document
 
// Add a page break
MyDocument.Add(Charact(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 Document variable to use.
<Object to add>: Type of added object
Object to add:
  • 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 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 : wd250mdl.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment