Is there a reason the code:
thisApplication.XDocuments.Open(sForm,
CType(XdDocumentVersionMode.xdCanOpenInReadOnlyMode, Integer))
will not execute in the onLoad event?
I have a form that checks whether the form is out-of-date and reloads if
necessary. This code snippet seems to run fine when I put it in a button
handler, but does nothing when in the onload event.
Kalyan Reddy - 23 May 2006 09:08 GMT
Hi Segfault,
Yes it does not work Onload
you cannot open a new infopath window in onload

Signature
Kalyan Reddy
Visit http://www.autonomysystems.com
> Is there a reason the code:
> thisApplication.XDocuments.Open(sForm,
[quoted text clipped - 4 lines]
> necessary. This code snippet seems to run fine when I put it in a button
> handler, but does nothing when in the onload event.