Performance Issue while loading Infopath in Formcontrol

M

makarand devalekar

Hi,

I am using Microsoft.office.InfoPAth.Formcontrol to show InfoPath Form
Template in Word 2007 CustomTaskPane.
I am using following method to display InfoPath Form template in FormControl:
////
infoPathFormControl.NewFromFormTemplate(xsnFileLocation);
Here, xsnFileLocation is the physical location of xsn file on my machine.
////

It displays infopath form properly, however it takes considerable time to
load InfoPath form template and show it in CTP.
Also, the loading time for the first time is very noticeable (almost 8-9
seconds) which gets reduced (3-4 seconds) if I close and open it again in the
same FormControl.

Is there any way so as to reduce this loading time so that performance can
be improved?
I would be very happy to know the reason for getting it very slow while
loading for the first time.

P.S. I am using InfoPath 2007 and form Template contains 7 views , each
having almost 15-20 controls on it.

Thanks,
Makarand
 
S

Shiva

Hello,

Do you have any onLoad Rules in your form? Do you have onLoad function in
your solution to set the initial data for that opening form? If you do not
have any onLoad Rules and onLoad method then it would open quickly.
 
M

makarand devalekar

Hello Shiva,
Thanks for your response.
I dont have any onLoad function in solution, nor have any rules.
one thing which i mentioned before, that i have repetitive sections controls
and RichTextBox controls , Dropwn List box controls on my form.


It would be great to hear more from you.
Thanks in advance.

Makarand
 

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