<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://www.sanbs.nl/blog/x5feed.php" rel="self" type="application/rss+xml" />
		<title><![CDATA[Blog]]></title>
		<link>http://www.sanbs.nl/blog/</link>
		<description><![CDATA[Xml Parser allows you to convert XML nodes to database records.
]]></description>
		<language>EN</language>
		<lastBuildDate>Mon, 30 Jan 2017 17:23:00 +0100</lastBuildDate>
		<generator>Incomedia WebSite X5 Professional</generator>
		<item>
			<title><![CDATA[OpenSharedItem]]></title>
			<author><![CDATA[]]></author>
			<category domain="http://www.sanbs.nl/blog/index.php?category=c#"><![CDATA[c#]]></category>
			<category>imblog</category>
			<description><![CDATA[<div id="imBlogPost_34o0m6a1"><div>You try to open an email stored on the filesystem&nbsp;<span class="fs13">in C# programs</span><span class="fs13">&nbsp;</span><span class="fs13">using&nbsp;</span><span class="fs13">NameSpace.OpenSharedItem method of the&nbsp;</span><span class="fs13">Microsoft.Office.Interop.Outlook assembly.</span><span class="fs13">&nbsp;</span></div><div>It is working fine for the first time the msg file is opening, but by trying to reopen the file it showing the following error:</div><div><br></div><div><div><span class="cb1">"Cannot open file: ....msg. The file may not exist, you may not have permission to open it, or it may be open in another program. </span></div><div><span class="cb1">Right-click the folder that contains the file, and then click Properties to check your permissions for the folder."</span></div></div><div><br></div><div><div><span class="imUl">Solution</span></div></div><blockquote><div><div><span class="fs13">using Outlook = Microsoft.Office.Interop.Outlook;</span></div></div></blockquote><blockquote><div><div>Outlook.Application application = new Outlook.Application();</div></div></blockquote><blockquote><div><div>....................................................................................</div></div></blockquote><div><div>Instead of: </div></div><blockquote><div><div>  Outlook.MailItem oItem = (Outlook.MailItem) application.Session.OpenSharedItem(string Path);</div></div></blockquote><div><div>you should use:</div></div><blockquote><div><div>  var oItem = application.Session.OpenSharedItem(string Path) as Outlook.MailItem;</div></div></blockquote><blockquote><div><div>.................................................................................</div></div></blockquote><blockquote><div><div><span class="fs13">oItem</span>.Close(OlInspectorClose.olDiscard); &nbsp;// now&nbsp;<span class="fs13">closing is possible</span></div></div></blockquote><blockquote>a<span class="fs13">application</span><span class="fs13">.Quit();</span><br></blockquote><blockquote><div><div>Marshal.ReleaseComObject(oItem);</div></div><div><br></div></blockquote><div><a href="http://www.sanbs.nl/blog/index.php" class="imCssLink" onclick="return x5engine.utils.location('http://www.sanbs.nl/blog/index.php', null, false)">Back to Blog</a></div></div>]]></description>
			<pubDate>Mon, 30 Jan 2017 16:23:00 GMT</pubDate>
			<link>http://www.sanbs.nl/blog/?id=34o0m6a1</link>
			<guid isPermaLink="false">http://www.sanbs.nl/blog/rss/34o0m6a1</guid>
		</item>
		<item>
			<title><![CDATA[Automations registration]]></title>
			<author><![CDATA[]]></author>
			<category domain="http://www.sanbs.nl/blog/index.php?category=MS_Dynamics_NAV"><![CDATA[MS Dynamics NAV]]></category>
			<category>imblog</category>
			<description><![CDATA[<div id="imBlogPost_lg14pkiq"><div>When developing of .NET assemblies for Classic Client of MS Dynamics NAV is often required to register and unregister of the automation servers.</div><div><span class="fs13">Registration is performed using:</span><br><ul><li><span class="fs13">Assembly Registration tool Regasm.exe</span><br></li><li><span class="fs13">Global Assembly Cache tool Gacutil.exe</span><br></li></ul></div><div>Each new version of the DLL requires re-registration and this can be repeated many times.</div><div>I have developed a small tool to speed up the registration process. This tool create а .bat file that allows registration in only few seconds.</div><div> </div><div><br></div><div><div><a href="http://www.sanbs.nl/files/BatTool02.jpg" onclick="return x5engine.utils.imPopUpWin('http://www.sanbs.nl/files/BatTool02.jpg','imPopUp', 1200,300);" class="imCssLink inline-block"><img src="http://www.sanbs.nl/images/BatTool02.jpg"  title="" alt="" style="width:760px; height: 200px;" /></a><br></div></div><div><br></div><div><a href="http://www.sanbs.nl/files/BatTool01.jpg" onclick="return x5engine.utils.imPopUpWin('http://www.sanbs.nl/files/BatTool01.jpg','imPopUp', 1200,300);" class="imCssLink inline-block"><img src="http://www.sanbs.nl/images/BatTool01.jpg"  title="" alt="" style="width:760px; height: 197px;" /></a><br></div><div><br></div><div><a href="http://www.sanbs.nl/files/BatTool03.jpg" onclick="return x5engine.utils.imPopUpWin('http://www.sanbs.nl/files/BatTool03.jpg','imPopUp', 1200,600);" class="imCssLink inline-block"><img src="http://www.sanbs.nl/images/BatTool03.jpg"  title="" alt="" style="width:760px; height: 292px;" /></a><br></div><div><br></div><div><a href="http://www.sanbs.nl/files/CreateBAT.zip" target="_blank" class="imCssLink">Download</a></div><div><a href="http://www.sanbs.nl/blog/index.php" class="imCssLink" onclick="return x5engine.utils.location('http://www.sanbs.nl/blog/index.php', null, false)">Back to Blog</a></div></div>]]></description>
			<pubDate>Sun, 29 Jan 2017 17:20:00 GMT</pubDate>
			<link>http://www.sanbs.nl/blog/?id=lg14pkiq</link>
			<guid isPermaLink="false">http://www.sanbs.nl/blog/rss/lg14pkiq</guid>
		</item>
		<item>
			<title><![CDATA[Web Service]]></title>
			<author><![CDATA[]]></author>
			<category domain="http://www.sanbs.nl/blog/index.php?category=MS_Dynamics_NAV"><![CDATA[MS Dynamics NAV]]></category>
			<category>imblog</category>
			<description><![CDATA[<div id="imBlogPost_072g464w"></div>]]></description>
			<pubDate>Thu, 26 Jan 2017 18:44:00 GMT</pubDate>
			<link>http://www.sanbs.nl/blog/?id=072g464w</link>
			<guid isPermaLink="false">http://www.sanbs.nl/blog/rss/072g464w</guid>
		</item>
		<item>
			<title><![CDATA[XML Parser]]></title>
			<author><![CDATA[]]></author>
			<category domain="http://www.sanbs.nl/blog/index.php?category=MS_Dynamics_NAV"><![CDATA[MS Dynamics NAV]]></category>
			<category>imblog</category>
			<description><![CDATA[<div id="imBlogPost_k6sui72p"><div><div><span class="fs12 ff1"><span class="cf1">I</span>t is my "old" dream: to create an universal algorithm of transformation of the XML document tree to NAV database records.</span></div><div><span class="fs12 ff1">You specify the path to the XML file, and the output is a collection of records specifying the levels, siblings, names and values of XML nodes.</span></div></div><div><div><span class="fs12 ff1">I do not know exactly where it can be used, but the advantages, in my opinion, are evident.&nbsp;Instead of programming of search for nodes and their values, you will be use ordinary records.</span></div></div><div><div><span class="fs12 ff1">There is no need for any preliminary programming, use of XML ports or MSXML2.</span></div><div><span class="fs12 ff1">Converted XML node types are TEXT, ELEMENT and ATTRIBUTE, though used algorithm allows to convert also other types, for example CDATA.</span></div><div><span class="fs12 ff1">It's tested in the Classic Client (Nav2009) and RTC (Nav2016).</span></div><div><br></div><div style="text-align: center;"><span class="cf1">RTC</span></div><div><a href="http://www.sanbs.nl/files/NavXmlParser.jpg" target="_blank" class="imCssLink inline-block"><img src="http://www.sanbs.nl/images/NavXmlParser03.jpg"  title="" alt="" style="width:760px; height: 506px;" /></a><br></div><div><div style="text-align: center;"><b><br></b></div><div style="text-align: center;"><span class="cf1">Classic Client</span></div></div><div><a href="http://www.sanbs.nl/files/NavXmlParser02.jpg" target="_blank" class="imCssLink inline-block"><img src="http://www.sanbs.nl/images/NavXmlParser04.jpg"  title="" alt="" style="width:760px; height: 534px;" /></a><br></div></div><div><br></div><div><a href="http://www.sanbs.nl/files/NavXmlParser2016.zip" target="_blank" class="imCssLink">Download</a></div><div><div><a href="http://www.sanbs.nl/blog/index.php" class="imCssLink" onclick="return x5engine.utils.location('http://www.sanbs.nl/blog/index.php', null, false)">Back to Blog</a></div></div></div>]]></description>
			<pubDate>Thu, 26 Jan 2017 16:49:00 GMT</pubDate>
			<link>http://www.sanbs.nl/blog/?id=k6sui72p</link>
			<guid isPermaLink="false">http://www.sanbs.nl/blog/rss/k6sui72p</guid>
		</item>
	</channel>
</rss>