<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Loading HTML into Task Pane</title><link>https://www.infopathdev.com:443/forums/thread/23522.aspx</link><pubDate>Mon, 08 Oct 2007 12:57:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23522</guid><dc:creator>Kalyan Gaddam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23522.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=23522</wfw:commentRss><description>&lt;p&gt;Thanks for sharing this&lt;/p&gt;</description></item><item><title>Loading HTML into Task Pane</title><link>https://www.infopathdev.com:443/forums/thread/23434.aspx</link><pubDate>Wed, 03 Oct 2007 19:14:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23434</guid><dc:creator>djay</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23434.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=23434</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I am trying to display one of my views in the task pane.&amp;nbsp; So I am running the forms XML through the views xsl code like this:&lt;/p&gt;&lt;p&gt;IXMLDOMDocument2 xslIPDoc;&lt;br /&gt;xslIPDoc = (IXMLDOMDocument2)thisXDocument.CreateDOM();&lt;br /&gt;MSXML2.IXSLTemplate TPTmp = new MSXML2.XSLTemplate50Class();&lt;br /&gt;MSXML2.IXMLDOMDocument2 xslDoc = new MSXML2.FreeThreadedDOMDocument50Class();&lt;br /&gt;MSXML2.IXMLDOMDocument2 inputDoc = new MSXML2.FreeThreadedDOMDocument50Class();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;xslIPDoc.load(&amp;quot;test.xsl&amp;quot;);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;xslDoc.loadXML(xslIPDoc.xml);&lt;br /&gt;TPTmp.stylesheet = xslDoc;&lt;br /&gt;&lt;br /&gt;MSXML2.IXSLProcessor TPProc = TPTmp.createProcessor();&lt;br /&gt;inputDoc.loadXML(thisXDocument.DOM.xml);&lt;br /&gt;TPProc.input = inputDoc;&lt;br /&gt;TPProc.transform();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It would be nice t use the infopath IXSLTemplate object instead of the MSXML2 one.&amp;nbsp; But I can&amp;#39;t seem to create a new one to use...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Anyway, after running that I have HTML in TPProc.output that I want to display in th task pane.&lt;/p&gt;&lt;p&gt;Is there any way to load the entire page directly into the TaskPane HTMLDocument?&lt;/p&gt;&lt;p&gt;Or is there a way to write to an InfoPath resource file which I can then redirect the TaskPane to?&lt;/p&gt;&lt;p&gt;The only way I can find to do this is to write the HTML to an external file and point the TaskPane to that, but I don&amp;#39;t want to start writing files all over the users hard-drive.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;b&gt;Fixed It&lt;/b&gt;--------------------------------------------------&lt;/p&gt;&lt;p&gt;&amp;nbsp;Found what I needed.&amp;nbsp; Added this to the end of above:&lt;/p&gt;&lt;p&gt;string sTemp = (string)TPProc.output;&lt;br /&gt;object[] psa = {sTemp};&lt;br /&gt;((HTMLTaskPane)thisXDocument.View.Window.TaskPanes[0]).HTMLDocument.write(psa);&lt;br /&gt;((HTMLTaskPane)thisXDocument.View.Window.TaskPanes[0]).HTMLDocument.close();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;That writes the output HTML directly to the TaskPane HTML document.&lt;/p&gt;&lt;p&gt;Now all I need to do is figure out how to make a new&amp;nbsp; IXSLTemplate in InfoPath so I don&amp;#39;t need all that MSXML2 messyness.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>