<?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/"
	>

<channel>
	<title>Juixe Techknow &#187; Visual Basic</title>
	<atom:link href="http://juixe.com/techknow/index.php/category/techknow/visual-basic/feed/" rel="self" type="application/rss+xml" />
	<link>http://juixe.com/techknow</link>
	<description>Break Coders Block!</description>
	<lastBuildDate>Mon, 21 May 2012 16:01:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Microsoft DreamSpark</title>
		<link>http://juixe.com/techknow/index.php/2008/07/09/microsoft-dreamspark/</link>
		<comments>http://juixe.com/techknow/index.php/2008/07/09/microsoft-dreamspark/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 06:16:42 +0000</pubDate>
		<dc:creator>TechKnow</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[DotNET]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[TechKnow]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2008/07/09/microsoft-dreamspark/</guid>
		<description><![CDATA[Even thought I am a Windows user, I am no where near a Microsoft lackey but recently I learned that Microsoft is giving away a ton of professional grade software to students. Through the Microsoft DreamSpark program, students can get access to Visual Studio 2008 Professional, Windows Server 2003 Standard Edition, Microsoft Expression Studio, XNA [...]]]></description>
			<content:encoded><![CDATA[<p>Even thought I am a Windows user, I am no where near a Microsoft lackey but recently I learned that Microsoft is giving away a ton of professional grade software to students.  Through the <a href="https://downloads.channel8.msdn.com/">Microsoft DreamSpark</a> program, students can get access to Visual Studio 2008 Professional, Windows Server 2003 Standard Edition, Microsoft Expression Studio, XNA Studio, XNA Creators Club, SQL Server 2005, as well as other free software such as their express edition software.  That is well over $1,500 of free software.  I am typically not a Microsoft fanboy but I do have to give credit to Microsoft for making its development tools free of charge to students across the world.  Now I wish Adobe would do the same.</p>
<p>Technorati Tags: <a href="http://technorati.com/tag/microsft" rel="tag">microsft</a>, <a href="http://technorati.com/tag/dreamspark" rel="tag"> dreamspark</a>, <a href="http://technorati.com/tag/xna" rel="tag"> xna</a>, <a href="http://technorati.com/tag/visual+studio" rel="tag"> visual studio</a>, <a href="http://technorati.com/tag/windows" rel="tag"> windows</a>, <a href="http://technorati.com/tag/sql+server" rel="tag"> sql server</a>, <a href="http://technorati.com/tag/c%23" rel="tag"> c#</a>, <a href="http://technorati.com/tag/adobe" rel="tag"> adobe</a></p>
]]></content:encoded>
			<wfw:commentRss>http://juixe.com/techknow/index.php/2008/07/09/microsoft-dreamspark/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Top Programming Books on Google Book Search</title>
		<link>http://juixe.com/techknow/index.php/2007/10/27/top-programming-books-on-google-book-search/</link>
		<comments>http://juixe.com/techknow/index.php/2007/10/27/top-programming-books-on-google-book-search/#comments</comments>
		<pubDate>Sat, 27 Oct 2007 21:24:00 +0000</pubDate>
		<dc:creator>TechKnow</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[DotNET]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[TechKnow]]></category>
		<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2007/10/27/top-programming-books-on-google-book-search/</guid>
		<description><![CDATA[Here is an extensive list of top programming books available for preview on Google Books. Google Books provides scans of thousands of textbooks. The scans are not the best, most books have visible scan defects in them. Even though the scans are not the best, there are some features that just work well. Just like [...]]]></description>
			<content:encoded><![CDATA[<p>Here is an extensive list of top programming books available for preview on <a href="http://books.google.com/">Google Books</a>.  Google Books provides scans of thousands of textbooks.  The scans are not the best, most books have visible scan defects in them.</p>
<p>Even though the scans are not the best, there are some features that just work well.  Just like Google Maps, where you can send a link to a map (with a set size, address, etc), with Google Books you can send a link to a specific page in a certain book with specific words highlighted.  Google also has handy links such as the table of contents, popular passages, and where to buy the book (perhaps in a better quality PDF format).</p>
<p>All the books listed here have a &#8216;limited preview&#8217;, meaning that some pages are not available for viewing but for the most part you can browse through most the the book.  Google Books does indicate the pages that are not available.</p>
<p><b>Java</b><br />
<a href="http://books.google.com/books?id=Ww1B9O_yVGsC&#038;pg=PP1&#038;sig=953iF6Q7wV19bm_Vztg8dWkEGWk#PPP1,M1">The Java Language Specification</a><br />
<a href="http://books.google.com/books?id=ZZOiqZQIbRMC&#038;pg=PA97&#038;sig=JgnunNhNb8MYDcx60Kq4IyHUC58#PPP1,M1">Effective Java Programming language</a><br />
<a href="http://books.google.com/books?id=saj_wnV2xXoC&#038;pg=PP1&#038;sig=vPSufLP4XqxCN3m03_5sXWJY7xo#PPP1,M1">Java: The complete Reference</a><br />
<a href="http://books.google.com/books?id=glmu7LSXqU0C&#038;pg=PA1&#038;sig=Df6QUfDFyzpO6mtT7rdiTTMD22w#PPP1,M1">Java In A Nutshell</a><br />
<a href="http://books.google.com/books?id=5VTBuvfZDyoC&#038;pg=PA1&#038;sig=qimFAU1gf5EgYpYgYonbo96YGcU#PPP1,M1">Head First Java</a></p>
<p><b>C/C++</b><br />
<a href="http://books.google.com/books?id=rGag6zvVtNEC&#038;pg=PA3&#038;sig=M5IwdN5cTvJ9kDkQTSIfw2jG1RQ#PPP1,M1">Practical C++ Programming</a><br />
<a href="http://books.google.com/books?id=l-8pGUDcYPcC&#038;pg=PT1&#038;sig=rEiKbMzJxbV5gTEimBDRRgDJnIk#PPP1,M1">C++ The Core Language</a><br />
<a href="http://books.google.com/books?id=ZDRBv8U_bJ0C&#038;pg=PA1&#038;sig=jPU-xKO6csH3vCZ5XEAuKM6LR40#PPP1,M1">The Concurrent C Programming Language</a><br />
<a href="http://books.google.com/books?id=zuyAIZ9ZIskC&#038;pg=PA3&#038;sig=kmo7bDL3Kvvi7mFwxmwiXTFKyEo#PPP1,M1">C++ Primer Plus</a></p>
<p><b>.Net/C#</b><br />
<a href="http://books.google.com/books?id=6L1Rm031qCkC&#038;pg=PA429&#038;sig=AdVorCKUg0vh445JUPTfzJUQx-Q#PPP1,M1">The C# Programming Language</a><br />
<a href="http://books.google.com/books?id=ejzRTF2TL6UC&#038;pg=PA1&#038;as_brr=3&#038;sig=N-qwF_BiSMw5z_SgjFm8DTHeuNs#PPP1,M1">The Visual Basic .NET Programming Language</a><br />
<a href="http://books.google.com/books?id=Dy-ro5dFp5MC&#038;pg=PA7&#038;sig=BpqzGh-4zlPmMh3hSVHolEH_Ouw#PPP1,M1">Pro C# 2005 and the .NET 2.0 Platform</a><br />
<a href="http://books.google.com/books?id=wJ8pe3PEKlcC&#038;pg=PA1&#038;sig=_bEz42vOeauQBNGWUUUE0FfCEyo#PPP1,M1">Learning Visual Basic .NET</a><br />
<a href="http://books.google.com/books?id=Hp7sphigGE4C&#038;pg=PA3&#038;sig=uUjIqtexNetzkPGssF-wC7feYWg#PPP1,M1">VB.NET Language in a Nutshell</a></p>
<p><b>Python</b><br />
<a href="http://books.google.com/books?id=vpTAq4dnmuAC&#038;pg=RA1-PA3&#038;sig=NAJEOY-V87i2QGS4PSED58piqOY#PPR1,M1">Python in a Nutshell</a><br />
<a href="http://books.google.com/books?id=nEJ-jcYF2fMC&#038;pg=PA3&#038;sig=XsdyvvUW98yTCPLhtqW0fcfe0UI#PPP1,M1">Learning Python</a><br />
<a href="http://books.google.com/books?id=carqdIdfVlYC&#038;pg=PP1&#038;sig=yFz8GPncmysGUC93XO84wjBOO5E">Visual Quickstart Guide: Python</a><br />
<a href="http://books.google.com/books?id=9M09XOt_XPkC&#038;pg=PP1&#038;sig=gwIJDUNSVu7a_QpQ_zUFJbuR5yM#PPP1,M1">Python Pocket Reference</a><br />
<a href="http://books.google.com/books?id=1Shx_VXS6ioC&#038;pg=PA1&#038;sig=JaVnlZj1okM476FSL2IlqUB9eHA#PPP1,M1">Python Cookbook</a></p>
<p><b>JavaScript/DOM</b><br />
<a href="http://books.google.com/books?id=VOS6IlCsuU4C&#038;pg=PA1&#038;sig=D1a6KJnK9GcRWiPYraMefoBLxJc#PPP1,M1">JavaScript: The Definitive Guide</a><br />
<a href="http://books.google.com/books?id=M3Uqna8RIAkC&#038;pg=PA1&#038;sig=Hy_3UcnHGz-vDkknoSLlPP8Yxzw#PPP1,M1">Beginning JavaScript with DOM Scripting and AJAX</a><br />
<a href="http://books.google.com/books?id=MrHaC5HAva8C&#038;pg=PA1&#038;sig=DILv5iQQecl844D8pY7yH8-e7c0#PPP1,M1">The Book of JavaScript</a><br />
<a href="http://books.google.com/books?id=CCCMiIUIokIC&#038;pg=PA1&#038;sig=2xYMzXhLuc0-RXh1Ne28GEs-3Co#PPP1,M1">The Complete Reference JavaScript</a><br />
<a href="http://books.google.com/books?id=tKszhx-XkzYC&#038;pg=PA3&#038;sig=C0CmkXRvTFeUuebUCe6qhvNZLE4#PPP1,M1">JavaScript Bible</a><br />
<a href="http://books.google.com/books?id=LBTQ83bAz6QC&#038;pg=PA4&#038;sig=1NHiVMPf7lbnDDHW6JexP9cHLng#PPP1,M1">DOM Scripting</a></p>
<p><b>Ruby/Rails</b><br />
<a href="http://books.google.com/books?id=6S8vZIUEq24C&#038;pg=PR9&#038;sig=gWRdao9oQaS8noglTj0xYzYgOeE#PPP1,M1">Ruby in a Nutshell</a><br />
<a href="http://books.google.com/books?id=ows9jTsyaaEC&#038;pg=PR14&#038;sig=rQUl3VDRUzNLT6Pzumr1LrD9Oqg#PPP1,M1">The Ruby Way</a><br />
<a href="http://books.google.com/books?id=RBUJZ-ma7voC&#038;pg=PA609&#038;sig=BbDU7gE5X6RF3lSU1UjMXSb6JlY#PPP1,M1">Beginning Ruby</a><br />
<a href="http://books.google.com/books?id=pUPX8joph10C&#038;pg=PP1&#038;sig=uXOsLcNneepQEpG1FdZjS9j1K6g#PPP1,M1">Ruby on Rails: Up and Running</a><br />
<a href="http://books.google.com/books?id=0MEn8moAsYQC&#038;pg=PA4&#038;sig=SbV6r0icmJ6FgKCD8z1toMByp1Q#PPP1,M1">Rails Solutions: Ruby on Rails Made Easy</a><br />
<a href="http://books.google.com/books?id=o0JuxK5_1esC&#038;pg=PA6&#038;sig=RKNZBS0EdyAYFbY69vP5Pyyc_uk#PPP1,M1">Beginning Ruby on Rails E-Commerce</a></p>
<p><b>PHP</b><br />
<a href="http://books.google.com/books?id=dm2_jgULbBUC&#038;pg=PA1&#038;sig=zXZoS-JpvJ2yb2o-bzufOZwhvwg#PPP1,M1">PHP in a Nutshell</a><br />
<a href="http://books.google.com/books?id=tywvv3ULal0C&#038;pg=PA7&#038;sig=VIk-wD6azTwW8GeyWCU_g2-pRAs#PPP1,M1">Programming PHP</a><br />
<a href="http://books.google.com/books?id=EPYLBqDWOeYC&#038;pg=PA1&#038;sig=FZoOgrJkS1ONimQCGc4EqCqbdg4#PPP1,M1">PHP Cookbook</a><br />
<a href="http://books.google.com/books?id=IpuT0GxHvAkC&#038;pg=PA1&#038;sig=KD6W9CxXGZHm5etSpyyxpUWssfg#PPP1,M1">Learning PHP and MySQL</a><br />
<a href="http://books.google.com/books?id=r0RzbTtX1VsC&#038;pg=PA1&#038;sig=zsd5JNbcqmB_SORKw-sIkFZHAS4#PPP1,M1">Learning PHP 5</a></p>
<p><b>Database</b><br />
<a href="http://books.google.com/books?id=WjIQh9bo7DoC&#038;pg=PP1&#038;sig=0XTTuLkBJQlX0MTsPUqThjLE8tk">Visual Quickstart Guide: MySQL</a><br />
<a href="http://books.google.com/books?id=aC3blgT3D3YC&#038;pg=PA1&#038;sig=DtVt1B9eNtIpc2OdJ2trEfaoAAM#PPP1,M1">MySQL Cookbook</a><br />
<a href="http://books.google.com/books?id=KnAxCTKIMiIC&#038;pg=PA1&#038;sig=s5wLE5YsOd5Vq6J589cvuPy7lGU#PPP1,M1">MySQL in a Nutshell</a><br />
<a href="http://books.google.com/books?id=uTafONiZmEIC&#038;pg=PA1&#038;sig=bFEMJqXZl9G7ECqv9_OMgD_Ib2I#PPP1,M1">MySQL Tutorial</a><br />
<a href="http://books.google.com/books?id=-FHhNVmXALkC&#038;pg=PA4&#038;sig=FA3sEZjlH7vQtp4rGhCKk5crB3s#PPP1,M1">Programming SQL Server 2005</a><br />
<a href="http://books.google.com/books?id=9zkXLY9U88UC&#038;pg=PA2&#038;sig=p1b798ZMhpp6nXOgIbscHjndtjM#PPP1,M1">SQL Server 2005: Developer&#8217;s Guide</a><br />
<a href="http://books.google.com/books?id=_8t73M1r71sC&#038;pg=PA3&#038;sig=o8pPJbvjaifrNZMnY26VMSlB6Jw#PPP1,M1">SQL Server 2005: A Beginner&#8217;s Guide</a><br />
<a href="http://books.google.com/books?id=B83dXtOATAQC&#038;pg=PA3&#038;sig=Ndon2Fh39Ma8XTInNK27_rFEBzE#PPP1,M1">Beginning SQL Server 2005 Express</a></p>
<p>Technorati Tags: <a href="http://technorati.com/tag/java" rel="tag">java</a>, <a href="http://technorati.com/tag/php" rel="tag"> php</a>, <a href="http://technorati.com/tag/database" rel="tag"> database</a>, <a href="http://technorati.com/tag/programming" rel="tag"> programming</a>, <a href="http://technorati.com/tag/language" rel="tag"> language</a>, <a href="http://technorati.com/tag/.net" rel="tag"> .net</a>, <a href="http://technorati.com/tag/ruby" rel="tag"> ruby</a>, <a href="http://technorati.com/tag/rails" rel="tag"> rails</a>, <a href="http://technorati.com/tag/google" rel="tag"> google</a>, <a href="http://technorati.com/tag/book+search" rel="tag"> book search</a>, <a href="http://technorati.com/tag/dom" rel="tag"> dom</a>, <a href="http://technorati.com/tag/javascript" rel="tag"> javascript</a>, <a href="http://technorati.com/tag/python" rel="tag"> python</a>, <a href="http://technorati.com/tag/vb" rel="tag"> vb</a></p>
]]></content:encoded>
			<wfw:commentRss>http://juixe.com/techknow/index.php/2007/10/27/top-programming-books-on-google-book-search/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Outlook Fun With Scriptom</title>
		<link>http://juixe.com/techknow/index.php/2006/09/06/outlook-fun-with-scriptom/</link>
		<comments>http://juixe.com/techknow/index.php/2006/09/06/outlook-fun-with-scriptom/#comments</comments>
		<pubDate>Wed, 06 Sep 2006 22:28:14 +0000</pubDate>
		<dc:creator>TechKnow</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[TechKnow]]></category>
		<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/09/06/outlook-fun-with-scriptom/</guid>
		<description><![CDATA[It is soo true that if you work for a startup you end up wearing multiple hats. I work for a very small startup and I wear more hats that the Queen of England. One of those hats is of a Visual Basic developer. Most business applications are not fancy or web two point ooh-y, [...]]]></description>
			<content:encoded><![CDATA[<p>It is soo true that if you work for a startup you end up wearing multiple hats.  I work for a very small startup and I wear more hats that the Queen of England.  One of those hats is of a Visual Basic developer.  Most business applications are not fancy or web two point ooh-y, they usually involve some charts, some graphs, and some integration with <b>Microsoft Office</b> products.</p>
<p>As most script kiddies know, with a little Visual Basic code you can write scripts to open, write, and send emails, generate excel documents, print word documents, and so much more.  Fore example, here is a little bit of vbs code to automate the send button (now if you can automate running the script):</p>
<p>Set objOutlook = CreateObject(&#8220;Outlook.Application&#8221;)<br />
Set objNamespace = objOutlook.GetNamespace(&#8220;MAPI&#8221;)</p>
<p>&#8216; Need to have open a new email window for the following<br />
Set objInspector = objOutlook.ActiveInspector<br />
Set objMailItem = objInspector.CurrentItem</p>
<p>&#8216; Send the email, after the user presses the okay<br />
&#8216; button on the confirmation dialog<br />
objMailItem.Send</p>
<p>Now, if you want to pop up a message dialog with the subject of the last email you received, just run the following lines of code:</p>
<p>Const olFolderInbox = 6<br />
Const olFolderSentMail = 5</p>
<p>Set objOutlook = CreateObject(&#8220;Outlook.Application&#8221;)<br />
Set objNamespace = objOutlook.GetNamespace(&#8220;MAPI&#8221;)</p>
<p>Set objFolder = objNamespace.GetDefaultFolder(olFolderSentMail)<br />
MsgBox &#8220;Subject: &#8221; &#038; objFolder.Items.GetLast.Subject</p>
<p>I have a few more example of Visual Basic code manipulating Microsoft Office products <a href="http://www.juixe.com/techknow/index.php/category/techknow/visual-basic/">here</a>.  If you want to run similar COM code but in Java you can do so using <b>Groovy</b> and <b>Scriptom</b>.  I have already mentioned Scriptom before so I will refer you to that <a href="http://www.juixe.com/techknow/index.php/2006/08/08/com-scripting-with-groovy/">post</a>.</p>
<p>Technorati Tags: <a href="http://technorati.com/tag/scriptom" rel="tag">scriptom</a>, <a href="http://technorati.com/tag/groovy" rel="tag"> groovy</a>, <a href="http://technorati.com/tag/java" rel="tag"> java</a>, <a href="http://technorati.com/tag/com" rel="tag"> com</a>, <a href="http://technorati.com/tag/visual+basic" rel="tag"> visual basic</a>, <a href="http://technorati.com/tag/outlook" rel="tag"> outlook</a>, <a href="http://technorati.com/tag/scripts" rel="tag"> scripts</a>, <a href="http://technorati.com/tag/visual+basic+script" rel="tag"> visual basic script</a></p>
]]></content:encoded>
			<wfw:commentRss>http://juixe.com/techknow/index.php/2006/09/06/outlook-fun-with-scriptom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>COM Scripting With Groovy</title>
		<link>http://juixe.com/techknow/index.php/2006/08/08/com-scripting-with-groovy/</link>
		<comments>http://juixe.com/techknow/index.php/2006/08/08/com-scripting-with-groovy/#comments</comments>
		<pubDate>Wed, 09 Aug 2006 03:12:26 +0000</pubDate>
		<dc:creator>TechKnow</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[TechKnow]]></category>
		<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/08/08/com-scripting-with-groovy/</guid>
		<description><![CDATA[I&#8217;ve mentioned before my use of Groovy in Groovy Closures and Common Groovy Errors. I have also mentioned the need to use Visual Basic scripts to open MS Word, or print an HTML document from Internet Explorer. In this article I will mention how to use Groovy and Scriptom to do COM scripting. Before I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve mentioned before my use of Groovy in <a href="http://www.juixe.com/techknow/index.php/2006/04/10/groovy-closures/">Groovy Closures</a> and <a href="http://www.juixe.com/techknow/index.php/2006/06/11/common-groovy-errors/">Common Groovy Errors</a>.  I have also mentioned the need to use Visual Basic scripts to open MS Word, or print an HTML document from Internet Explorer.  In this article I will mention how to use Groovy and <b>Scriptom</b> to do COM scripting.  Before I integrated with Scriptom I had to write one off Visual Basic scripts and run them from Java by using the  Runtime&#8217;s exec(String) method.  Now I could write the COM script in Groovy.  Here is an example of Groovy code that will open a new Outlook mail message window and populate the To field:</p>
<pre>
import org.codehaus.groovy.scriptom.ActiveXProxy

def outlook = new ActiveXProxy("Outlook.Application");
def message = outlook.CreateItem(0);
def emails = "user1@domain1.com;user2@domain2.com";
def rec = message.Recipients.add(emails);
rec.Type = 1 // To = 1, CC = 2, BCC = 3
message.Display(true);
</pre>
<p>You can run this code from the groovyConsole once you have <a href="http://groovy.codehaus.org/COM+Scripting">Scriptom</a> configured.</p>
<p>Technorati Tags: <a href="http://technorati.com/tag/groovy" rel="tag">groovy</a>, <a href="http://technorati.com/tag/java" rel="tag"> java</a>, <a href="http://technorati.com/tag/gdk" rel="tag"> gdk</a>, <a href="http://technorati.com/tag/scriptom" rel="tag"> scriptom</a>, <a href="http://technorati.com/tag/activex" rel="tag"> activex</a>, <a href="http://technorati.com/tag/com" rel="tag"> com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://juixe.com/techknow/index.php/2006/08/08/com-scripting-with-groovy/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Visual Basic And The Java Platform</title>
		<link>http://juixe.com/techknow/index.php/2006/05/18/visual-basic-and-the-java-platform/</link>
		<comments>http://juixe.com/techknow/index.php/2006/05/18/visual-basic-and-the-java-platform/#comments</comments>
		<pubDate>Fri, 19 May 2006 00:43:07 +0000</pubDate>
		<dc:creator>TechKnow</dc:creator>
				<category><![CDATA[IDE]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[TechKnow]]></category>
		<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/05/18/visual-basic-and-the-java-platform/</guid>
		<description><![CDATA[This session introduced Project Simplice. According to the speakers, Project Simplice intends to attract Visual Basic programmer to the Java camp. Project Simplice is inspired by Visual Basic and compile Basic code to a class file which runs in the JVM. Basically, this makes the Java platform basically simple to the Basic programmer. The whole [...]]]></description>
			<content:encoded><![CDATA[<p>This session introduced Project Simplice.  According to the speakers, Project Simplice intends to attract Visual Basic programmer to the Java camp.  Project Simplice is inspired by Visual Basic and compile Basic code to a class file which runs in the JVM.  Basically, this makes the Java platform basically simple to the Basic programmer.  The whole project is still at an early stage.  The project is not available to the general project yet even.  That said they Project Simplice team made some impressive demos.</p>
<p>As a demo, the Project Simplice imported the Visual Basic code for a calculator example written by Microsoft with the original copyright.  Once imported they hit the build button to launch a program originally original written for the Windows platform but now running on JVM power.  Wow.  Now that is some impressive compiler magic.  In NetBeans, you can edit the UI in the UI Builder and update the code and have the same context help, color highlighting, and language support that you come to expect from NetBeans.</p>
<p>What was hard to believe was that an exe fractal application written in Visual Basic for the Windows platform ran considerably slower than when that same code was compiled and ran in the JVM.  There was general disbelief and awe when that Windows version ran over 10 times slower.</p>
<p>It seems that Project Simplice, or marketing eventually names it, is intended a language that can be used to teach programming to beginners.</p>
<p>Technorati Tags: <a href="http://technorati.com/tag/javaone" rel="tag">javaone</a>, <a href="http://technorati.com/tag/java" rel="tag"> java</a>, <a href="http://technorati.com/tag/visual+basic" rel="tag"> visual basic</a>, <a href="http://technorati.com/tag/jvm" rel="tag"> jvm</a>, <a href="http://technorati.com/tag/project+simplice" rel="tag"> project simplice</a>, <a href="http://technorati.com/tag/netbeans" rel="tag"> netbeans</a></p>
]]></content:encoded>
			<wfw:commentRss>http://juixe.com/techknow/index.php/2006/05/18/visual-basic-and-the-java-platform/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Groovy On The JVM</title>
		<link>http://juixe.com/techknow/index.php/2006/05/17/groovy-on-the-jvm/</link>
		<comments>http://juixe.com/techknow/index.php/2006/05/17/groovy-on-the-jvm/#comments</comments>
		<pubDate>Thu, 18 May 2006 04:33:57 +0000</pubDate>
		<dc:creator>TechKnow</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[TechKnow]]></category>
		<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/05/17/groovy-on-the-jvm/</guid>
		<description><![CDATA[I attended the Groovy = Java Tech + Ruby + Python for the JVM session. This is a simple equation that makes a lot of sense to me, especially since I develop a lot of Groovy scripts at work. This session was a 101 introduction to groovy. Rob Cope of OpenLogic did a great job [...]]]></description>
			<content:encoded><![CDATA[<p>I attended the Groovy = Java Tech + Ruby + Python for the JVM session.  This is a simple equation that makes a lot of sense to me, especially since I develop a lot of Groovy scripts at work.  This session was a 101 introduction to groovy.  Rob Cope of OpenLogic did a great job at describing the dynamic aspect of Groovy, Closures, Groovy Markup builders such as AntBuilder and XmlBuilder, and the the GDK extensions.</p>
<p>For those not familiar to Groovy.  Groovy is a object-oriented dynamic language that runs on the JVM.  In Groovy, static typing and semicolons are optional.  Groovy has a lot of built-in features missing in Java, such as regular expressions.  A great feature of groovy is that it compiles to a class file which can be used in a Java application.  According to Rob, &#8220;your boss can&#8217;t tell if you are using Groovy.&#8221;</p>
<p>The one feature of Groovy that I was not at all familiar with was the Scriptom.  Scriptom gives you access to COM objects, in a fashion that is similar to VBScript developers.  Rob shows demoed Scriptom, he opened Microsoft Excel added values, created a chart, saved the chart to the file system, created a JFrame with a button that use the chart as an icon.  More amazing is that he did this without restarting or closing or rebuilding anything.</p>
<p>I am seriously thinking of replacing all our VBscript dependencies from our application.  We use VBScript to open and print Word and Excel documents.  With Groovy and Scriptom I could do this in the JVM.</p>
<p>Technorati Tags: <a href="http://technorati.com/tag/javaone" rel="tag">javaone</a>, <a href="http://technorati.com/tag/java" rel="tag"> java</a>, <a href="http://technorati.com/tag/groovy" rel="tag"> groovy</a>, <a href="http://technorati.com/tag/closures" rel="tag"> closures</a>, <a href="http://technorati.com/tag/scriptom" rel="tag"> scriptom</a>, <a href="http://technorati.com/tag/vbscript" rel="tag"> vbscript</a></p>
]]></content:encoded>
			<wfw:commentRss>http://juixe.com/techknow/index.php/2006/05/17/groovy-on-the-jvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Word To PDF</title>
		<link>http://juixe.com/techknow/index.php/2006/01/25/word-to-pdf/</link>
		<comments>http://juixe.com/techknow/index.php/2006/01/25/word-to-pdf/#comments</comments>
		<pubDate>Thu, 26 Jan 2006 03:51:53 +0000</pubDate>
		<dc:creator>TechKnow</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[TechKnow]]></category>
		<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://www.juixe.com/techknow/?p=55</guid>
		<description><![CDATA[Why isn&#8217;t there are good and simple command line doc2pdf application? I just can&#8217;t find any good command line programs that can faithfully produce a PDF document given a Word document. There are a lot of commercial and some open source applications that can create a PDF document but I can&#8217;t find a simple command [...]]]></description>
			<content:encoded><![CDATA[<p>Why isn&#8217;t there are good and simple command line doc2pdf application?  I just can&#8217;t find any good command line programs that can faithfully produce a PDF document given a Word document.  There are a lot of commercial and some open source applications that can create a PDF document but I can&#8217;t find a simple command line tool that does this.  For example, PDFCreator is an open source application that allows you to create a PDF document from Word by &#8216;printing&#8217; the document to a virtual PDFCreator printer.  Several commercially available Word to PDF solutions do this same thing; installing a &#8216;printer&#8217; to print a document as a PDF.  This solution is really a hack that exploits the fact that documents sent to the printer need to be transformed to what is essentially PostScript.  Once you have a document in its PostScript format you can create a PDF using Adobe&nbsp;Acrocat&nbsp;Distiller or GhostScript&#8217;s ps2pdf.cmd batch file.</p>
<p>PDFCreator does not provide a nice command line interface but that is easy to get past that limitation with some simple Visual Basic.  You can write some simple Visual Basic script code that opens a Word document, sets the default printer to PDFCreator, and &#8216;prints&#8217; out document allowing PDFCreator to create a PDF for you.  You might want to edit the PDFCreator&#8217;s auto-save options otherwise you will be prompted where to save the new PDF.  Here is some sample Visual Basic code that does just what I described above.</p>
<pre>
Set word = CreateObject(&quot;Word.Application&quot;)
Set docs = wdo.Documents

' Remember current active printer
Set sPrevPrinter = wdo.ActivePrinter

' Select the PDFCreator as your printer
word.ActivePrinter = &quot;PDFCreator&quot;

' Open the Word document
Set document = docs.Open(sMyDocumentFile)

' Print the document file to the PDFCreator
word.ActiveDocument.PrintOut

document.Close WdDoNotSaveChanges
word.ActivePrinter = sPrevPrinter
word.Quit WdDoNotSaveChanges
</pre>
<p>For completeness sakes let me mention how to create a PDF document using the Apache POI project.  You can of course convert a Word document to PDF using the Apache POI API.  Using POI you can create a XSL-FO version of your document which can be transformed into a PDF using Apache FOP.  It has been my experience that the results generated by POI are not perfect but here is some code for you go get started.  The POI scratch pad jar contains a WordDocument class that will create a XSL-FO version of the Word document.  The WordDocment might have been intended to be just a command line application because it throws a NullPointerException if you try to use it in your code so you will have to modify this class.  Once you fix the exception you can code the following two lines to produce an XSL-FO for a given Word document:</p>
<pre>
WordDocument file = new WordDocument(wordDocumentPath);
file.closeDoc();
</pre>
<p>Of course once you have the XSL-FO version of your document you can transform&nbsp;it to a PDF using Apache FOP.  One word of warning, the WordDocument class is in the scratch pad jar and might not be as stable as you might think.</p>
]]></content:encoded>
			<wfw:commentRss>http://juixe.com/techknow/index.php/2006/01/25/word-to-pdf/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>TechKnow Year In Review 2005</title>
		<link>http://juixe.com/techknow/index.php/2005/12/27/techknow-year-in-review-2005/</link>
		<comments>http://juixe.com/techknow/index.php/2005/12/27/techknow-year-in-review-2005/#comments</comments>
		<pubDate>Tue, 27 Dec 2005 18:02:37 +0000</pubDate>
		<dc:creator>TechKnow</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[TechKnow]]></category>
		<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2005/12/27/techknow-year-in-review-2005/</guid>
		<description><![CDATA[It is that time of year where we reflect on the accomplishments of the passing year and look forward to the one to come. Here is a window of the past year in technology through past posts. TechknowZenze: First Post &#8211; How it all started. Import Script/CSS/PHP Page Redirect &#8211; PHP, HTML, and JavaScript code [...]]]></description>
			<content:encoded><![CDATA[<p>It is that time of year where we reflect on the accomplishments of the passing year and look forward to the one to come.  Here is a window of the past year in technology through past posts.</p>
<p><a href="http://www.juixe.com/techknow/index.php/2005/08/25/hello-world/">TechknowZenze: First Post</a> &#8211; How it all started.<br />
<a href="http://www.juixe.com/techknow/index.php/2005/09/27/import-script-import-css-import-php/">Import Script/CSS/PHP</a><br />
<a href="http://www.juixe.com/techknow/index.php/2005/10/10/page-redirect/">Page Redirect</a> &#8211; PHP, HTML, and JavaScript code to redirect an HTML page to another.<br />
<a href="http://www.juixe.com/techknow/index.php/2005/10/23/mysql-admin/">MySQL Admin</a> &#8211; Quick tutorial for MySQL administrative tasks.<br />
<a href="http://www.juixe.com/techknow/index.php/2005/10/28/put-javascript-to-sleep/">Put JavaScript To Sleep</a> &#8211; Tutorial describing how to set JavaScript functions to timeout.<br />
<a href="http://www.juixe.com/techknow/index.php/2005/11/02/word-mail-merge/">Word Mail Merge</a> &#8211; Visual Basic Script code to manipulate Word&#8217;s Mail Merge functionality<br />
<a href="http://www.juixe.com/techknow/index.php/2005/11/05/javascript-fx/">JavaScript FX</a> &#8211; JavaScript code to hide/show HTML elements.<br />
<a href="http://www.juixe.com/techknow/index.php/2005/11/06/style-and-class/">Style and Class</a> &#8211; Working with style attributes on HTML tags using JavaScript.<br />
<a href="http://www.juixe.com/techknow/index.php/2005/11/12/search-engine-optimization/">Search Engine Optimization</a><br />
<a href="http://www.juixe.com/techknow/index.php/2005/11/16/the-word-is-poi/">The Word is POI</a> &#8211; Java library for working with MS Office documents.</p>
<p>Seasons Greetings</p>
<p>Technorati Tags: <a href="http://technorati.com/tag/java" rel="tag">java</a>, <a href="http://technorati.com/tag/mail+merge" rel="tag"> mail merge</a>, <a href="http://technorati.com/tag/word" rel="tag"> word</a>, <a href="http://technorati.com/tag/poi" rel="tag"> poi</a>, <a href="http://technorati.com/tag/seo" rel="tag"> seo</a>, <a href="http://technorati.com/tag/visual+basic" rel="tag"> visual basic</a>, <a href="http://technorati.com/tag/vbs" rel="tag"> vbs</a>, <a href="http://technorati.com/tag/mysql" rel="tag"> mysql</a>, <a href="http://technorati.com/tag/sql" rel="tag"> sql</a>, <a href="http://technorati.com/tag/javascript" rel="tag"> javascript</a>, <a href="http://technorati.com/tag/html" rel="tag"> html</a>, <a href="http://technorati.com/tag/programming" rel="tag"> programming</a>, <a href="http://technorati.com/tag/css" rel="tag"> css</a></p>
]]></content:encoded>
			<wfw:commentRss>http://juixe.com/techknow/index.php/2005/12/27/techknow-year-in-review-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Kill -9</title>
		<link>http://juixe.com/techknow/index.php/2005/11/25/visual-kill-9/</link>
		<comments>http://juixe.com/techknow/index.php/2005/11/25/visual-kill-9/#comments</comments>
		<pubDate>Fri, 25 Nov 2005 22:17:55 +0000</pubDate>
		<dc:creator>TechKnow</dc:creator>
				<category><![CDATA[DotNET]]></category>
		<category><![CDATA[TechKnow]]></category>
		<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://www.juixe.com/techknow/?p=44</guid>
		<description><![CDATA[Here is some Visual Basic script code which allows you to terminate a process given a process id number. ' Kills a program given its process id. Function ProgKill(strProcessId) ' Declare used variables Dim strWQL Dim objProcess Dim objResult Dim intReturnCode Dim wmi Set wmi = GetObject(&#34;winmgmts:&#34;) ' Get Process by WMI strWQL = _ [...]]]></description>
			<content:encoded><![CDATA[<p>Here is some Visual Basic script code which allows you to terminate a process given a process id number.</p>
<pre>
' Kills a program given its process id.
Function ProgKill(strProcessId)
   ' Declare used variables
   Dim strWQL
   Dim objProcess
   Dim objResult
   Dim intReturnCode
   Dim wmi

   Set wmi = GetObject(&quot;winmgmts:&quot;)
   ' Get Process by WMI
   strWQL = _
      &quot;select * from win32_process where ProcessId='&quot; _
      &#038; strProcessId &#038; &quot;'&quot;
   Set objResult = wmi.ExecQuery(strWQL)

   ' Kill all found process
   For Each objProcess in objResult
      ' Try to kill the process
      intReturnCode = objProcess.Terminate(0)
   Next
End Function
</pre>
<p>You can use code like this to kill a process started in your script after a given event or set time.</p>
]]></content:encoded>
			<wfw:commentRss>http://juixe.com/techknow/index.php/2005/11/25/visual-kill-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Print HTML Using IE</title>
		<link>http://juixe.com/techknow/index.php/2005/11/15/print-html-using-ie/</link>
		<comments>http://juixe.com/techknow/index.php/2005/11/15/print-html-using-ie/#comments</comments>
		<pubDate>Wed, 16 Nov 2005 04:05:37 +0000</pubDate>
		<dc:creator>TechKnow</dc:creator>
				<category><![CDATA[DotNET]]></category>
		<category><![CDATA[HTML/XML]]></category>
		<category><![CDATA[TechKnow]]></category>
		<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://www.juixe.com/techknow/?p=37</guid>
		<description><![CDATA[I&#8217;ve might have mentioned before that I am not well versed in Visual Basic. Here is a small Visual Basic script snippet that took me an afternoon to figure out. You can use this code to print an HTML file using Internet Explorer. After the HTML file has been printed Internet Explorer will close. Sub [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve might have mentioned before that I am not well versed in Visual Basic.  Here is a small Visual Basic script snippet that took me an afternoon to figure out.  You can use this code to print an HTML file using Internet Explorer.  After the HTML file has been printed Internet Explorer will close.</p>
<pre>
Sub PrintHtml(fileName)
    Dim objIE
    Set objIE = WScript.CreateObject( _
        &quot;InternetExplorer.Application&quot;, &quot;ie_&quot;)
    objIE.Visible = True
    objIE.Navigate filename
    do until objIE.readystate = 4 : wscript.sleep 20 : loop
    print_done=false
    ' 6 = PRINT, 2 = NO USER PROMPT
    objIE.ExecWB 6, 2
    ' Wait until printing id done.
    do while not print_done : wscript.sleep 50 : loop
    objIE.Quit
End Sub

' Listen to ie print events
sub ie_PrintTemplateTeardown(pDisp)
    wscript.sleep 200
    print_done=true
end sub
</pre>
]]></content:encoded>
			<wfw:commentRss>http://juixe.com/techknow/index.php/2005/11/15/print-html-using-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

