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
Opens a Word Processing file (docx format) in Read/Write mode. The docx file is opened and locked until it is closed.
Note: To create a docx file without using an initial file, all you have to do is create a Document variable (in this case, DocOpen is useless).
Caution: This documentation presents the last features of the Word Processing control. Make sure that all the necessary modules are updated.
Example
d is Document
d = DocOpen("C:\Users\test\Documents\file.docx")

IF ErrorOccurred() THEN
Error(ErrorInfo())
RETURN
END
Syntax

Associating a docx file with a Document variable Hide the details

<Result> = DocOpen(<Path>)
<Result>: Document variable
Name of Document variable corresponding to the docx file. This variable can be used in all DocXXX functions.
The ErrorOccurred variable is set to True if an error occurred and ErrorInfo returns the error details.
<Path>: Character string (with quotes)
Full or relative path of docx XLS file to open (up to 260 characters).

Associating a docx file with a Word Processing control Hide the details

<Result> = DocOpen(<Word Processing Control> , <Path>)
<Result>: Boolean
  • True if the docx file was opened in the Word Processing control,
  • False otherwise.
<Word Processing Control>: Control name
Name of Word Processing control where the docx file will be opened.
<Path>: Character string (with quotes)
Full or relative path of docx XLS file to open (up to 260 characters).
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