Skip to Content
0
Former Member
Jan 10, 2011 at 10:13 AM

ABAP OLE Word - Delete last page

126 Views

Dear all,

I have a SAP program which prints some documents in Microsoft Word by using ABAP OLE Objects.

I use a template to take the main context, and after that I send some variables in order to populate the word document.

The problem is when I create the new word document, I paste the template text in a new document, but at the end I have always an empty page. I don't know how to delete this final page, I don't find the corresponding OLE method to do it.

I have found a method to cut a line, but the problem is that line is also empty, and I cannot cut it.

Could anyone help me?

Many thanks in advance and best regards.