Hi, I have a problem with Word.Application I copy and paste from several Word document
oWord.Documents.Item(1).Range.Copy;
OWordOut.Documents.Item(1).Range(OWordOut.Documents.Item(1).Range.End - 1, OWordOut.Documents.Item(1).Range.End - 1).Paste;
where OWordOut
oWordOut := CreateOLEObject('Word.Application');
The copy and paste works fine, but when i print the oWordOut
oWordOut.DisplayAlerts := False;
MyDialogs := oWordOut.Dialogs;
if MyDialogs.Item(88).Show = -1 then
begin
oWordOut.ActiveDocument.PrintOut(False);
end;
I receive a message like this "Save the Normal.dot file?". Only in a Windows 2000 + Office 2000 machine. In another machine (win xp + office 2000) I receive nothing. Any suggestion?? Thanks! (and sorry for my bad english!)
oWord.Documents.Item(1).Range.Copy;
OWordOut.Documents.Item(1).Range(OWordOut.Documents.Item(1).Range.End - 1, OWordOut.Documents.Item(1).Range.End - 1).Paste;
where OWordOut
oWordOut := CreateOLEObject('Word.Application');
The copy and paste works fine, but when i print the oWordOut
oWordOut.DisplayAlerts := False;
MyDialogs := oWordOut.Dialogs;
if MyDialogs.Item(88).Show = -1 then
begin
oWordOut.ActiveDocument.PrintOut(False);
end;
I receive a message like this "Save the Normal.dot file?". Only in a Windows 2000 + Office 2000 machine. In another machine (win xp + office 2000) I receive nothing. Any suggestion?? Thanks! (and sorry for my bad english!)