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
Saves a document in "docx" format. The saved document remains open. To close it, you must use <Word Processing>.Close.
Caution: This documentation presents the last features of the Word Processing control. Make sure that all the necessary modules are updated.
Example
// On choisit le répertoire et le nom de sauvegarde
sNomFichier est une chaîne = fSélecteur(ComplèteRep(fRepExe()), "présentation.docx", ...
"Sélection de fichiers DocX","Fichier Docx (*.docx)" + TAB + "*.docx" , "*.docx", fselCrée)
 
// On sauvegarde le fichier
TT_SansNom1.Sauve(sNomFichier)
 
SI ErreurDétectée ALORS
Erreur(ChaîneConstruit("Le fichier %1 n'a pas pu être enregistré.", sNomFichier), ErreurInfo())
RETOUR
FIN
Syntax
<Result> = <Word Processing control>.Save([<File path>])
<Result>: Boolean
  • True if the backup was performed,
  • False otherwise.
<Word Processing control>: Control name
Name of the Word Processing control to use.
<File path>: Optional character string
Full path and name of "docx" file.

If this parameter is specified, the file is saved at the specified location (the existing file is overwritten if necessary).
Remark: IF the "docx" document is saved with a path that differs from the initial one (corresponds to "Save as"), the source file is closed, the document is saved in the new file and the new "docx" file remains opened.
If this parameter is not specified, the path taken into account is the path specified in the property value of the Word Processing control handled.. If this property is empty, the function returns False.
Business / UI classification: UI Code
Component: wd270mdl.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment