[1852] in SAPr3-news

home help back first fref pref prev next nref lref last post

SAP-OLE MS Excel

daemon@ATHENA.MIT.EDU (Thomas Markert)
Sat Nov 16 01:57:52 1996

To: sapr3-news@MIT.EDU
Date: Thu, 14 Nov 1996 15:31:43 GMT
From: Thomas Markert <thomas.markert@kapp-coburg.de>
Reply-To: thomas.markert@kapp-coburg.de

Reposting article removed by rogue canceller.  See news.admin.net-abuse.a=
nnounce
for further information.

Hallo SAPler

Ich habe ein kleines Problem mit OLE.=20
Sachverhalt:
Ansteuerung MS Excel mittels OLE.=20
Beispiel:
=D6ffnen einer neuen Mappe und speichern unter.

DATA EXCEL   TYPE OLE2_OBJECT.
DATA BOOK  TYPE OLE2_OBJECT.

FILE =3D 'C:\TEMP.XLS'

CREATE OBJECT EXCEL 'Excel.APPLICATION'.
SET PROPERTY OF EXCEL: 'Visible' =3D 1.
CALL METHOD OF EXCEL 'Workbooks' =3D BOOK.
CALL METHOD OF BOOK  'Add'.
CALL METHOD OF EXCEL 'SaveAs' EXPORTING #1 =3D FILE.


Bei letzten Befehle bekomme ich immer eine OLE-Fehlermeldung.

Danke an alle im voraus.

Thomas Markert

eMail: thomas.markert@kapp-coburg.de

home help back first fref pref prev next nref lref last post