bring infopath window to foreground

M

Michael Totschnig

Probably the answer is something obvious, but I could not find how I
can bring an Infopath window to the foreground, when I conncet to it
with external automation.
The use case is a web page, from which I want to call a function in an
open Infopath form that loads data and as a result the form should be
displayed to the user. I successfully implemented both a javascript
function directly inserted into the page (for Internet Explorer) and a
small helper exe which is called via a private MIME type (for Firefox).
Both use the Infopath.Application object and execute the function.
I tried Xdocument.View.Window.Activate(), but it does not foreground
the application window.
Regards,
Michael Totschnig
 
G

Greg Collins [InfoPath MVP]

If you've already tried Activate(), then I am not sure what else you could try.

--
Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com


Probably the answer is something obvious, but I could not find how I
can bring an Infopath window to the foreground, when I conncet to it
with external automation.
The use case is a web page, from which I want to call a function in an
open Infopath form that loads data and as a result the form should be
displayed to the user. I successfully implemented both a javascript
function directly inserted into the page (for Internet Explorer) and a
small helper exe which is called via a private MIME type (for Firefox).
Both use the Infopath.Application object and execute the function.
I tried Xdocument.View.Window.Activate(), but it does not foreground
the application window.
Regards,
Michael Totschnig
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top