Task Panes and Managed code - InfoPath Dev
in

InfoPath Dev

Task Panes and Managed code

Last post 08-29-2006 06:31 PM by vt_asparagus. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-26-2006 06:58 AM

    Task Panes and Managed code

    I got pulled in to look at someone InfoPath problems and wanted to get some insight.

    First, the guy is having some performance issues with the loading of his taskpane when it is first opened. We think we narrowed it down to the numerous calls he is making between the taskpane and the infopath form when the form is first loaded. He has a form that is in C# and making many jscript calls back and forth. Is it possible to experience a performance hit if you are making many calls from managed to un-managed code calls?

    I did mention that if that is the case, he should probably refactor is loading logic to only call between the form and the taskpane once on load.

    Second, I found this article a while back which supposedly showed how to embed a asp.net page in the taskpane, but it is really not doing that http://www.developer.com/net/article.php/10916_3082431_2). It is just referencing an ASP.net page - nothing more. Is it possible to place managed code in a task pane and then be able to make calls from the infopath form to the taskpane and vice versa? The goal is to get rid of jscripting in the taskpane all together.
    Jason
    http://www.k2distillery.com/
  • 08-29-2006 06:27 PM In reply to

    Re: Task Panes and Managed code

    Hey Jason,

    It's not surprising that calling between managed and unmanaged code causes a performance hit - I would agree with the recommendation to call between them as little as possible.

    I doubt there is a way to run managed code in a task pane since it is basically just using IE to render it. There might be some crazy trickery that might allow it but I think it would require installing ASP.NET compiler on each machine that wishes to run the code and this is very far from desirable.

    Thanks for the link to the article!
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 08-29-2006 06:31 PM In reply to

    Re: Task Panes and Managed code

    Matt - Thanks for confirming what we thought was going on. Congrats on the MVP status Mr. InfoPath Wiz Kid... J
    Jason
    http://www.k2distillery.com/
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.