Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / September 2004

Tip: Looking for answers? Try searching our database.

TaskPane mshtml error (C#)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
StefanO-nl - 07 Sep 2004 17:54 GMT
Hi,
To use context sensitive help in InfoPath I've used the example found at
http://blogs.msdn.com/philoj/archive/2004/04/25/119926.aspx

However, when I deploy the InfoPath form to a client machine without VS
installed, I get the following error:
Method not found: mshtml.IHTMLDocument2
Microsoft.Office.Interop.InfoPath.SemiTrust.HTML.TaskPane.get_HTMLDocument()
,
 at mySolution.OnContextChange(DocContextChangeEvent e)
 at Microsoft.Office.Interop.InfoPath.SemiTrust._XDocumentEventSink2
_SinkHelper.OnContextChange(DocContextChangeEvent pEvent)

I've searched for answers and found that mshtml is (or was?) not installed
on clients without VS.
But how should mshtml be deployed with an InfoPath-form or is there another
way to use context sensitive help in InfoPath?
Brian Teutsch [MSFT] - 08 Sep 2004 06:01 GMT
The MSHTML PIA is not installed without VS.NET, you're correct. We believe
you can deploy the MSHTML PIA to your users, just like you would be sure
that the .NET Framework is installed. I don't know if there are other
options for loading arbitrary HTML in managed code. Random idea, if a
function in the task pane returns the HTML, (big if) if that return value is
XHTML you could load it into System.XML. I doubt that will work. Otherwise
you cannot interact with the HTML in the task pane via managed code.

Brian

> Hi,
> To use context sensitive help in InfoPath I've used the example found at
[quoted text clipped - 14 lines]
> another
> way to use context sensitive help in InfoPath?
StefanO-nl - 13 Sep 2004 12:59 GMT
You wrote "We believe you can deploy the MSHTML PIA to your users, just like
you would be sure that the .NET Framework is installed.", but I don't know
exactly what you mean.

I've tried to include the Microsoft.mshtml.dll (from \Program
Files\Microsoft.NET\Primary Interop Assemblies) into the xsn, I've tried to
register the dll with the setup-project I've created, I even tried to copy
the dll manually to the PIA-location on the client PC (just for testing
purposes), but nothing did the trick...
I can't expect my users to install VS.NET just because I need the MSHTML PIA
and I find it strange there is no merge module or something else to install
it separately...

> The MSHTML PIA is not installed without VS.NET, you're correct. We believe
> you can deploy the MSHTML PIA to your users, just like you would be sure
[quoted text clipped - 13 lines]
> > installed, I get the following error:
> > Method not found: mshtml.IHTMLDocument2

Microsoft.Office.Interop.InfoPath.SemiTrust.HTML.TaskPane.get_HTMLDocument()
> > ,
> >  at mySolution.OnContextChange(DocContextChangeEvent e)
[quoted text clipped - 6 lines]
> > another
> > way to use context sensitive help in InfoPath?
Brian Teutsch [MSFT] - 14 Sep 2004 05:13 GMT
I wish I could help you out here, but I don't know how to do this. I know
moving the PIA has been done without a full installation of VS.NET
(obviously not allowed without licenses). Hopefully someone else here can
chime in, or perhaps the VS.NET groups can give some help.

Brian

> You wrote "We believe you can deploy the MSHTML PIA to your users, just
> like
[quoted text clipped - 47 lines]
>> > another
>> > way to use context sensitive help in InfoPath?
StefanO-nl - 20 Sep 2004 10:42 GMT
The solution is to include the mshtml PIA in the setup project and set it's
destination location to the gac.
And also use regasm...

> I wish I could help you out here, but I don't know how to do this. I know
> moving the PIA has been done without a full installation of VS.NET
[quoted text clipped - 41 lines]
> >> > installed, I get the following error:
> >> > Method not found: mshtml.IHTMLDocument2

Microsoft.Office.Interop.InfoPath.SemiTrust.HTML.TaskPane.get_HTMLDocument()
> >> > ,
> >> >  at mySolution.OnContextChange(DocContextChangeEvent e)
[quoted text clipped - 7 lines]
> >> > another
> >> > way to use context sensitive help in InfoPath?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.