<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>byteMyCode: Snippets for Document</title>
		<link>http://www.bytemycode.com</link>
		<description>Snippets for this tag.</description>
		<pubDate>Thu, 04 Dec 2008 17:38:26 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	<item>
	<title>document.exists</title>
	<link>http://www.bytemycode.com/snippets/snippet/532/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/532/comments/</comments>
	<pubDate>Sun, 12 Nov 2006 02:08:06 +0000</pubDate>
	<dc:creator>shachi</dc:creator>
	<category>Document, exists</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/532/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Sun. Nov. 12th, 2006  2:08 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/532/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/shachi/" title="Scripter">shachi</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/Document">Document</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/exists">exists</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/532/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> -2
			<p>Checks whether a node exists or not. Not sure about cross browser compatibility though.<img src="http://www.bytemycode.com/img/wysiwyg/emo-cry.gif" /></p>
		]]>
	</description>
</item><item>
	<title>Launch A Document Using Default Application</title>
	<link>http://www.bytemycode.com/snippets/snippet/92/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/92/comments/</comments>
	<pubDate>Fri, 17 Feb 2006 15:49:14 +0000</pubDate>
	<dc:creator>RRSands</dc:creator>
	<category>CSharp, Document, Execute, Launch, Run</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/92/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Fri. Feb. 17th, 2006  3:49 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/92/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_beginner.gif" align="middle" class="icon" alt="Beginner" /> <a href="http://www.bytemycode.com/members/member/RRSands/" title="Beginner">RRSands</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/CSharp">CSharp</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Document">Document</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Execute">Execute</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Launch">Launch</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Run">Run</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/92/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 8
			<p>This snip opens any kind of document (e.g. .PDF, .DOC, .C, .HTM, etc.) using the default application associated with it.  This relies on starting a new process with the .UseShellExecute property set to true.<br /><br />The main overloaded function OpenDoc(filename) will open any associated document using the default OPEN verb.  If you are trying to edit a file, for example, a command file, then you need should call OpenDoc with the "EDIT" verb.  Some associations also a "PRINT" verb.<br /><br />Since the return result is a System.Diagnostics.Process object, you can also monitor or kill the process.<br /><br />Example:<br />     OpenDoc("C:\\SomeDocumentation.pdf");<br />     OpenDoc("C:\\AWebPage.htm", "EDIT");<br />     OpenDoc("C:\\Test.txt", "PRINT");<br />     System.Diagnostics.Process doc = OpenDoc("C:\\WebPage.htm");<br /></p>
		]]>
	</description>
</item>
	</channel>
</rss>