🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.lenguajes.java
Article #26064

JAVA - Office

#26064
From: Ricardo
Date: Wed, 10 Feb 1999 00:00
33 lines
1304 bytes
Hola,

Necesito realizar llamadas desde un programa escrito en JAVA al Office
de Microsoft (Word 97).

En Visual Basic 6.0 para cargar el Word,abrir un documento y editarlo
cuando p�lsamos un bot�n el c�digo ser�a:

Private Sub Command1_Click()

Dim o As Object

Rem crear un objeto Word.Application
Set o = CreateObject("word.application")

Rem Hacer visible al Word:
o.Visible = True

Rem Crear un Nuevo documento
o.Documents.Add

Rem Abrir un documento:
o.Documents.Open filename:="d:\basura\p1.htm"

Rem Insertar in Texto al final del documento activo:
o.activedocument.content.InsertAfter "fin."

End Sub


� Alguien sabe como hacer esto mismo o parecido desde JAVA ?

Gracias.
Technical Details
Message-ID: <36C236B8.8F76C142@jet.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: 1116f3,9fd0df8d1616332b,start
X-Google-Attributes: gid1116f3,public
From: Ricardo <rmartin@jet.es>
Subject: JAVA - Office
Date: 1999/02/10
Message-ID: <36C236B8.8F76C142@jet.es>
X-Deja-AN: 442864290
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: usenet@lola.ctv.es
X-Trace: lola.ctv.es 918664974 11431 195.55.158.234 (10 Feb 1999 16:42:54 GMT)
Organization: CTV/JET
Mime-Version: 1.0
NNTP-Posting-Date: 10 Feb 1999 16:42:54 GMT
Newsgroups: es.comp.lenguajes.java