<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>powerphil</title>
	<atom:link href="http://powerphil.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://powerphil.wordpress.com</link>
	<description>Specific technical information for geeks</description>
	<lastBuildDate>Sat, 25 Feb 2012 04:10:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='powerphil.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>powerphil</title>
		<link>http://powerphil.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://powerphil.wordpress.com/osd.xml" title="powerphil" />
	<atom:link rel='hub' href='http://powerphil.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How to invoke a Syspro VBScript function from a .Net User Control</title>
		<link>http://powerphil.wordpress.com/2012/02/17/how-to-invoke-a-syspro-vbscript-function-from-a-net-user-control/</link>
		<comments>http://powerphil.wordpress.com/2012/02/17/how-to-invoke-a-syspro-vbscript-function-from-a-net-user-control/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 00:15:24 +0000</pubDate>
		<dc:creator>philu</dc:creator>
				<category><![CDATA[Syspro]]></category>

		<guid isPermaLink="false">http://powerphil.wordpress.com/?p=177</guid>
		<description><![CDATA[If you are invoking a Syspro VBScript function from a .Net User Control on a Custom pane, there are a number of traps to avoid that aren&#8217;t explicitly stated in the otherwise very helpful document, Using .Net User Controls in &#8230; <a href="http://powerphil.wordpress.com/2012/02/17/how-to-invoke-a-syspro-vbscript-function-from-a-net-user-control/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=powerphil.wordpress.com&amp;blog=18103389&amp;post=177&amp;subd=powerphil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you are invoking a Syspro VBScript function from a .Net User Control on a Custom pane, there are a number of traps to avoid that aren&#8217;t explicitly stated in the otherwise very helpful document, <a href="http://support.syspro.com/distributor/CMS/content/published/support_zone/specialize_developers_sdk/files/ui_reference/6.1%20-%20Using%20.NET%20User%20Controls%20in%20SYSPRO.pdf">Using .Net User Controls in 6.1</a> on the <a href="http://support.syspro.com">Syspro Support Zone</a>.</p>
<h2>Your delegate must be in the same namespace</h2>
<p>Your delegate that calls <strong>doRefresh</strong> must be in the<strong> same namespace</strong> as the control linked to the customized pane. (This isn&#8217;t explicitly stated in the version of the documentation published 08 June 2010, although the converse situation is mentioned in the section, &#8220;Invoking methods on the User Control form a Syspro form&#8221;.)</p>
<h2>Parameter values must be able to become valid VBScript</h2>
<p>The value being passed as a parameter to doRefresh must compile as standard VBScript, i.e.:</p>
<ul>
<li>if it contains any double quotes, they must be escaped as two double quotes. Even better, on the .Net side, just encode any double quotes as a non-printable character such as CTRL+C, then on the VBScript side, do the reverse.</li>
<li>if it contains any new lines, they must be removed.</li>
</ul>
<p>The parameter which becomes the <strong>RefreshValue</strong> in VBScript CAN be of unlimited length (contrary to what I first wrote here).</p>
<p>Here is some example code for the DotNet side to safely encode double quotes and new lines:</p>
<pre>private static string MakeSafeForVBScript(string sourceString)
{
 // The VB Script will essentially do a statement like this:
 // Dim RefreshValue : Refreshvalue = "&lt;?xml version="1.0" encoding="Windows-1252"?&gt;
 // However, it will give a syntax error on any embedded double quotes or new lines,
 // so convert new lines into CTRL+B,
 // and convert double-quotes into CTRL+D.

 string newLineReplacement = ((char)0x2).ToString(); // CTRL+B
 const char doubleQuoteReplacement = (char)0x4; // CTRL+D
 const char doubleQuote = '"';

sourceString = sourceString.Replace(doubleQuote, doubleQuoteReplacement).Replace("\r\n", newLineReplacement);

 return dotNetVariable;

}</pre>
<p>Here is an example VBScript code snippet; it puts the double-quotes and new lines back:</p>
<pre>Function Unencode (encodedString)
 Dim control_B
 Dim control_D
 Dim doubleQuote
 Dim newLine
 Dim result

 control_B = Chr(2)
 control_D = Chr(4)
 doubleQuote = Chr(34)
 newLine = chr(13) &amp; chr(10) ' \r\n, i.e. CTRL+M CTRL+J.
 encodedString = Replace(encodedString, control_D, doubleQuote)

 Unencode = Replace(encodedString, control_B, newLine)

End Function</pre>
<h2>GetApplicationInfo and GetSysproInfo don&#8217;t always return pure XML</h2>
<p><span style="font-size:medium;"><span style="line-height:24px;">Note that returned XML from <strong>GetApplicationInfo</strong> or <strong>GetSysproInfo</strong> does NOT always contain valid XML, because it sometimes contains embedded double quotes, so you have to  escape those quotes before passing the returned value into an XML parser.</span></span></p>
<p>E.g. the returned XML may contain a fragment like this:</p>
<pre>&lt;DiagnosticAppPath Value="""C:\SYSPRO61\BASE\IMPACT.EXE"""/&gt;</pre>
<p>This needs to become (note the backslashed quotes):</p>
<pre>&lt;DiagnosticAppPath Value="\"C:\SYSPRO61\BASE\IMPACT.EXE\""/&gt;</pre>
<p>You can use the following C# code to sort out the embedded quotes:</p>
<pre>String tripleQuotes = @"""""""";
String singleQuoteBackslashedQuote = @"""";
var fixedQuotes = systemVariables.Replace(tripleQuotes, singleQuoteBackslashedQuote);</pre>
<h2>Remove XML NameSpace declarations</h2>
<p>Also note that Syspro&#8217;s Business Objects called from Syspro&#8217;s VBScript doesn&#8217;t like XML that has namespace declarations; see <a href="http://powerphil.wordpress.com/2012/02/14/how-to-use-xsd2code-for-syspro-business-objects/">How to use XSD2Code for Syspro Business Objects</a> for more details. (Calls to Syspro&#8217;s Business Objects via Web Services or DCOM don&#8217;t seem to have this problem.)</p>
<h2>Conclusion</h2>
<p>After sorting these things out, you should be ready to run.</p>
<br />Filed under: <a href='http://powerphil.wordpress.com/category/syspro/'>Syspro</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/powerphil.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/powerphil.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/powerphil.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/powerphil.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/powerphil.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/powerphil.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/powerphil.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/powerphil.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/powerphil.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/powerphil.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/powerphil.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/powerphil.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/powerphil.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/powerphil.wordpress.com/177/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=powerphil.wordpress.com&amp;blog=18103389&amp;post=177&amp;subd=powerphil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://powerphil.wordpress.com/2012/02/17/how-to-invoke-a-syspro-vbscript-function-from-a-net-user-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36efe6d1304e007998d874a8e990feb9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">philubert</media:title>
		</media:content>
	</item>
		<item>
		<title>How to deploy a .Net User Control, that uses multiple assemblies, in a Syspro custom pane</title>
		<link>http://powerphil.wordpress.com/2012/02/16/how-to-deploy-a-net-user-control-that-uses-multiple-assemblies-in-a-syspro-custom-pane/</link>
		<comments>http://powerphil.wordpress.com/2012/02/16/how-to-deploy-a-net-user-control-that-uses-multiple-assemblies-in-a-syspro-custom-pane/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 04:25:57 +0000</pubDate>
		<dc:creator>philu</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Syspro]]></category>

		<guid isPermaLink="false">http://powerphil.wordpress.com/?p=169</guid>
		<description><![CDATA[If you create a simple .Net User Control and deploy it in a custom pane in Syspro, it will work, but if your user control accesses any non-system assemblies, your user control will appear as just a blank grey pane &#8230; <a href="http://powerphil.wordpress.com/2012/02/16/how-to-deploy-a-net-user-control-that-uses-multiple-assemblies-in-a-syspro-custom-pane/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=powerphil.wordpress.com&amp;blog=18103389&amp;post=169&amp;subd=powerphil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:medium;"><span style="line-height:24px;">If you create a simple .Net User Control and deploy it in a custom pane in Syspro, it will work, but if your user control accesses any non-system assemblies, your user control will appear as just a blank grey pane like this:</span></span></p>
<p><a href="http://powerphil.files.wordpress.com/2012/02/blankusercontrol.png"><img class="alignnone size-full wp-image-170" title="Broken User Control in a custom pane" src="http://powerphil.files.wordpress.com/2012/02/blankusercontrol.png?w=640" alt=""   /></a></p>
<p><span style="font-size:medium;"><span style="line-height:24px;">There are a number of ways you can resolve this:<br />
</span></span></p>
<ul>
<li>Install your additional assemblies in the <strong>GAC</strong>.</li>
<li>Copy your additional assemblies to your <strong>SYSPRO/BASE</strong> folder (but leave your initial assembly in the <strong>SYSPRO/BASE/ManagedAssemblies</strong> folder); see this <a href="http://support.syspro.com/forums/viewtopic.php?f=1&amp;t=4603&amp;p=20510#p20514">post</a> in the Syspro Forum for more details.</li>
<li>Combine your assemblies into one assembly using <strong>ILMERGE</strong>, which you can download from Microsoft <a title="Download ILMERGE from Microsoft" href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=17630">here</a>.<br />
You can edit your .Net project&#8217;s properties and create a PostBuild event such as this:</li>
</ul>
<pre>"C:\Program Files (x86)\Microsoft\ILMerge\ILMerge.exe" /v4 $(TargetFileName) MySecondaryDLL.dll /out:$(ProjectDir)$(OutDir)..\$(TargetFileName)</pre>
<p><span style="font-size:medium;"><span style="line-height:24px;"><br />
</span></span></p>
<br />Filed under: <a href='http://powerphil.wordpress.com/category/net/'>.Net</a>, <a href='http://powerphil.wordpress.com/category/syspro/'>Syspro</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/powerphil.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/powerphil.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/powerphil.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/powerphil.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/powerphil.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/powerphil.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/powerphil.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/powerphil.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/powerphil.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/powerphil.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/powerphil.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/powerphil.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/powerphil.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/powerphil.wordpress.com/169/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=powerphil.wordpress.com&amp;blog=18103389&amp;post=169&amp;subd=powerphil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://powerphil.wordpress.com/2012/02/16/how-to-deploy-a-net-user-control-that-uses-multiple-assemblies-in-a-syspro-custom-pane/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36efe6d1304e007998d874a8e990feb9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">philubert</media:title>
		</media:content>

		<media:content url="http://powerphil.files.wordpress.com/2012/02/blankusercontrol.png" medium="image">
			<media:title type="html">Broken User Control in a custom pane</media:title>
		</media:content>
	</item>
		<item>
		<title>How to install an MSM file</title>
		<link>http://powerphil.wordpress.com/2012/02/14/how-to-install-an-msm-file/</link>
		<comments>http://powerphil.wordpress.com/2012/02/14/how-to-install-an-msm-file/#comments</comments>
		<pubDate>Tue, 14 Feb 2012 02:07:50 +0000</pubDate>
		<dc:creator>philu</dc:creator>
				<category><![CDATA[SOAP]]></category>
		<category><![CDATA[Syspro]]></category>

		<guid isPermaLink="false">http://powerphil.wordpress.com/?p=157</guid>
		<description><![CDATA[If you want to distribute an MSM file, here is how to do it. E.g. if you want to download and install Microsoft&#8217;s SOAP Toolkit 3 redistributable, which is in MSM format, you can use this procedure. However, for more &#8230; <a href="http://powerphil.wordpress.com/2012/02/14/how-to-install-an-msm-file/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=powerphil.wordpress.com&amp;blog=18103389&amp;post=157&amp;subd=powerphil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you want to distribute an MSM file, here is how to do it.</p>
<p>E.g. if you want to download and install <a href="http://www.microsoft.com/download/en/details.aspx?DisplayLang=en&amp;id=19135">Microsoft&#8217;s SOAP Toolkit 3 redistributable</a>, which is in MSM format, you can use this procedure. However, for more notes about SOAP, see my related post <a href="http://powerphil.wordpress.com/2012/02/14/how-to-access-soap-services/">here</a>.</p>
<p>These instructions are for <strong>Visual Studio 2008</strong>.</p>
<p>Go to <strong>File / New / Project</strong> and create a new <strong>Setup Project; </strong>see the first screen shot below.</p>
<p>Edit the project&#8217;s <strong>Properties</strong> and set your Company name and product name.</p>
<p><a href="http://powerphil.files.wordpress.com/2012/02/msm11.png"><img class="alignnone size-full wp-image-160" title="Create a new Setup project" src="http://powerphil.files.wordpress.com/2012/02/msm11.png?w=640&#038;h=455" alt="" width="640" height="455" /></a></p>
<p><a href="http://powerphil.files.wordpress.com/2012/02/msm2.png"><img class="size-full wp-image-159 alignnone" title="Create a Merge Module Project" src="http://powerphil.files.wordpress.com/2012/02/msm2.png?w=640&#038;h=218" alt="" width="640" height="218" /></a></p>
<p>Add a new Project, a <strong>Merge Module</strong> project.</p>
<p>Select the MSM files you want installed.</p>
<p>Build and run.</p>
<p>Check that your MSM files appear where they should, e.g. for Microsoft SOAP libaries, check that they appear in <strong>C:\Program Files\Common Files\MSSoap\Binaries</strong>.</p>
<br />Filed under: <a href='http://powerphil.wordpress.com/category/soap/'>SOAP</a>, <a href='http://powerphil.wordpress.com/category/syspro/'>Syspro</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/powerphil.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/powerphil.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/powerphil.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/powerphil.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/powerphil.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/powerphil.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/powerphil.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/powerphil.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/powerphil.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/powerphil.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/powerphil.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/powerphil.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/powerphil.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/powerphil.wordpress.com/157/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=powerphil.wordpress.com&amp;blog=18103389&amp;post=157&amp;subd=powerphil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://powerphil.wordpress.com/2012/02/14/how-to-install-an-msm-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36efe6d1304e007998d874a8e990feb9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">philubert</media:title>
		</media:content>

		<media:content url="http://powerphil.files.wordpress.com/2012/02/msm11.png" medium="image">
			<media:title type="html">Create a new Setup project</media:title>
		</media:content>

		<media:content url="http://powerphil.files.wordpress.com/2012/02/msm2.png" medium="image">
			<media:title type="html">Create a Merge Module Project</media:title>
		</media:content>
	</item>
		<item>
		<title>How to access SOAP services</title>
		<link>http://powerphil.wordpress.com/2012/02/14/how-to-access-soap-services/</link>
		<comments>http://powerphil.wordpress.com/2012/02/14/how-to-access-soap-services/#comments</comments>
		<pubDate>Tue, 14 Feb 2012 02:06:50 +0000</pubDate>
		<dc:creator>philu</dc:creator>
				<category><![CDATA[SOAP]]></category>
		<category><![CDATA[Syspro]]></category>

		<guid isPermaLink="false">http://powerphil.wordpress.com/?p=163</guid>
		<description><![CDATA[Microsoft&#8217;s SOAP libraries have been deprecated, but if you have applications that still want to use SOAP to talk, here is some information you might find useful. One example of where you might use this information is where you are &#8230; <a href="http://powerphil.wordpress.com/2012/02/14/how-to-access-soap-services/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=powerphil.wordpress.com&amp;blog=18103389&amp;post=163&amp;subd=powerphil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=13456">Microsoft&#8217;s SOAP libraries</a> have been deprecated, but if you have applications that still want to use SOAP to talk, here is some information you might find useful.</p>
<p>One example of where you might use this information is where you are writing code in VBA in Excel to talk to a SOAP client such as a Syspro web service that is using SOAP.</p>
<h1>SOAP doesn&#8217;t work on Windows 2008 R2 Server</h1>
<p>Firstly, I found that the Microsoft SOAP libraries still work on Windows XP, Windows 7 (both 32 and 64-bit), but NOT on Windows Server 2008 R2.</p>
<p>They don&#8217;t seem to work on Windows Server 2008 R2 because the system can&#8217;t find the SOAP DLL&#8217;s in the registry, because the system seems to use new, different, or wrong registry keys to locate the SOAP DLL&#8217;s:</p>
<p>On Windows Server 2008 R2, the system looked, unsuccessfully, for this registry key:</p>
<pre>HKCR\Wow6432Node\CLSID\{the-GUID}\<strong>InprocHandler</strong></pre>
<p>but on Windows 7 64-bit, where it was successful, it looks for this registry key:</p>
<pre>HKCR\Wow6432Node\CLSID\{the-GUID}\<strong>InprocServer32</strong>.</pre>
<p>(This was discovered using Process Monitor to watch registry activity.</p>
<h1>How to use SOAP on Windows Server 2008 R2</h1>
<p>One solution to accessing SOAP is to create a .Net SOAP client (create a project, add a web service to your SOAP endpoint; add a subroutine to call that SOAP endpoint). Then expose that as a COM object so that you can consume your newly created DLL in VBA or where-ever you want.</p>
<h3>NOTE for developers</h3>
<p><strong>Visual Studio 2010 must be run As Administrator</strong> so that you can test the DLL when you run it from Visual Studio as the SoapClient is exposed as a COM Object and needs to be registered when it is built so that it can be found when it is run.</p>
<p>(You can also manually register it using <strong>regasm</strong>; again you must run as Administrator.)</p>
<p>On the client’s machine, it doesn’t matter where you put the DLL on the client’s machine but the DLL must be registered using <strong>regasm</strong>.</p>
<br />Filed under: <a href='http://powerphil.wordpress.com/category/soap/'>SOAP</a>, <a href='http://powerphil.wordpress.com/category/syspro/'>Syspro</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/powerphil.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/powerphil.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/powerphil.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/powerphil.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/powerphil.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/powerphil.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/powerphil.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/powerphil.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/powerphil.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/powerphil.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/powerphil.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/powerphil.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/powerphil.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/powerphil.wordpress.com/163/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=powerphil.wordpress.com&amp;blog=18103389&amp;post=163&amp;subd=powerphil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://powerphil.wordpress.com/2012/02/14/how-to-access-soap-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36efe6d1304e007998d874a8e990feb9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">philubert</media:title>
		</media:content>
	</item>
		<item>
		<title>How to use XSD2Code for Syspro Business Objects</title>
		<link>http://powerphil.wordpress.com/2012/02/14/how-to-use-xsd2code-for-syspro-business-objects/</link>
		<comments>http://powerphil.wordpress.com/2012/02/14/how-to-use-xsd2code-for-syspro-business-objects/#comments</comments>
		<pubDate>Tue, 14 Feb 2012 00:56:03 +0000</pubDate>
		<dc:creator>philu</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Syspro]]></category>

		<guid isPermaLink="false">http://powerphil.wordpress.com/?p=147</guid>
		<description><![CDATA[When you call one of Syspro&#8217;s API&#8217;s, called a Business Object, via a web service or DCOM, you need to pass it some XML. That XML is defined in a couple of XSD files. Generating that XML can be done &#8230; <a href="http://powerphil.wordpress.com/2012/02/14/how-to-use-xsd2code-for-syspro-business-objects/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=powerphil.wordpress.com&amp;blog=18103389&amp;post=147&amp;subd=powerphil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When you call one of Syspro&#8217;s API&#8217;s, called a Business Object, via a web service or DCOM, you need to pass it some XML. That XML is defined in a couple of XSD files. Generating that XML can be done easily in C# or VB .Net using a tool such as <strong>XSD2Code</strong> which is available from <a title="http://xsd2code.codeplex.com/" href="http://xsd2code.codeplex.com/">http://xsd2code.codeplex.com/</a>.</p>
<p>The advantage of using a C# object rather than coding your XML as one big string is you get the advantages including:</p>
<ul>
<li>Intellisense in Visual Studio &#8211; it shows you descriptions about each XML element from the XSD file&#8217;s annotations</li>
<li>Type safety</li>
<li>Easier to code: you don&#8217;t have to convert your types to strings, nor worry about maximum lengths etc. &#8211; it&#8217;s all done for you.</li>
</ul>
<p>( I also tried using Microsoft&#8217;s <strong>XSD.exe</strong> tool, but found XSD2Code to be far superior &#8211; it is more configurable and so can be made to fit Syspro.)</p>
<p>These instructions are written for XSD2Code version 3.4 with Visual Studio 2010 and Syspro 6.1.</p>
<ol>
<li>Download and install XSD2Code. It integrates naturally with Visual Studio.</li>
<li>From the &lt;Syspro installation directory&gt;/BASE/SCHEMAS directory,  add the XSD files for your desired business object into your project. E.g. to call the SORTOI business object, add C:\Syspro61\Base\Schemas\SORTOI.XSD and SORTOIDOC.XSD into your Visual Studio Project. Actually, I prefer to copy the XSD files into the appropriate sub-directory of my Visual Studio project and then add them from there, so that I can put the XSD files under source code control. (I use <a href="http://mercurial.selenic.com/">Mercurial</a>.)</li>
<li>In the Visual Studio Solution Explorer, right-click on the new XSD file and select <strong>Run XSD2Code Generation</strong>.</li>
<li>Set the following parameters; the rest can stay as their default values. <span style="color:#ff0000;">This is the key bit:</span>
<ol>
<li><strong>PropertyParams/GeneratePropertyNameSpecified </strong>must be <strong>None</strong>, otherwise you won&#8217;t get parameters generated unless you set the corresponding <strong>fieldSpecified</strong> to true.</li>
<li>Set the<strong> Code/NameSpace</strong> to &lt;your-namespace&gt; + the XSD name, so that there aren’t clashes with other XSD&#8217;s that use the same internal variables. E.g. I set mine to Syspro.Base.Schema.SORTOI and Syspro.Base.Schema.SORTOIDOC.</li>
<li>Set the <strong>Code/TargetFramework </strong>to <strong>Silverlight</strong> or <strong>Net40 </strong>as appropriate.</li>
<li>Leave the <strong>Serialization/DefaultEncoder</strong> as <strong>UTF-8</strong>.</li>
<li>Set <strong>Serialization / Enabled</strong> to <strong>True</strong>. This saves you having to write your own serialization routine.</li>
<li>Set <strong>Serialization / Generate XML Attributes</strong> to <strong>True</strong>.</li>
</ol>
</li>
<li>Press the <strong>Generate</strong> button.</li>
</ol>
<p><a href="http://powerphil.files.wordpress.com/2012/02/xsd2codeparameters.png"><img class="alignnone size-full wp-image-201" title="Xsd2CodeParameters" src="http://powerphil.files.wordpress.com/2012/02/xsd2codeparameters.png?w=640" alt=""   /></a></p>
<h2>Group your files</h2>
<p>In the Visual Studio Solution Explorer, to have the newly generated .cs file (e.g. SORTOI.designer.cs) grouped under the XSD file (e.g. SORTOI.XSD), i.e. as a branch UNDER the XSD file instead of as a sibling file, follow these instructions:</p>
<ol>
<li>Close Visual Studio.</li>
<li>Edit the <strong>.csproj</strong> file for that project with a text editor (such as vim or Notepad).</li>
<li>Add <strong>DependentUpon</strong> tags (and open and close the Compile tag).<br />
E.g. change this line:<br />
<strong>&lt;Compile Include=&#8221;Schema\SORTOI.designer.cs&#8221; /&gt;</strong>to this:<strong>&lt;Compile Include=&#8221;Schema\SORTOI.designer.cs&#8221;&gt;<br />
&lt;DependentUpon&gt;SORTOI.XSD&lt;/DependentUpon&gt;<br />
&lt;/Compile&gt;</strong></li>
</ol>
<h2>Generate your XML</h2>
<p>Now you can create code your XML settings using plain old C# objects as simply as this example:</p>
<pre>var SORTOI_Parameters = new SORTOI.PostOrders()
{
 Parameters = new SORTOI.Parameters()
 {
     ValidateOnly = PORTOI.ValidateOnly.Y,
     StatusInProcess = PORTOI.StatusInProcess.N
 }
};</pre>
<h2>Serialize your objects</h2>
<p>To convert your object to XML, you can use code such as this:</p>
<pre>string XmlParameters = SORTOI_Parameters.Serialize();</pre>
<h2>Syspro&#8217;s VBScript doesn&#8217;t like namespace declarations</h2>
<p>Note that if you use a different method to serialize your code, you may end up with XML Namespace declarations in your XML like this:</p>
<pre>&lt;Orders xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"""&gt;</pre>
<p>This shouldn&#8217;t be a problem BUT if you are passing this XML to Syspro&#8217;s VBScript and then calling a Business Object from VBScript, it will not like the xmlns declaration, so you may want to add this code on the VBSCript side (see related article, <a href="http://powerphil.wordpress.com/2012/02/17/how-to-invoke-a-syspro-vbscript-function-from-a-net-user-control/">How to invoke a Syspro VBScript function from a .Net User Control</a>):</p>
<pre>Dim nameSpaceDeclaration
nameSpaceDeclaration = "xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"""
XmlParameters = Replace(XmlParameters, nameSpaceDeclaration,"")</pre>
<p>This was the case for Syspro 6.1 Port 69.</p>
<h2>Adjust the encoding for Silverlight</h2>
<p>If you are using this in Silverlight, you may need to adjust the XML encoding; this is an ugly way of doing it:</p>
<pre>XmlParameters = XmlParameters.Replace("encoding=\"utf-8\"", "encoding=\"Windows-1252\"");</pre>
<p>A better way of doing this may be to set XSD2CODE&#8217;s parameter, <strong>Serialization/Enable Encoding</strong> to <strong>True</strong>, and then pass the Serialize routine a parameter to select which encoding to use; I have yet to try this.</p>
<p>Then you can pass those XML strings to the web service for the business object, e.g:</p>
<pre>setupProxySORTOI.AddAsync(userId, "SORTOI", XMLParameters, XMLIn);</pre>
<br />Filed under: <a href='http://powerphil.wordpress.com/category/net/'>.Net</a>, <a href='http://powerphil.wordpress.com/category/syspro/'>Syspro</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/powerphil.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/powerphil.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/powerphil.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/powerphil.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/powerphil.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/powerphil.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/powerphil.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/powerphil.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/powerphil.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/powerphil.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/powerphil.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/powerphil.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/powerphil.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/powerphil.wordpress.com/147/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=powerphil.wordpress.com&amp;blog=18103389&amp;post=147&amp;subd=powerphil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://powerphil.wordpress.com/2012/02/14/how-to-use-xsd2code-for-syspro-business-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36efe6d1304e007998d874a8e990feb9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">philubert</media:title>
		</media:content>

		<media:content url="http://powerphil.files.wordpress.com/2012/02/xsd2codeparameters.png" medium="image">
			<media:title type="html">Xsd2CodeParameters</media:title>
		</media:content>
	</item>
		<item>
		<title>Guide to using LaunchPad for OpenERP development</title>
		<link>http://powerphil.wordpress.com/2012/02/08/guide-to-using-launchpad-for-openerp-development/</link>
		<comments>http://powerphil.wordpress.com/2012/02/08/guide-to-using-launchpad-for-openerp-development/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 10:10:51 +0000</pubDate>
		<dc:creator>philu</dc:creator>
				<category><![CDATA[OpenERP]]></category>

		<guid isPermaLink="false">http://powerphil.wordpress.com/?p=60</guid>
		<description><![CDATA[Create an account for yourself on LaunchPad. Upload your ssh signature as per https://help.launchpad.net/YourAccount/CreatingAnSSHKeyPair Log in to Launchpad: On Centos: bzr launchpad-login &#60;your-launchpad-login&#62; On Ubuntu: bzr whoami &#60;your-launchpad-login&#62; Get the latest trunk source code: For the server: bzr branch lp:~openerp/openobject-server/trunk For the &#8230; <a href="http://powerphil.wordpress.com/2012/02/08/guide-to-using-launchpad-for-openerp-development/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=powerphil.wordpress.com&amp;blog=18103389&amp;post=60&amp;subd=powerphil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<ol type="1">
<li>Create an account for yourself on <a href="http://www.launchpad.net/">LaunchPad</a>.</li>
<li>Upload your ssh signature as per <a href="https://help.launchpad.net/YourAccount/CreatingAnSSHKeyPair">https://help.launchpad.net/YourAccount/CreatingAnSSHKeyPair</a></li>
<li>Log in to Launchpad: On Centos:
<pre>bzr launchpad-login &lt;your-launchpad-login&gt;</pre>
<p>On Ubuntu:</p>
<pre>bzr whoami &lt;your-launchpad-login&gt;</pre>
</li>
<li>Get the latest trunk source code: For the server:
<pre>bzr branch lp:~openerp/openobject-server/trunk</pre>
<p>For the modules:</p>
<pre>bzr branch lp:openobject-addons</pre>
</li>
<li>To update (cf. svn update, i.e. freshen) your branch later:
<pre>bzr pull</pre>
</li>
</ol>
<h2 id="head-a551e85a83e95e03c519a1d10281228350363695">How to contribute your changes to the OpenERP Community</h2>
<ol type="1">
<li>Join the OpenERP Community here: <a href="https://launchpad.net/~openerp-community">https://launchpad.net/~openerp-community</a></li>
<li>You should probably create a bug or mod with a Blueprint on Launchpad in the appropriate project.</li>
<li>Make your changes.
<pre>vi addons/account/account.py</pre>
</li>
<li>Commit to your local branch.
<pre>cd addons
bzr ci -m "Testing Modifications"</pre>
</li>
<li>Push your changes up to Launchpad.
<pre>cd addons
bzr push lp:~openerp-community/openobject-addons/YOURLOGIN_YOURBRANCHNAME</pre>
<p>Don’t forget to set the status of your branch (new, experimental, development, mature, &#8230;) so that contributors know what they can use or not.</li>
<li>Bind your local branch to the one on Launchpad so that future commits will be applied directly to the one on Launchpad.
<pre>bzr bind lp:~openerp-community/openobject-addons/YOURLOGIN_YOURBRANCHNAME</pre>
</li>
<li>Further editing would then follow these steps:
<pre>bzr pull    # Get modifications on your branch from others
EDIT STUFF
bzr ci    # commit your changes on your public branch
OR
bzr ci --fixes=lp:453123   # Where 453123 is a bug ID</pre>
</li>
<li>Update your branch from its parent branch:
<pre>bzr merge</pre>
</li>
<li>Once your branch is mature, mark it as mature in the web interface of launchpad and request for merging in the official release. Your branch will be reviewed by a commiter and then the quality team to be merged in the official release.</li>
</ol>
<h2 id="head-0dce936cc9b285af8f6691e02ad9fcbe6151fa95">More Information</h2>
<ul>
<li>You can find the main OpenERP projects from this page: <a href="https://launchpad.net/openobject">https://launchpad.net/openobject</a></li>
<li>You can find more about OpenERP&#8217;s development process here: <a href="http://doc.openerp.com/v5.0/developer/1_1_Introduction/2_launchpad.html">http://doc.openerp.com/v5.0/developer/1_1_Introduction/2_launchpad.html</a></li>
</ul>
</div>
<p id="pageinfo" lang="en" dir="ltr">
<br />Filed under: <a href='http://powerphil.wordpress.com/category/openerp/'>OpenERP</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/powerphil.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/powerphil.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/powerphil.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/powerphil.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/powerphil.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/powerphil.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/powerphil.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/powerphil.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/powerphil.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/powerphil.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/powerphil.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/powerphil.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/powerphil.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/powerphil.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=powerphil.wordpress.com&amp;blog=18103389&amp;post=60&amp;subd=powerphil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://powerphil.wordpress.com/2012/02/08/guide-to-using-launchpad-for-openerp-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36efe6d1304e007998d874a8e990feb9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">philubert</media:title>
		</media:content>
	</item>
		<item>
		<title>How to install and use Eclipse for Python development and debugging with OpenERP</title>
		<link>http://powerphil.wordpress.com/2012/02/08/how-to-install-and-use-eclipse-for-python-development-and-debugging-with-openerp/</link>
		<comments>http://powerphil.wordpress.com/2012/02/08/how-to-install-and-use-eclipse-for-python-development-and-debugging-with-openerp/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 10:03:19 +0000</pubDate>
		<dc:creator>philu</dc:creator>
				<category><![CDATA[OpenERP]]></category>

		<guid isPermaLink="false">http://powerphil.wordpress.com/?p=102</guid>
		<description><![CDATA[How to install Eclipse on Windows Download and install the Java SE JDK Download and install Eclipse Classic 3.5.1 or later from http://eclipse.org In Eclipse, install PyDev by going to Help / Install new software / Add. Name: Pydev Location: pydev.org/updates. Then tick PyDev, Next, Install PyDev for &#8230; <a href="http://powerphil.wordpress.com/2012/02/08/how-to-install-and-use-eclipse-for-python-development-and-debugging-with-openerp/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=powerphil.wordpress.com&amp;blog=18103389&amp;post=102&amp;subd=powerphil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<h1><strong>How to install Eclipse on Windows</strong></h1>
</div>
<ul>
<li>Download and install the <strong>Java SE JDK</strong></li>
<li>Download and install <strong>Eclipse Classic</strong> 3.5.1 or later from <a href="http://eclipse.org/">http://eclipse.org</a></li>
<li>In Eclipse, install <strong>PyDev</strong> by going to <strong>Help / Install new software / Add</strong>.
<ul>
<li>Name: Pydev</li>
<li>Location: <strong>pydev.org/updates</strong>.</li>
<li>Then tick <strong>PyDev</strong>, Next, Install PyDev for Eclipse.</li>
<li>After it has installed, go to <strong>Windows / Preference / Pydev / Interpreter &#8211; Python</strong>; go to <strong>Python Interpreters</strong>.</li>
<li>Click the &#8220;Auto Config&#8221; button. It should list a lot of directories. Make sure you <strong>tick the directory for PyDev</strong>; it is probably the first or last directory in the list, and probably the only one not yet ticked.</li>
</ul>
</li>
</ul>
<div>
<h1><strong>How to install Eclipse on Centos 5.5</strong></h1>
<p>These instructions are for Centos 5.5.</p>
</div>
<ul>
<li>Install the GUI Desktop, e.g.:
<pre># yum groupinstall 'X Window System'
# yum groupinstall 'Gnome Desktop environment'</pre>
</li>
<li>Install Java:
<pre># yum install java</pre>
</li>
<li>Install Eclipse:
<pre># yum install eclipse-platform</pre>
</li>
<li>Run Eclipse in the GUI environment.
<pre># init 5</pre>
</li>
<li>Go to <strong>Help / Updates / Find and Install&#8230;</strong>; select <strong>Search for new features to install</strong>.</li>
<li>Click on <strong>New Remote Site</strong>.
<ul>
<li>Name: Pydev</li>
<li>Location: <strong>pydev.org/updates</strong>.</li>
</ul>
</li>
<li>Hit <strong>Finish</strong>.</li>
<li>Expand <strong>PyDev</strong>. Select <strong>PyDev</strong>; you do not need to select &#8216;PyDev Mylyn Integration&#8217;.</li>
<li>Hit <strong>Finish</strong>; it should download and install PyDev.</li>
<li>After it has installed, go to <strong>Windows / Preference / Pydev / Interpreter &#8211; Python</strong>; go to <strong>Python Interpreters</strong>.</li>
<li>Click the &#8220;Auto Config&#8221; button. It should list a lot of directories. Make sure you <strong>tick the directory for PyDev</strong>; it is probably the first or last directory in the list, and probably the only one not yet ticked.</li>
</ul>
<div>
<h1><strong>How to setup up Ecplise for debugging on Linux</strong></h1>
</div>
<p>If you are logged into a graphical desktop, you can debug OpenERP using the following procedure:</p>
<ul>
<li>Copy <strong>~openerp/.openerp_serverrc</strong> to your home directory.</li>
<li>Edit /&lt;your-home-directory&gt;/.openerp_serverrc; change the entries for root_path and addons_path as appropriate, e.g.:
<ul>
<li>root_path = /&lt;your-home-directory&gt;/eclipse.workspace/OpenERP/src</li>
<li>addons_path = /&lt;your-home-directory&gt;/eclipse.workspace/OpenERP/src/addons</li>
<li>Create a new project in Eclipse.</li>
<li>Copy all the OpenERP source into the src directory of the project, including all the sub-directories.</li>
<li>It is easier if you start Eclipse in the directory where your project lives. There may be a better way to do this, but you could:
<ul>
<li>Stop Eclipse</li>
<li>Create a shell script, called something such as <strong>start_eclipse</strong>, in your PATH with contents like this:
<pre>#!/bin/sh
cd $HOME/work/eclipse.workspace/OpenERP/src
exec eclipse</pre>
</li>
<li>Then run start_eclipse from your command-line (or tell XMing to run it).</li>
<li>Add all the modules and code to the project:
<ul>
<li>Right-click on the <strong>src</strong> directory in the PyDev Package Explorer.</li>
<li>Go to <strong>New / File / Advanced</strong> and tick <strong>Link to file in the file system</strong>.</li>
<li>Click on <strong>Browse</strong> and add openerp-server.py.</li>
<li>Do the same for all the other *.py files in the source directory.</li>
<li>Click on the <strong>src</strong> directory in the PyDev Package Explorer.</li>
<li>Go to <strong>New / Folder / Advanced</strong> and tick <strong>Link to folder in the file system</strong>.</li>
<li>Click on <strong>Browse</strong> and add the <strong>addons</strong> directory.</li>
<li>Do the same for all the other directories.</li>
</ul>
</li>
<li>In the top right, select the <strong>Debug</strong> perspective.</li>
<li>Setup a Debug configuration in Eclipse:
<ul>
<li>In Eclipse, go to <strong>Run / Debug&#8230;</strong>.</li>
<li>Select <strong>Python Run</strong>.</li>
<li>Click the <strong>New</strong> button.</li>
<li>Give the configuration a Name.</li>
<li>Select your OpenERP project.</li>
<li>For <strong>Main Module</strong>, browse to openerp-server.py</li>
<li>On the <strong>Arguments</strong> tab, add start-up arguments that you may want; see /etc/init.d/openerp-server for arguments.<br />
E.g. you may use: <strong>&#8211;logfile=/var/log/openerp-server.log &#8211;log-level=debug</strong>.</li>
<li><strong>Apply</strong> the changes and <strong>Close</strong>.</li>
</ul>
</li>
<li>Set breakpoints in your source files as desired.</li>
<li>To start debugging, press the <strong>Debug</strong> toolbar icon or go to <strong>Run/Debug&#8230;</strong> and press the <strong>Debug</strong> button.</li>
</ul>
</li>
</ul>
</li>
</ul>
<div>
<h1><strong>How to run Eclipse on Linux in a window on Windows using X-Windows</strong></h1>
</div>
<p>To turn your Linux&#8217;s installation of Eclipse from your Windows PC, download and install the XMing server. This actually works quite well &#8211; the responsiveness is better than running a Gnome desktop inside a Virtual Machine. Run Xlaunch and tell it to run eclipse or your start_eclipse shell script in a multi-window environment.</p>
<div>
<p><strong>Install Code Snippets</strong></p>
</div>
<p>Download and install code snippets from: <a href="http://code.google.com/p/openerp-eclipse-template/">http://code.google.com/p/openerp-eclipse-template/</a></p>
<p>Code snippets are shortcuts for adding template code.</p>
<div>
<p><strong>Gotcha&#8217;s</strong></p>
</div>
<p>If you create a file in Eclipse, the Windows version, and it saves in DOS format (as opposed to Unix format end-of-lines), then OpenERP 5 will not detect or load the module. You can use Unix&#8217;s <strong>file</strong> command to tell you which files have these unwanted CRLF&#8217;s:</p>
<p>E.g. these files had problems (note the <strong>CRLF line terminators</strong> notes):</p>
<pre>/home/phil/openerp/addons/my_product_kit # file *.py *.xml
__init__.py:              ASCII Java program text, with CRLF line terminators
my_product_kit.py:        ASCII Java program text, with CRLF line terminators</pre>
<p>but these did not:</p>
<pre>/home/phil/openerp/addons/my_product_kit # file works/*
works/__init__.py:         ASCII English text
works/my_territory.py:     ASCII Java program text
works/my_territory.xml:    ASCII text
works/__terp__.py:         ASCII text</pre>
<div>
<div>
<h1>IDE&#8217;s that you can use for Python</h1>
</div>
<div>
<p>Here&#8217;s a list of IDE&#8217;s that you can use for Python:</p>
</div>
<ul>
<li>Eclipse on Windows</li>
<li>Eclipse on Linux</li>
<li>Aptana &#8211; based on Eclipse</li>
<li>Netbeans</li>
<li>Visual Studio 2010 with IronPython</li>
</ul>
<div>
<h1>Python Code Editors</h1>
<p>Here&#8217;s a list of editors for Python code:</p>
</div>
<ul>
<li>vim</li>
<li>gedit</li>
</ul>
<div>
<h2><strong>How to set up Samba</strong></h2>
</div>
<p>How to set up Samba on Centos 5 so you can share a drive from a Linux box to a Windows PC. This is so that you can run Eclipse on your PC to edit files on your Linux OpenERP server.</p>
<div>
<pre># service smb start
# smbpasswd -a philu
# setsebool -P samba_enable_home_dirs
# setsebool -P samba_export_all_rw on
# chcon -R -t samba_share_t /home/philu</pre>
</div>
<p>Then mapped a network drive from Windows, using:</p>
<ul>
<li>User: \username</li>
<li>Share: \\openerp.example.com\username</li>
</ul>
<div><span style="font-size:small;"><span style="line-height:24px;"><br />
</span></span></div>
<div>
<h1><strong>Debugging</strong></h1>
</div>
<p>Use your IDE&#8217;s tools, or the Python debugger: <a href="http://docs.python.org/library/pdb.html">http://docs.python.org/library/pdb.html</a></p>
<h1><strong>See Also</strong></h1>
</div>
<ul>
<li><a href="https://answers.launchpad.net/openobject-addons/+question/104901">https://answers.launchpad.net/openobject-addons/+question/104901</a></li>
<li><a href="http://www.openerp.com/forum/topic6334.html">http://www.openerp.com/forum/topic6334.html</a></li>
<li><a href="http://boiciuc.blogspot.com/2011/03/openerp-remote-debuging-on-server.html">http://boiciuc.blogspot.com/2011/03/openerp-remote-debuging-on-server.html</a></li>
</ul>
<br />Filed under: <a href='http://powerphil.wordpress.com/category/openerp/'>OpenERP</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/powerphil.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/powerphil.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/powerphil.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/powerphil.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/powerphil.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/powerphil.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/powerphil.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/powerphil.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/powerphil.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/powerphil.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/powerphil.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/powerphil.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/powerphil.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/powerphil.wordpress.com/102/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=powerphil.wordpress.com&amp;blog=18103389&amp;post=102&amp;subd=powerphil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://powerphil.wordpress.com/2012/02/08/how-to-install-and-use-eclipse-for-python-development-and-debugging-with-openerp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36efe6d1304e007998d874a8e990feb9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">philubert</media:title>
		</media:content>
	</item>
		<item>
		<title>Where are the configuration files for OpenERP?</title>
		<link>http://powerphil.wordpress.com/2011/04/21/where-are-the-configuration-files-for-openerp/</link>
		<comments>http://powerphil.wordpress.com/2011/04/21/where-are-the-configuration-files-for-openerp/#comments</comments>
		<pubDate>Thu, 21 Apr 2011 02:48:21 +0000</pubDate>
		<dc:creator>philu</dc:creator>
				<category><![CDATA[OpenERP]]></category>

		<guid isPermaLink="false">http://powerphil.wordpress.com/?p=116</guid>
		<description><![CDATA[OpenERP configuration files on Centos 5.5 /etc/openerp-web.cfg /etc/init.d/openerp-web /etc/init.d/openerp-server ~openerp/.openerp_serverrc &#8211; for the OpenERP Server ~/.openerp_serverrc &#8211; if running an OpenERP Server inside Eclipse from your own userid /usr/lib/python2.4/site-packages/openerp-server/tools/config.py &#8211; for default values if no config file OpenERP 6 configuration files on &#8230; <a href="http://powerphil.wordpress.com/2011/04/21/where-are-the-configuration-files-for-openerp/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=powerphil.wordpress.com&amp;blog=18103389&amp;post=116&amp;subd=powerphil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<p><strong>OpenERP configuration files on Centos 5.5</strong></p>
</div>
<ul>
<li>/etc/openerp-web.cfg</li>
<li>/etc/init.d/openerp-web</li>
<li>/etc/init.d/openerp-server</li>
<li>~openerp/.openerp_serverrc &#8211; for the OpenERP Server</li>
<li>~/.openerp_serverrc &#8211; if running an OpenERP Server inside Eclipse from your <strong>own</strong> userid</li>
<li>/usr/lib/python2.4/site-packages/openerp-server/tools/config.py &#8211; for default values if no config file</li>
</ul>
<div>
<p><strong>OpenERP 6 configuration files on Ubuntu 10.10</strong></p>
</div>
<ul>
<li>/etc/openerp-web.cfg</li>
<li>/etc/init.d/openerp-web</li>
<li>/etc/init.d/openerp-server</li>
<li>~openerp/.openerp_serverrc &#8211; for the OpenERP Server</li>
<li>~/.openerp_serverrc &#8211; if running an OpenERP Server inside Eclipse from your <strong>own</strong> userid</li>
<li>/usr/local/lib/python2.6/dist-packages/openerp-server/tools/config.py &#8211; for default values if no config file</li>
</ul>
<div>
<p><strong>OpenERP configuration files on Windows</strong></p>
</div>
<ul>
<li>C:\Program Files (x86)\OpenERP <a href="https://opsdocs.mbase.com.au/AllInOne">AllInOne</a>\Server\openerp-server.conf</li>
<li>C:\Users\&lt;Your login&gt;\.openerprc</li>
</ul>
<div>
<p><strong>Postgres configuration files on Centos 5.5</strong></p>
</div>
<ul>
<li>/var/lib/pgsql/data/postgresql.conf</li>
<li>/var/lib/pgsql/data/pg_hba.conf</li>
</ul>
<div>
<p><strong>Postgres configuration files on Ubuntu 10.10</strong></p>
</div>
<ul>
<li>/etc/postgresql/8.4/main/pg_hba.conf</li>
<li>/etc/postgresql/8.4/main/postgresql.conf</li>
</ul>
<div>
<p><strong>Postgres configuration files on Windows</strong></p>
</div>
<ul>
<li>C:\Program Files (x86)\OpenERP <a href="https://opsdocs.mbase.com.au/AllInOne">AllInOne</a>\PostgreSQL\data\postgresql.conf</li>
<li>C:\Program Files (x86)\OpenERP <a href="https://opsdocs.mbase.com.au/AllInOne">AllInOne</a>\PostgreSQL\data\pg_hba.conf</li>
<li>C:\Program Files (x86)\OpenERP <a href="https://opsdocs.mbase.com.au/AllInOne">AllInOne</a>\PostgreSQL\data\pg_indent.conf</li>
</ul>
<br />Filed under: <a href='http://powerphil.wordpress.com/category/openerp/'>OpenERP</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/powerphil.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/powerphil.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/powerphil.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/powerphil.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/powerphil.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/powerphil.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/powerphil.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/powerphil.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/powerphil.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/powerphil.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/powerphil.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/powerphil.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/powerphil.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/powerphil.wordpress.com/116/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=powerphil.wordpress.com&amp;blog=18103389&amp;post=116&amp;subd=powerphil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://powerphil.wordpress.com/2011/04/21/where-are-the-configuration-files-for-openerp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36efe6d1304e007998d874a8e990feb9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">philubert</media:title>
		</media:content>
	</item>
		<item>
		<title>Where are the Log Files for OpenERP?</title>
		<link>http://powerphil.wordpress.com/2011/02/11/where-are-the-log-files-for-openerp/</link>
		<comments>http://powerphil.wordpress.com/2011/02/11/where-are-the-log-files-for-openerp/#comments</comments>
		<pubDate>Fri, 11 Feb 2011 00:21:53 +0000</pubDate>
		<dc:creator>philu</dc:creator>
				<category><![CDATA[OpenERP]]></category>

		<guid isPermaLink="false">http://powerphil.wordpress.com/?p=66</guid>
		<description><![CDATA[This is a quick reference for finding OpenERP&#8217;s log files. OpenERP Server logging Server Log files on Centos 5.5 /var/log/openerp-web /var/log/messages (if &#8211;syslog option is used to start the openerp server &#8211; see /etc/init.d/openerp-server) /var/log/openerp-server (if that is where you pointed your &#8230; <a href="http://powerphil.wordpress.com/2011/02/11/where-are-the-log-files-for-openerp/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=powerphil.wordpress.com&amp;blog=18103389&amp;post=66&amp;subd=powerphil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p id="head-1ed7d3adf201749fcd2923ca59f44c8ee233d552">This is a quick reference for finding OpenERP&#8217;s log files.</p>
<h2 id="head-2bc62ba3dae0166a25f596bb135a5d9d5cd55ddd">OpenERP Server logging</h2>
<h3 id="head-e51cb1407ddb6714a981b8d823f1a4a68f0fa8fb">Server Log files on Centos 5.5</h3>
<ul>
<li><strong>/var/log/openerp-web</strong></li>
<li><strong>/var/log/messages</strong> (if <strong>&#8211;syslog</strong> option is used to start the openerp server &#8211; see <strong>/etc/init.d/openerp-server</strong>)</li>
<li><strong>/var/log/openerp-server </strong>(if that is where you pointed your log file to in /etc/init.d/openerp-server)</li>
<li><strong>~openerp/.bzr.log</strong></li>
</ul>
<h3 id="head-f5484dd673fc9c7ca59e8e34d089cdea99804d35">Client Log files</h3>
<p>For the GTK Client on Windows 7:</p>
<ul>
<li><strong>C:\Users\&lt;Your login&gt;\openerp-client.log</strong></li>
</ul>
<h2 id="head-0a0e16afb7abfbd83cb57bdce8cea04283f0c690">Postgres Logging on Centos 5.5</h2>
<ul>
<li><strong>/var/lib/pgsql/pgstartup.log</strong> (see PGLOG in <strong>/etc/init.d/postgresql</strong>)</li>
<li><strong>/var/lib/pgsql/data/pg_log/postgresql-*.log</strong> (see <strong>/var/lib/pgsql/data/postgresql.conf</strong>)</li>
<li><strong>C:\Program Files (x86)\OpenERP <a href="https://opsdocs.mbase.com.au/AllInOne">AllInOne</a>\PostgreSQL\data\pg_log</strong></li>
</ul>
<h2 id="head-f0c34507751a952be5a07d1b3d3ce98c04dea328">Postgres Logging on Ubuntu 10.10</h2>
<ul>
<li><strong>/var/log/postgresql/postgresql-8.4-main.log</strong></li>
</ul>
<br />Filed under: <a href='http://powerphil.wordpress.com/category/openerp/'>OpenERP</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/powerphil.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/powerphil.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/powerphil.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/powerphil.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/powerphil.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/powerphil.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/powerphil.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/powerphil.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/powerphil.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/powerphil.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/powerphil.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/powerphil.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/powerphil.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/powerphil.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=powerphil.wordpress.com&amp;blog=18103389&amp;post=66&amp;subd=powerphil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://powerphil.wordpress.com/2011/02/11/where-are-the-log-files-for-openerp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36efe6d1304e007998d874a8e990feb9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">philubert</media:title>
		</media:content>
	</item>
		<item>
		<title>How to recover email after deleted Windows Live Mail account</title>
		<link>http://powerphil.wordpress.com/2011/02/11/how-to-recover-email-after-deleted-windows-live-mail-account/</link>
		<comments>http://powerphil.wordpress.com/2011/02/11/how-to-recover-email-after-deleted-windows-live-mail-account/#comments</comments>
		<pubDate>Fri, 11 Feb 2011 00:18:02 +0000</pubDate>
		<dc:creator>philu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://powerphil.wordpress.com/?p=71</guid>
		<description><![CDATA[I use Windows Live Email sometimes for special purposes, and when I deleted an email account, it inadvertently deleted all my email associated with that account! Somehow I must have glossed over any warning message. I successfully retrieved all my &#8230; <a href="http://powerphil.wordpress.com/2011/02/11/how-to-recover-email-after-deleted-windows-live-mail-account/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=powerphil.wordpress.com&amp;blog=18103389&amp;post=71&amp;subd=powerphil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I use Windows Live Email sometimes for special purposes, and when I deleted an email account, it inadvertently deleted all my email associated with that account! Somehow I must have glossed over any warning message.</p>
<p>I successfully retrieved all my email (and account) by doing this:</p>
<ol>
<li>Closed Windows Live Email.</li>
<li>Made a backup copy of <strong>C:\Users\Philu\AppData\Local\Microsoft\Windows Live Mail</strong> and also of <strong>C:\Users\Philu\AppData\Local\Microsoft\Windows Mail</strong> (not sure if that second directory is needed but I did it too, just to be safe).</li>
<li>Made a System Restore Point.</li>
<li>Downloaded and installed <a title="ShadowExplorer" href="http://www.shadowexplorer.com/">ShadowExplorer</a>.</li>
<li>Selected the most recent time in the Toolbar button.</li>
<li>In the navigation pane, navigated to <strong>C:\Users\Philu\AppData\Local\Microsoft.</strong></li>
<li>Right-clicked on Windows Live Mail and exported it to a temporary directory.</li>
<li>Did the same for the Windows Mail directory.</li>
<li>Closed ShadowExplorer.</li>
<li>Opened Windows Explorer.</li>
<li>Cut <strong>C:\Users\Philu\AppData\Local\Microsoft\Windows Live Mail</strong> and also <strong>C:\Users\Philu\AppData\Local\Microsoft\Windows Mail</strong> and pasted them into another backup directory.</li>
<li>Moved my exported copies of Windows Live Mail and Windows Mail from steps 7 and 8 into <strong>C:\Users\Philu\AppData\Local\Microsoft.</strong></li>
<li>Opened Windows Live Mail.<br />
All my mail was back!</li>
</ol>
<p>I was using Windows 7 Home Premium (64-bit) with Windows Live Email Version 2011.</p>
<p>Edit: Simon van der Pol kindly posted an easier method for Windows 7 users:</p>
<ol>
<li>Close Windows Live Mail.</li>
<li>Go to C:\Users\username\AppData\Local\Microsoft and then right click on the Windows Live Mail folder and choose ‘restore previous versions’.</li>
<li>Then choose the most recent date to restore to and click restore.</li>
<li>After restoring to a previous date, you can always restore back to a future date.</li>
<li>Then open Windows Live Mail. All your e-mails should be in place.</li>
</ol>
<h2>References</h2>
<ul>
<li><span style="color:#000000;font-size:18px;line-height:27px;"><a href="http://www.eggheadcafe.com/software/aspnet/36211882/deleted-email-account.aspx">http://www.eggheadcafe.com/software/aspnet/36211882/deleted-email-account.aspx</a></span></li>
<li><span style="color:#000000;font-size:18px;line-height:27px;"><a href="http://www.shadowexplorer.com/">http://www.shadowexplorer.com/</a><br />
</span></li>
</ul>
<br />Filed under: <a href='http://powerphil.wordpress.com/category/uncategorized/'>Uncategorized</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/powerphil.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/powerphil.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/powerphil.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/powerphil.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/powerphil.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/powerphil.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/powerphil.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/powerphil.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/powerphil.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/powerphil.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/powerphil.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/powerphil.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/powerphil.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/powerphil.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=powerphil.wordpress.com&amp;blog=18103389&amp;post=71&amp;subd=powerphil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://powerphil.wordpress.com/2011/02/11/how-to-recover-email-after-deleted-windows-live-mail-account/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36efe6d1304e007998d874a8e990feb9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">philubert</media:title>
		</media:content>
	</item>
	</channel>
</rss>
