AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Procesador de texto
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
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, simply create a variable of type Document (the function DocOpen function).
Ejemplo
// Using a Document variable
d is Document
d = DocOpen("C:\Users\test\Documents\file.docx")

IF ErrorOccurred() THEN
	Error(ErrorInfo())
	RETURN
END
// Using a Word Processing control
DocOpen(WP_MyWP, "C:\Users\test\Documents\file.docx")

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

Associating a docx file with a Document variable Ocultar los detalles

<Result> = DocOpen(<Document source> [, <Password>])
<Result>: Document variable
Name of the Document variable corresponding to the docx file. This variable can be used in all the DocXXX functions.
In the event of an error, variable ErrorOccurred is set to True and function ErrorInfo is used to find out the cause of the error.
<Document source>: Type corresponding to the source
Corresponds to one of the following elements:
  • Full or relative path of docx file to open (up to 260 characters).
  • Name of the Buffer variable with the docx document to display in the Word Processing control.
  • Name of the memo item with the docx document to display in the Word Processing control. This parameter is of the form: <Fichier de données>.<Rubrique>.
<Password>: Optional string or Secret string
Password to open the docx file to use (if the file is protected by a password).
Novedad versión 2025
Cadenas secretas: Si utiliza el almacén de cadenas secretas, el tipo de cadena secreta utilizado para este parámetro debe ser "ANSI o Unicode string".
Para obtener más información sobre las cadenas secretas y el almacén, consulte Almacén de cadenas secretas.
WINDEV

Associating a docx file with a Word Processing control Ocultar los detalles

<Result> = DocOpen(<Word Processing control> , <Document source> [, <Password>])
<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.
<Document source>: Type corresponding to the source
Corresponds to one of the following elements:
  • Full or relative path of docx file to open (up to 260 characters).
  • Name of the Buffer variable with the docx document to display in the Word Processing control.
  • Name of the memo item with the docx document to display in the Word Processing control. This parameter is of the form: <Fichier de données>.<Rubrique>.
<Password>: Optional string or Secret string
Password to open the docx file to use (if the file is protected by a password).
Novedad versión 2025
Cadenas secretas: Si utiliza el almacén de cadenas secretas, el tipo de cadena secreta utilizado para este parámetro debe ser "ANSI o Unicode string".
Para obtener más información sobre las cadenas secretas y el almacén, consulte Almacén de cadenas secretas.
Clasificación Lógica de negocio / UI: Código UI
Componente: wd300mdl.dll
Versión mínima requerida
  • Versión 22
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 16/05/2025

Señalar un error o enviar una sugerencia | Ayuda local