<?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>how to open html in a new window using C#?</title><link>https://www.infopathdev.com:443/forums/thread/53149.aspx</link><pubDate>Fri, 26 Mar 2010 15:12:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53149</guid><dc:creator>golden_shiner</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53149.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53149</wfw:commentRss><description>&lt;p&gt;hello,&lt;br /&gt;I have a c# application which after clicking a button in infopath form, creates an HTML file. I would like to open this page in a NEW window, instead of what is actually doing, opening&amp;nbsp; under a new tab. Any help will be greatly appreciated. &lt;br /&gt;&amp;lt;code&amp;gt;&lt;br /&gt;fileName = (&amp;quot;Warningfile &amp;quot; + PHYS_MSTR_water_body_id.ToString() + &amp;quot; &amp;quot; + PHYS_MSTR_event_date.ToString() + &amp;quot; &amp;quot; + time_collected_hh.ToString() + &amp;quot; &amp;quot; + time_collected_minutes.ToString() + &amp;quot; &amp;quot; + PHYS_LOC_grid.ToString() + &amp;quot;.html&amp;quot;);&lt;br /&gt;FileStream outputfile = null; path = &amp;quot;Warningfile &amp;quot; + PHYS_MSTR_water_body_id.ToString() + &amp;quot; &amp;quot; + PHYS_MSTR_event_date.ToString() + &amp;quot; &amp;quot; + time_collected_hh.ToString() + &amp;quot; &amp;quot; + time_collected_minutes.ToString() + &amp;quot; &amp;quot; + PHYS_LOC_grid.ToString() + &amp;quot;.html&amp;quot;; &lt;br /&gt;try&lt;br /&gt;{ &lt;br /&gt;outputfile = new FileStream(fileName, FileMode.Create, FileAccess.Write); &lt;br /&gt;writer = new StreamWriter(outputfile);&lt;br /&gt;writer.BaseStream.Seek(0, SeekOrigin.End);&lt;br /&gt;DoWrite(&amp;quot;&amp;lt;a&amp;gt;&amp;lt;target=&amp;#39;_blank&amp;#39;&amp;gt;&amp;lt;/a&amp;gt;&amp;quot;);&lt;br /&gt;DoWrite(&amp;quot;&amp;lt;HTML&amp;gt;&amp;quot;);&lt;br /&gt;DoWrite(&amp;quot;&amp;lt;HEAD&amp;gt;&amp;quot;);&lt;br /&gt;DoWrite(&amp;quot;&amp;lt;TITLE&amp;gt;&amp;quot;);...&amp;lt;/code&amp;gt;&lt;/p&gt;</description></item></channel></rss>