Skip to Content
0
Former Member
Mar 17, 2009 at 04:40 PM

How to print an MS Word Document from ABAP

528 Views

Hi all

Users want me to print a word document from within an abap program.

Is this possible ?

No data is being passed to the document and it's way to complex to create in smart forms.

would something like this work ?

CREATE OBJECT WORD 'Word.Application'.

SET PROPERTY OF WORD 'Visible' = 1.

CALL METHOD OF WORD 'Open'

EXPORTING #1 = 'PATH AND FILE NAME'.

CALL METHOD OF WORD 'RUN' EXPORTING #1 = 'OPEN1'.

any help much appreciated !

Hugh