Opening Infopath Form from VB application

J

James Dooley

I need following functionality:
1) Load all the cached Infopath Template in a list
2) On clicking on a form it should open in Infopath

How can I do this?

Thanks
 
B

Brian Teutsch [MSFT]

InfoPath doesn't expose the list of forms a user has previously opened. You
would have to create a list of forms that may be useful to your user
manually.

You can always use NewFromSolution(url) to open an existing form, even if it
hasn't been previously opened.

Brian
 
J

James Dooley

Thanks Brian.

Brian Teutsch said:
InfoPath doesn't expose the list of forms a user has previously opened. You
would have to create a list of forms that may be useful to your user
manually.

You can always use NewFromSolution(url) to open an existing form, even if it
hasn't been previously opened.

Brian
 
R

rivsys

You could also record the forms as they are opened by the user to a key in
the registry (I suggest HKEY_CURRENT_USER) during Infopath's _Startup event.
Then read the desired data from VB when needed.
 
J

James Dooley

Hi,

I am able to open the form using method NewFromSolution(formName). Here
formName is the share point form library template URL.
When I open the form in local system disconnected from Share Point Library,
It popup a message “Could not open http://......./template.xsn†and on
clicking OK form opens.
Cannot I avoid this message?

Thanks
 
Top