procedure TForm1.Button1Click(Sender: TObject); var Word: OLEVariant; begin
try Word := CreateOleObject('Word.Application'); except ShowMessage('Cannot start Word !');
Exit; end; // Show Word Word.Visible := True; // Add a new Document Word.Documents.Add; if Word.ActiveWindow.View.SplitSpecial <> 0 then Word.ActiveWindow.Panes[2].Close; if (Word.ActiveWindow.ActivePane.View.type = 1) or (Word.ActiveWindow.ActivePane.View.type = 2) or (Word.ActiveWindow.ActivePane.View.type = 5) then Word.ActiveWindow.ActivePane.View.type := 3;
Word.ActiveWindow.ActivePane.View.SeekView := 9;