Opening a new form from the OnLoad event

S

Segfault

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.
 
K

Kalyan Reddy

Hi Segfault,

Yes it does not work Onload
you cannot open a new infopath window in onload
 

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