FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WINDEV 2024
→
work with Word; who can help ?
work with Word; who can help ?
Iniciado por Udo Libbach, 04,ago. 2004 17:11 - 1 respuesta
Conéctese…
Udo Libbach
#1
Publicado el 04,agosto 2004 - 17:11
the following Example give me an Error.
I read an old Document and will save the Document
with SaveAs.
The Error is:
Error in Exit of Edit3 process, line 17.
Object handled by FileName method is not an Automation object.
Example-------------------------------------------------
NewDocument is string = "C:\FUHR\ORDER\test.rtf"
MyWord is object Automation dynamic
// If Word is already running, we'll use it
MyWord = GetActiveObject("Word.Application")
IF MyWord = Null THEN
// Word is not running: we run it
MyWord = new object Automation "Word.Application"
IF MyWord = Null THEN
Error("Cannot run Word")
RETURN
END
END
IF MyWord <> Null THEN
// Open old Document
MyWord>>Documents>>Open(rtfDocument)
// Save as < >
MyWord>>Documents>>Add>>SaveAs>>FileName(NewDocument)
// Open Document
MyWord>>Documents>>Open(NewDocument)
// Change Variable
// DFA
_neu is string = Edit6
MyWord>>Selection>>Find>>Execute("@DR_DFA",False,True,False,False,False,True,1,False,_neu,2)
MyWord>>Visible = True
MyWord>>Documents>>Close>>SaveChange("wdSaveChanges")
MyWord>>ActiveWindow>>Close()
// Closing Word
MyWord>>Quit()
Informar
0
0
Andy Bewick
#2
Publicado el 04,agosto 2004 - 20:34
Udo,
MyWord>>ActiveDocument>>SaveAs>>FileName(NewDocument)
works for me.
Regards,
Andy
"Udo Libbach" <Udo.Libbach@t-online.de> wrote:
// Save as < >
MyWord>>Documents>>Add>>SaveAs>>FileName(NewDocument)
Informar
0
0
→ Volver a WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto