O
Onno B.
We export asci files from SAP/R3 and open them with a Word (XP SP3 English)
macro like
Documents.open export.txt
In this file every record is on one line ended with CRLF (checked this with
an hexeditor). But when we do nothing but saving (and implicit converting)
the file using
Activedocument.saves filename:="export.doc", fileformat:=wdFormatdocument
SOMETIMES there is an unexpected empty line in export.doc, when it occurs it
can be reproduced (I have an example) but when we first edit export.txt using
notepad it sometimes dissapears and sometimes not.
I think it's a bug or so, we need the conversion to Word format as we use
this document as secondary merge file.
We have isolated the problem to the saveas command in the macro when trying
to do the same without macro (use file -> saveas) the problem does not occur.
Please advice ?.
macro like
Documents.open export.txt
In this file every record is on one line ended with CRLF (checked this with
an hexeditor). But when we do nothing but saving (and implicit converting)
the file using
Activedocument.saves filename:="export.doc", fileformat:=wdFormatdocument
SOMETIMES there is an unexpected empty line in export.doc, when it occurs it
can be reproduced (I have an example) but when we first edit export.txt using
notepad it sometimes dissapears and sometimes not.
I think it's a bug or so, we need the conversion to Word format as we use
this document as secondary merge file.
We have isolated the problem to the saveas command in the macro when trying
to do the same without macro (use file -> saveas) the problem does not occur.
Please advice ?.