Forum > General

Focus or Showwindow of Microsoft Word

(1/1)

w click:
I've a wordapp with a sourcedoc and it highlights the paragraph, but only when you click on it.  I've got to here, but wordapp.visible is already true and not needed, and activedocument does nothing.  Setofocus causes an exception.  This is Windows.

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---        try          sourcedoc.paragraphs(target+1).range.select;//          wordapp.setfocus;          wordapp.Visible:=true;          wordapp.ActiveDocument.Activate();         except          showmessage('oops for '+inttostr(target));        end; I need to bring Word to the front and sort of click on it.  Can anyone help?

Navigation

[0] Message Index

Go to full version