<?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>Gilbert Adjin Tech Blog</title>
	<atom:link href="http://gilbertadjin.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://gilbertadjin.wordpress.com</link>
	<description>Where Developers Meet (WDM)</description>
	<lastBuildDate>Wed, 18 Jan 2012 11:03:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='gilbertadjin.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/d00e673b9f649e0553813fc94887f5f9?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Gilbert Adjin Tech Blog</title>
		<link>http://gilbertadjin.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://gilbertadjin.wordpress.com/osd.xml" title="Gilbert Adjin Tech Blog" />
	<atom:link rel='hub' href='http://gilbertadjin.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Multicolumn Pictures Crystal Reports</title>
		<link>http://gilbertadjin.wordpress.com/2011/05/20/multicolumn-pictures-crystal-reports/</link>
		<comments>http://gilbertadjin.wordpress.com/2011/05/20/multicolumn-pictures-crystal-reports/#comments</comments>
		<pubDate>Fri, 20 May 2011 10:32:59 +0000</pubDate>
		<dc:creator>Gilbert</dc:creator>
				<category><![CDATA[.NET Links]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[.net crystal reports with tables as datasource]]></category>
		<category><![CDATA[crystal reports]]></category>
		<category><![CDATA[crystal reports using typed dataset]]></category>
		<category><![CDATA[vb.net]]></category>

		<guid isPermaLink="false">https://gilbertadjin.wordpress.com/2011/05/20/multicolumn-pictures-crystal-reports/</guid>
		<description><![CDATA[Hello guys, its been a while since a posted something on this blog. I was working on this project where an item can have as many pictures as possible, as part of the requirement , a report was to be generated to show the item information and its pictures ( in a multicolumn way). Below [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gilbertadjin.wordpress.com&amp;blog=6863530&amp;post=389&amp;subd=gilbertadjin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello guys, its been a while since a posted something on this blog. I was working on this project where an item can have as many pictures as possible, as part of the requirement , a report was to be generated to show the item information and its pictures ( in a multicolumn way).</p>
<p>Below are the steps to show pictures in crystal reports (Note that the the data type used is image and hence using datasets as the data source for the reports, the picture can easily be dragged onto the report)</p>
<p>1. To start, the picture is dragged to the detail section of the report as shown in the picture below</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <a href="http://gilbertadjin.files.wordpress.com/2011/05/image.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2011/05/image_thumb.png?w=424&#038;h=278" width="424" height="278" /></a></p>
<p>2. Then right click on the “detail section” tab and choose the “section expert” as shown in the picture below</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <a href="http://gilbertadjin.files.wordpress.com/2011/05/image1.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2011/05/image_thumb1.png?w=438&#038;h=211" width="438" height="211" /></a></p>
<p>3. In the dialog box that appear, make sure the “details” section is selected and on the right hand side, on the “common” tab make sure “Format with Multiple columns “ is checked. The move to the “Layout” tab, make the required changes and make sure in the “printing direction” section you select “across” and down.</p>
<p>&#160;&#160;&#160;&#160;&#160; <a href="http://gilbertadjin.files.wordpress.com/2011/05/image2.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2011/05/image_thumb2.png?w=464&#038;h=204" width="464" height="204" /></a></p>
<p>&#160;</p>
<p>4. You are now done, with the reports, run you program and something as shown in the picture below should be shown.</p>
<p>&#160;&#160;&#160;&#160; <a href="http://gilbertadjin.files.wordpress.com/2011/05/image3.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2011/05/image_thumb3.png?w=480&#038;h=174" width="480" height="174" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gilbertadjin.wordpress.com/389/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gilbertadjin.wordpress.com/389/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gilbertadjin.wordpress.com/389/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gilbertadjin.wordpress.com/389/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gilbertadjin.wordpress.com/389/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gilbertadjin.wordpress.com/389/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gilbertadjin.wordpress.com/389/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gilbertadjin.wordpress.com/389/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gilbertadjin.wordpress.com/389/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gilbertadjin.wordpress.com/389/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gilbertadjin.wordpress.com/389/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gilbertadjin.wordpress.com/389/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gilbertadjin.wordpress.com/389/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gilbertadjin.wordpress.com/389/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gilbertadjin.wordpress.com&amp;blog=6863530&amp;post=389&amp;subd=gilbertadjin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gilbertadjin.wordpress.com/2011/05/20/multicolumn-pictures-crystal-reports/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<georss:point>5.555717 -0.196306</georss:point>
		<geo:lat>5.555717</geo:lat>
		<geo:long>-0.196306</geo:long>
		<media:content url="http://1.gravatar.com/avatar/dda317f32634767655bb6e94f3313d19?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gilbertadjin</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2011/05/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2011/05/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2011/05/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2011/05/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>2010 in review</title>
		<link>http://gilbertadjin.wordpress.com/2011/01/03/2010-in-review/</link>
		<comments>http://gilbertadjin.wordpress.com/2011/01/03/2010-in-review/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 10:34:55 +0000</pubDate>
		<dc:creator>Gilbert</dc:creator>
		
		<guid isPermaLink="false">http://gilbertadjin.wordpress.com/?p=373</guid>
		<description><![CDATA[The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here&#8217;s a high level summary of its overall blog health: The Blog-Health-o-Meter&#8482; reads Wow. Crunchy numbers The average container ship can carry about 4,500 containers. This blog was viewed about 23,000 times in 2010. If each view were a shipping [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gilbertadjin.wordpress.com&amp;blog=6863530&amp;post=373&amp;subd=gilbertadjin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[
<p>The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here&#8217;s a high level summary of its overall blog health:</p>
<p align="center"><img style="border:1px solid #ddd;background:#f5f5f5;padding:20px;" src="http://s0.wp.com/i/annual-recap/meter-healthy5.gif" width="250" height="183" alt="Healthy blog!"></p>
<p align="center">The <em>Blog-Health-o-Meter&trade;</em> reads Wow.</p>
<h2>Crunchy numbers</h2>
<p>			<a href="http://gilbertadjin.files.wordpress.com/2009/07/report4.jpg"><img src="http://gilbertadjin.files.wordpress.com/2009/07/report4.jpg?w=288" alt="Featured image" style="max-height:230px;float:right;border:1px solid #ddd;background:#fff;margin:0 0 1em 1em;padding:6px;" /></a></p>
<p>The average container ship can carry about 4,500 containers.  This blog was viewed about <strong>23,000</strong> times in 2010.  If each view were a shipping container, your blog would have filled about 5 fully loaded ships.</p>
<p>
<p>In 2010, there were <strong>6</strong> new posts, growing the total archive of this blog to 37 posts. There were <strong>22</strong> pictures uploaded, taking up a total of 1mb. That&#8217;s about 2 pictures per month.</p>
<p>The busiest day of the year was November 11th with <strong>149</strong> views. The most popular post that day was <a style="color:#08c;" href="http://gilbertadjin.wordpress.com/2009/07/01/inserting-images-from-database-into-jasper-reports/">CREATING JASPER REPORTS WITH DYNAMIC IMAGES</a>.</p>
<p></p>
<h2>Where did they come from?</h2>
<p>The top referring sites in 2010 were <strong>jasperforge.org</strong>, <strong>en.wordpress.com</strong>, <strong>google.co.in</strong>, <strong>google.com</strong>, and <strong>stackoverflow.com</strong>.</p>
<p>Some visitors came searching, mostly for <strong>ireport dynamic image</strong>, <strong>netbeans mdi</strong>, <strong>objects in a jtable</strong>, <strong>+java +netbeans +mdi</strong>, and <strong>jasper report image</strong>.</p>
<div style="clear:both;"></div>
<h2>Attractions in 2010</h2>
<p>These are the posts and pages that got the most views in 2010.</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">1</div>
<p>					<a style="margin-right:10px;" href="http://gilbertadjin.wordpress.com/2009/07/01/inserting-images-from-database-into-jasper-reports/">CREATING JASPER REPORTS WITH DYNAMIC IMAGES</a> <span style="color:#999;font-size:8pt;">July 2009</span><br />18 comments											</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">2</div>
<p>					<a style="margin-right:10px;" href="http://gilbertadjin.wordpress.com/2009/03/14/creating-mdi-applications-in-java-using-netbeans/">Creating MDI Applications in Java Using Netbeans</a> <span style="color:#999;font-size:8pt;">March 2009</span><br />11 comments											</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">3</div>
<p>					<a style="margin-right:10px;" href="http://gilbertadjin.wordpress.com/2009/08/09/charting-with-jasper-reports/">CHARTING WITH JASPER REPORTS</a> <span style="color:#999;font-size:8pt;">August 2009</span><br />7 comments											</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">4</div>
<p>					<a style="margin-right:10px;" href="http://gilbertadjin.wordpress.com/2009/05/05/populating-a-jtable-with-a-collection-list/">Populating a JTable with a Collection (List)</a> <span style="color:#999;font-size:8pt;">May 2009</span><br />11 comments											</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">5</div>
<p>					<a style="margin-right:10px;" href="http://gilbertadjin.wordpress.com/2009/11/22/tablemodel-as-datasource-in-jasper-reports/">TABLEMODEL AS DATASOURCE IN JASPER REPORTS</a> <span style="color:#999;font-size:8pt;">November 2009</span><br />13 comments											</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gilbertadjin.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gilbertadjin.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gilbertadjin.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gilbertadjin.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gilbertadjin.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gilbertadjin.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gilbertadjin.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gilbertadjin.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gilbertadjin.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gilbertadjin.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gilbertadjin.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gilbertadjin.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gilbertadjin.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gilbertadjin.wordpress.com/373/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gilbertadjin.wordpress.com&amp;blog=6863530&amp;post=373&amp;subd=gilbertadjin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gilbertadjin.wordpress.com/2011/01/03/2010-in-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>5.555717 -0.196306</georss:point>
		<geo:lat>5.555717</geo:lat>
		<geo:long>-0.196306</geo:long>
		<media:content url="http://1.gravatar.com/avatar/dda317f32634767655bb6e94f3313d19?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gilbertadjin</media:title>
		</media:content>

		<media:content url="http://s0.wp.com/i/annual-recap/meter-healthy5.gif" medium="image">
			<media:title type="html">Healthy blog!</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2009/07/report4.jpg?w=288" medium="image">
			<media:title type="html">Featured image</media:title>
		</media:content>
	</item>
		<item>
		<title>CREATING PARAMETERIZED REPORTS WITH REPORTING SERVICES</title>
		<link>http://gilbertadjin.wordpress.com/2010/09/20/creating-parameterized-reports-with-reporting-services/</link>
		<comments>http://gilbertadjin.wordpress.com/2010/09/20/creating-parameterized-reports-with-reporting-services/#comments</comments>
		<pubDate>Mon, 20 Sep 2010 07:46:21 +0000</pubDate>
		<dc:creator>Gilbert</dc:creator>
				<category><![CDATA[.NET Links]]></category>

		<guid isPermaLink="false">https://gilbertadjin.wordpress.com/2010/09/20/creating-parameterized-reports-with-reporting-services/</guid>
		<description><![CDATA[In our previous post (http://gilbertadjin.wordpress.com/2010/07/05/reporting-with-reporting-services/) we went through how to create&#160; reports with reporting services. In instances where you want to insert some records onto the reports which are not part of the data source, for example, inserting dates into your report title, you need to create parameters. It is assumed you can create reports [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gilbertadjin.wordpress.com&amp;blog=6863530&amp;post=370&amp;subd=gilbertadjin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In our previous post (<a title="http://gilbertadjin.wordpress.com/2010/07/05/reporting-with-reporting-services/" href="http://gilbertadjin.wordpress.com/2010/07/05/reporting-with-reporting-services/">http://gilbertadjin.wordpress.com/2010/07/05/reporting-with-reporting-services/</a>) we went through how to create&#160; reports with reporting services. In instances where you want to insert some records onto the reports which are not part of the data source, for example, inserting dates into your report title, you need to create parameters. It is assumed you can create reports with reporting services.</p>
<p>In this post we will be adding two parameters “name” and “title” to our reports. After creating the report, in the report data pane (if not shown, go to the menu bar, click on “View” then “Report Data” to show the pane</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2010/09/image.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2010/09/image_thumb.png?w=389&#038;h=168" width="389" height="168" /></a> </p>
<p>Below is the look of the report data pane</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2010/09/image1.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2010/09/image_thumb1.png?w=117&#038;h=226" width="117" height="226" /></a> </p>
<p>In the Report Data pane, right click on the “parameters” node and click on add parameter. A dialog box shown below is presented. Enter the name of your parameter and choose the data type.</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2010/09/image2.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2010/09/image_thumb2.png?w=244&#038;h=202" width="244" height="202" /></a> </p>
<p>On the design you are done. Go to you where the report data will be supplied in your code. Make sure to import <strong><em><font size="4">(“Imports Microsoft.Reporting.WinForms“)</font></em></strong></p>
<p>For example we have a procedure which accepts parameters including a collection of parameters</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#039;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#0000ff;">Public</span> <span style="color:#0000ff;">Sub</span> fillReport(<span style="color:#0000ff;">ByVal</span> dataset <span style="color:#0000ff;">As</span> <span style="color:#0000ff;">String</span>, <span style="color:#0000ff;">ByVal</span> reportname <span style="color:#0000ff;">As</span> <span style="color:#0000ff;">String</span>, <span style="color:#0000ff;">ByVal</span> loadData <span style="color:#0000ff;">As</span> DataTable, <span style="color:#0000ff;">ByVal</span> parameters <span style="color:#0000ff;">As</span> ReportParameterCollection)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span>        <span style="color:#0000ff;">Me</span>.ReportViewer1.ProcessingMode = ProcessingMode.Local</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span>        <span style="color:#0000ff;">Me</span>.ReportViewer1.LocalReport.ReportPath = Application.StartupPath + <span style="color:#006080;">&quot;/&quot;</span> + reportname + <span style="color:#006080;">&quot;.rdlc&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span>        <span style="color:#0000ff;">Me</span>.ReportViewer1.LocalReport.DataSources.Add(<span style="color:#0000ff;">New</span> ReportDataSource(dataset, loadData))</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span>        <span style="color:#0000ff;">Me</span>.ReportViewer1.LocalReport.SetParameters(parameters)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum6">   6:</span>        <span style="color:#0000ff;">Me</span>.ReportViewer1.RefreshReport()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum7">   7:</span>    <span style="color:#0000ff;">End</span> Sub</pre>
<p><!--CRLF--></div>
</div>
<p>we then give values to our parameters then we call our method above which will complete the job</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#039;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> title = <span style="color:#006080;">&quot; Report on Sales made between &quot;</span> &amp; <span style="color:#0000ff;">Me</span>.dtpStart.Value.ToShortDateString &amp; <span style="color:#006080;">&quot; and &quot;</span> &amp; <span style="color:#0000ff;">Me</span>.dtpEnd.Value.ToShortDateString</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span> <span style="color:#0000ff;">Dim</span> name <span style="color:#0000ff;">As</span> <span style="color:#0000ff;">String</span> = <span style="color:#006080;">&quot; Just trying&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span> <span style="color:#0000ff;">Dim</span> parameters <span style="color:#0000ff;">As</span> <span style="color:#0000ff;">New</span> ReportParameterCollection()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span> parameters.Add(<span style="color:#0000ff;">New</span> ReportParameter(<span style="color:#006080;">&quot;title&quot;</span>, title))</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span> parameters.Add(<span style="color:#0000ff;">New</span> ReportParameter(<span style="color:#006080;">&quot;name&quot;</span>, name))</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum6">   6:</span> fillReport(<span style="color:#006080;">&quot;DataSet1&quot;</span>, <span style="color:#006080;">&quot;salesReports&quot;</span>, <span style="color:#0000ff;">Me</span>.FarmershopeDataSet.SalesReports, parameters)</pre>
<p><!--CRLF--></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gilbertadjin.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gilbertadjin.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gilbertadjin.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gilbertadjin.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gilbertadjin.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gilbertadjin.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gilbertadjin.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gilbertadjin.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gilbertadjin.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gilbertadjin.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gilbertadjin.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gilbertadjin.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gilbertadjin.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gilbertadjin.wordpress.com/370/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gilbertadjin.wordpress.com&amp;blog=6863530&amp;post=370&amp;subd=gilbertadjin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gilbertadjin.wordpress.com/2010/09/20/creating-parameterized-reports-with-reporting-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>5.555717 -0.196306</georss:point>
		<geo:lat>5.555717</geo:lat>
		<geo:long>-0.196306</geo:long>
		<media:content url="http://1.gravatar.com/avatar/dda317f32634767655bb6e94f3313d19?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gilbertadjin</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2010/09/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2010/09/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2010/09/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>REPORTING WITH REPORTING SERVICES</title>
		<link>http://gilbertadjin.wordpress.com/2010/07/05/reporting-with-reporting-services/</link>
		<comments>http://gilbertadjin.wordpress.com/2010/07/05/reporting-with-reporting-services/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 07:27:54 +0000</pubDate>
		<dc:creator>Gilbert</dc:creator>
				<category><![CDATA[.NET Links]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[parameterized reporting]]></category>
		<category><![CDATA[report viewer]]></category>
		<category><![CDATA[reporting services]]></category>
		<category><![CDATA[SQL server]]></category>
		<category><![CDATA[sql server reporting services]]></category>
		<category><![CDATA[visual studio 2010]]></category>
		<category><![CDATA[VS 2005]]></category>

		<guid isPermaLink="false">https://gilbertadjin.wordpress.com/2010/07/05/reporting-with-reporting-services/</guid>
		<description><![CDATA[Oh ok, so i don’t even need to worry downloading crystal reports for my Visual Studio 2010. Reporting services has been there for a while but did not bother to consider because I have been comfortable with crystal reports, but working on my first project with VS 2010 I had to, because was not seeing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gilbertadjin.wordpress.com&amp;blog=6863530&amp;post=357&amp;subd=gilbertadjin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Oh ok, so i don’t even need to worry downloading crystal reports for my Visual Studio 2010. Reporting services has been there for a while but did not bother to consider because I have been comfortable with crystal reports, but working on my first project with VS 2010 I had to, because was not seeing crystal reports and had to go through some processes to integrate. So i decided to give Reporting services a try and guys it is very cooooool. Are you a beginner in Reporting Services in Visual Studio, then this will offer you a great help.</p>
<p>Lets go through how to create a report using reporting services and dataset as the data source.</p>
<p>It is assumed you are working with a project with a dataset.</p>
<p>1. Right click to add a new item to your project. On the Reporting tab, choose “Report Wizard” and enter the name of your report in the “name” field provided at the bottom of the “add new item” dialog box. Click on the “Add’ button to proceed.</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2010/07/image.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2010/07/image_thumb.png?w=361&#038;h=196" width="361" height="196" /></a> </p>
<p>2. In this stage , you choose the data source of your report. You start by entering the name of your Dataset. Take note of the name you enter as you will use it in your code. Select the data source ( the dataset of your project) and then select the table you want to display in your report. Click next to go to the next stage.</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2010/07/image1.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2010/07/image_thumb1.png?w=366&#038;h=193" width="366" height="193" /></a> </p>
<p>3.Here, you choose the fields to display on your reports and how to group your records, either by rows or columns. Drag the fields you want to display in the “Values” area. In case you want group your records by rows or columns, drag that field to the “row groups” or “column groups “ respectively. Functions like sum,average, etc can be applied to&#160; fields in the “values’ area. Click next to go the next tab</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2010/07/image2.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2010/07/image_thumb2.png?w=367&#038;h=195" width="367" height="195" /></a>&#160;</p>
<p>4. In this stage you choose the layout of your report. Select your layout and click on the next button.</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2010/07/image3.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2010/07/image_thumb3.png?w=371&#038;h=202" width="371" height="202" /></a> </p>
<p>5. Select your report style and click on the finish button.</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2010/07/image4.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2010/07/image_thumb4.png?w=381&#038;h=180" width="381" height="180" /></a> </p>
<p>&#160;</p>
<p>Your report is then displayed with the selected fields. You can then drag the table to a position of your choice on the report form. You can also insert text and image onto your report as it is done in crystal report.</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2010/07/image5.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2010/07/image_thumb5.png?w=387&#038;h=154" width="387" height="154" /></a> </p>
<p>After creating the reports you then have to integrate it into your forms. First you need to add a report viewer. You do this by creating a new form and dragging the report viewer onto it as shown below.</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2010/07/image6.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2010/07/image_thumb6.png?w=392&#038;h=189" width="392" height="189" /></a> </p>
<p>After this, you write some small codes to view your report.&#160; First you have to make sure the data table is filled programmatically. Let say at form load event we want to display the report. We start by declaring a procedure that can that accepts the dataset name, report name and the datasource.</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#039;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">void</span> fillReport(String dataset, String reportname, DataTable loadData)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span>        {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span>            <span style="color:#0000ff;">this</span>.reportViewer1.ProcessingMode = ProcessingMode.Local;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span>            <span style="color:#008000;">//choosing the report source</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span>            <span style="color:#0000ff;">this</span>.reportViewer1.LocalReport.ReportPath = Application.StartupPath + <span style="color:#006080;">&quot;/&quot;</span> + reportname + <span style="color:#006080;">&quot;.rdlc&quot;</span>;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum6">   6:</span>            <span style="color:#008000;">//add the datasource to the report</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum7">   7:</span>            <span style="color:#0000ff;">this</span>.reportViewer1.LocalReport.DataSources.Add(<span style="color:#0000ff;">new</span> ReportDataSource(dataset, loadData));</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum8">   8:</span>            <span style="color:#0000ff;">this</span>.reportViewer1.RefreshReport();</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum9">   9:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum10">  10:</span>        }</pre>
<p><!--CRLF--></div>
</div>
</p>
</p>
</p>
</p>
<p>so on form load we fill the data table and call the method above to fill the show the report.</p>
<p>“fillReport(&quot;DataSet1&quot;, &quot;purchaseSearch&quot;, this.dataSet1.land”</p>
<p>Note that the dataset name should be the same as shown in the created report.</p>
<p>Enjoy…
  </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gilbertadjin.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gilbertadjin.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gilbertadjin.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gilbertadjin.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gilbertadjin.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gilbertadjin.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gilbertadjin.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gilbertadjin.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gilbertadjin.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gilbertadjin.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gilbertadjin.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gilbertadjin.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gilbertadjin.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gilbertadjin.wordpress.com/357/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gilbertadjin.wordpress.com&amp;blog=6863530&amp;post=357&amp;subd=gilbertadjin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gilbertadjin.wordpress.com/2010/07/05/reporting-with-reporting-services/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dda317f32634767655bb6e94f3313d19?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gilbertadjin</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2010/07/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2010/07/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2010/07/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2010/07/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2010/07/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2010/07/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2010/07/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>STORED PROCEDURE PROGRAMMING IN JAVA USING MYSQL</title>
		<link>http://gilbertadjin.wordpress.com/2010/04/23/stored-procedure-programming-in-java-using-mysql/</link>
		<comments>http://gilbertadjin.wordpress.com/2010/04/23/stored-procedure-programming-in-java-using-mysql/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 06:17:21 +0000</pubDate>
		<dc:creator>Gilbert</dc:creator>
				<category><![CDATA[Java Links]]></category>
		<category><![CDATA[access mysql database in java]]></category>
		<category><![CDATA[JAVA]]></category>
		<category><![CDATA[java stored procedure programming]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[NETBEANS]]></category>
		<category><![CDATA[stored procedures in java]]></category>
		<category><![CDATA[stored procedures in mysql]]></category>

		<guid isPermaLink="false">http://gilbertadjin.wordpress.com/2010/04/23/stored-procedure-programming-in-java-using-mysql/</guid>
		<description><![CDATA[Some of the benefits of stored procedure programming are faster execution of sql statements and also preventing sql injection. So whenever the application logic of your application is data centric, it is better to use stored procedure. To access mysql stored procedure in your java application, you first create the stored procedure in mysql. Below [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gilbertadjin.wordpress.com&amp;blog=6863530&amp;post=337&amp;subd=gilbertadjin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Some of the benefits of stored procedure programming are faster execution of sql statements and also preventing sql injection. So whenever the application logic of your application is data centric, it is better to use stored procedure.</p>
<p>To access mysql stored procedure in your java application, you first create the stored procedure in mysql. Below is a sample created stored procedure in mysql.</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:105.05%;font-family:&#39;direction:ltr;height:223px;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:94.4%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;height:378px;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> DELIMITER $$</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span> <span style="color:#0000ff;">DROP</span> <span style="color:#0000ff;">PROCEDURE</span> <span style="color:#0000ff;">IF</span> <span style="color:#0000ff;">EXISTS</span> `test`.`cdinsert`$$</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span> <span style="color:#0000ff;">CREATE</span> DEFINER=`root`@`localhost` <span style="color:#0000ff;">PROCEDURE</span> `cdinsert`(cID <span style="color:#0000ff;">varchar</span>(15), tdate <span style="color:#0000ff;">varchar</span>(15),cdNo <span style="color:#0000ff;">int</span>)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span> <span style="color:#0000ff;">BEGIN</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span>  <span style="color:#0000ff;">if</span> <span style="color:#0000ff;">exists</span>(<span style="color:#0000ff;">select</span> ID <span style="color:#0000ff;">from</span> cddetail <span style="color:#0000ff;">where</span> cdID=cID) <span style="color:#0000ff;">then</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum6">   6:</span>   <span style="color:#0000ff;">update</span> cddetail <span style="color:#0000ff;">set</span> transdate=tdate,cdNum=cdNo <span style="color:#0000ff;">where</span> cdID=cID;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum7">   7:</span>  <span style="color:#0000ff;">else</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum8">   8:</span>   insert <span style="color:#0000ff;">into</span> cddetail(cdID,transdate,cdNum) <span style="color:#0000ff;">values</span> (cID,tdate,cNo);</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum9">   9:</span>  <span style="color:#0000ff;">end</span> <span style="color:#0000ff;">if</span>;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum10">  10:</span> <span style="color:#0000ff;">END</span>$$</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum11">  11:</span> DELIMITER ;</pre>
<p><!--CRLF--></p>
</p></div>
</div>
<p>You then create your java application&#160; to access the stored procedure as shown below</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:106.28%;font-family:&#39;direction:ltr;height:229px;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:91.64%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;height:1497px;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#0000ff;">import</span> java.sql.*;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">class</span> storproc {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span>     Connection conn = null;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span>     Statement stm = null;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum6">   6:</span>     <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">final</span> String url = <span style="color:#006080;">&quot;jdbc:mysql://localhost/test&quot;</span>;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum7">   7:</span>     <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">final</span> String user = <span style="color:#006080;">&quot;root&quot;</span>;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum8">   8:</span>     <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">final</span> String pswd = <span style="color:#006080;">&quot;password&quot;</span>;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum9">   9:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum10">  10:</span>     <span style="color:#008000;">//connecting to the mysql database</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum11">  11:</span>     <span style="color:#0000ff;">public</span> Connection getConnection() {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum12">  12:</span>         <span style="color:#0000ff;">try</span> {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum13">  13:</span>             conn = DriverManager.getConnection(url, user, pswd);</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum14">  14:</span>         } <span style="color:#0000ff;">catch</span> (Exception ex) {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum15">  15:</span>             System.out.println(<span style="color:#006080;">&quot;error occured &quot;</span> + ex.toString());</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum16">  16:</span>         }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum17">  17:</span>         <span style="color:#0000ff;">return</span> conn;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum18">  18:</span>     }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum19">  19:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum20">  20:</span>     <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">void</span> insertNew(String line) {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum21">  21:</span>         <span style="color:#0000ff;">try</span> {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum22">  22:</span>             String input[] = line.split(<span style="color:#006080;">&quot;,&quot;</span>);</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum23">  23:</span>             <span style="color:#008000;">//calling the created storedprocedure </span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum24">  24:</span>             <span style="color:#008000;">//and passing the required parameters</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum25">  25:</span>             CallableStatement cs = <span style="color:#0000ff;">this</span>.getConnection().</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum26">  26:</span>             prepareCall(<span style="color:#006080;">&quot;{call insertnew(?,?,?)}&quot;</span>);</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum27">  27:</span>             </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum28">  28:</span>             cs.setString(1, input[0]);</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum29">  29:</span>             cs.setString(2, input[1]);</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum30">  30:</span>             cs.setInt(3, Integer.parseInt(input[2]));</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum31">  31:</span>             cs.execute();</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum32">  32:</span>         } <span style="color:#0000ff;">catch</span> (Exception e) {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum33">  33:</span>             System.out.println(<span style="color:#006080;">&quot;errr  &quot;</span> + e.toString());</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum34">  34:</span>         } <span style="color:#0000ff;">finally</span> {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum35">  35:</span>             <span style="color:#0000ff;">try</span> {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum36">  36:</span>                 conn.close();</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum37">  37:</span>             } <span style="color:#0000ff;">catch</span> (SQLException ex) {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum38">  38:</span>                 System.out.println(<span style="color:#006080;">&quot;error occured &quot;</span> + ex.toString());</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum39">  39:</span>             }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum40">  40:</span>         }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum41">  41:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum42">  42:</span>     }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum43">  43:</span> }</pre>
<p><!--CRLF--></p>
</p></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gilbertadjin.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gilbertadjin.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gilbertadjin.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gilbertadjin.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gilbertadjin.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gilbertadjin.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gilbertadjin.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gilbertadjin.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gilbertadjin.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gilbertadjin.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gilbertadjin.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gilbertadjin.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gilbertadjin.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gilbertadjin.wordpress.com/337/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gilbertadjin.wordpress.com&amp;blog=6863530&amp;post=337&amp;subd=gilbertadjin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gilbertadjin.wordpress.com/2010/04/23/stored-procedure-programming-in-java-using-mysql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dda317f32634767655bb6e94f3313d19?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gilbertadjin</media:title>
		</media:content>
	</item>
		<item>
		<title>BIRTHDAY PROMPT PROGRAM DESIGN</title>
		<link>http://gilbertadjin.wordpress.com/2010/03/25/birthday-prompt-program-design/</link>
		<comments>http://gilbertadjin.wordpress.com/2010/03/25/birthday-prompt-program-design/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 14:15:00 +0000</pubDate>
		<dc:creator>Gilbert</dc:creator>
				<category><![CDATA[Software Design]]></category>
		<category><![CDATA[birthday prompt design]]></category>
		<category><![CDATA[dayofyear]]></category>
		<category><![CDATA[how to program birthday alert]]></category>
		<category><![CDATA[mssql server 2000]]></category>
		<category><![CDATA[mssql server date function]]></category>
		<category><![CDATA[mysql date functions]]></category>
		<category><![CDATA[mysql query for birthday]]></category>
		<category><![CDATA[mysql query for birthday prompt]]></category>
		<category><![CDATA[mysql server]]></category>
		<category><![CDATA[sql birthday alert]]></category>
		<category><![CDATA[sql query for birthday]]></category>

		<guid isPermaLink="false">http://gilbertadjin.wordpress.com/2010/03/26/birthday-prompt-program-design/</guid>
		<description><![CDATA[Have been trying to write a simple SQL statement that can select a list of people from a table based on their birthdates. Thus if you are within some set days to your birthday you will be among the list selected. I realized that, to get the query right, i had to test for some [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gilbertadjin.wordpress.com&amp;blog=6863530&amp;post=332&amp;subd=gilbertadjin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Have been trying to write a simple SQL statement that can select a list of people from a table based on their birthdates. Thus if you are within some set days to your birthday you will be among the list selected.</p>
<p>I realized that, to get the query right, i had to test for some conditions, which means writing a function or a stored procedure.</p>
<p>I opted for the function and below are the queries written in both Microsoft SQL Server and MySql</p>
<p>This is the design, to check if&#160; someone’s birthday let say 31-12-1990 is within a set range say 7 ( thus it is seven or less days to his or her birthday), these are the steps taken</p>
<p>1. We bring the birth date year to the current year, so we get 31-12-2010.</p>
<p>2. We then compare if the current birth date is greater than the current date</p>
<p>3. If it is greater we find the difference&#160; in days between the two dates (birthdate-currentdate) and find out if the difference is between the set range</p>
<p>4. If current date is greater than birth date ( which means the guys birthdate is in the next year) we change the birth date year to the next year and find the difference as done in step 3. For example if the guy’s birthday is 2nd Jan and the current date is 30 Dec and the set days is 7, the guy should be in the list selected, so this condition takes care of this. </p>
<p>Below are the sql queries enjoy.</p>
<p>IN MSSQL</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:106.22%;font-family:&#39;direction:ltr;height:210px;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#0000ff;">CREATE</span> <span style="color:#0000ff;">FUNCTION</span> dbo.getDaysPrompt (@bdate datetime, @curDate datetime)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span> <span style="color:#0000ff;">RETURNS</span> <span style="color:#0000ff;">int</span> <span style="color:#0000ff;">AS</span>  </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span> <span style="color:#0000ff;">BEGIN</span> </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span> <span style="color:#0000ff;">declare</span> @mDate <span style="color:#0000ff;">as</span> datetime</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum6">   6:</span> <span style="color:#0000ff;">declare</span> @days <span style="color:#0000ff;">as</span> <span style="color:#0000ff;">int</span> </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum7">   7:</span> <span style="color:#0000ff;">select</span> @mDate=dateadd(<span style="color:#0000ff;">year</span>,datediff(<span style="color:#0000ff;">year</span>,@bdate,@curDate),@bdate)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum8">   8:</span> <span style="color:#0000ff;">if</span> @curDate&gt; @mdate</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum9">   9:</span>  <span style="color:#0000ff;">select</span> @days=datediff(<span style="color:#0000ff;">day</span>,@curDate,dateadd(<span style="color:#0000ff;">year</span>,1,@mDate))</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum10">  10:</span> <span style="color:#0000ff;">else</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum11">  11:</span>  <span style="color:#0000ff;">select</span> @days=datediff(<span style="color:#0000ff;">day</span>,@curDate,@mDate)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum12">  12:</span> <span style="color:#0000ff;">return</span> @days</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum13">  13:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum14">  14:</span> <span style="color:#0000ff;">END</span></pre>
<p><!--CRLF--></div>
</div>
<p>IN MYSQL</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:109.44%;font-family:&#39;direction:ltr;height:231px;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> DELIMITER $$</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span> <span style="color:#0000ff;">DROP</span> <span style="color:#0000ff;">FUNCTION</span> <span style="color:#0000ff;">IF</span> <span style="color:#0000ff;">EXISTS</span> `dboffman`.`bdayPrompt`$$</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span> <span style="color:#0000ff;">CREATE</span> DEFINER=`root`@`localhost` <span style="color:#0000ff;">FUNCTION</span> `bdayPrompt`(bdate <span style="color:#0000ff;">date</span>,cDate <span style="color:#0000ff;">date</span>) <span style="color:#0000ff;">RETURNS</span> <span style="color:#0000ff;">int</span>(11)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span> <span style="color:#0000ff;">BEGIN</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span>  <span style="color:#0000ff;">declare</span> mDate  <span style="color:#0000ff;">date</span>;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum6">   6:</span>  <span style="color:#0000ff;">declare</span> days  <span style="color:#0000ff;">int</span> <span style="color:#0000ff;">default</span> 0;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum7">   7:</span>  <span style="color:#0000ff;">set</span> mDate=makedate(<span style="color:#0000ff;">year</span>(cdate),dayofyear(bdate));</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum8">   8:</span>  <span style="color:#0000ff;">if</span> cDate &gt; mdate <span style="color:#0000ff;">then</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum9">   9:</span>  <span style="color:#0000ff;">set</span> days=datediff(date_add(mDate, <span style="color:#0000ff;">interval</span> 1 <span style="color:#0000ff;">year</span>),cDate);</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum10">  10:</span>  <span style="color:#0000ff;">else</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum11">  11:</span>  <span style="color:#0000ff;">set</span> days=datediff(mDate,cDate);</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum12">  12:</span>  <span style="color:#0000ff;">end</span> <span style="color:#0000ff;">if</span>;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum13">  13:</span>  <span style="color:#0000ff;">return</span> days;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum14">  14:</span>  <span style="color:#0000ff;">END</span>$$</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum15">  15:</span> DELIMITER ;</pre>
<p><!--CRLF--></div>
</div>
<p>With this function we can then write our sql query for example</p>
<p>Select * from students where bdaypromt(birthday, curDate)&gt;=0 and bdaypromt(birthday, curDate)&lt;=@setdays</p>
<p>Enjoy !!!!!!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gilbertadjin.wordpress.com/332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gilbertadjin.wordpress.com/332/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gilbertadjin.wordpress.com/332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gilbertadjin.wordpress.com/332/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gilbertadjin.wordpress.com/332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gilbertadjin.wordpress.com/332/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gilbertadjin.wordpress.com/332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gilbertadjin.wordpress.com/332/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gilbertadjin.wordpress.com/332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gilbertadjin.wordpress.com/332/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gilbertadjin.wordpress.com/332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gilbertadjin.wordpress.com/332/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gilbertadjin.wordpress.com/332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gilbertadjin.wordpress.com/332/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gilbertadjin.wordpress.com&amp;blog=6863530&amp;post=332&amp;subd=gilbertadjin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gilbertadjin.wordpress.com/2010/03/25/birthday-prompt-program-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dda317f32634767655bb6e94f3313d19?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gilbertadjin</media:title>
		</media:content>
	</item>
		<item>
		<title>CREATING SIMPLE HELP FILES IN JAVA</title>
		<link>http://gilbertadjin.wordpress.com/2010/02/26/creating-simple-help-files-in-java/</link>
		<comments>http://gilbertadjin.wordpress.com/2010/02/26/creating-simple-help-files-in-java/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 04:28:15 +0000</pubDate>
		<dc:creator>Gilbert</dc:creator>
				<category><![CDATA[Java Links]]></category>
		<category><![CDATA[creating help in swing]]></category>
		<category><![CDATA[creating help without JavaHelp]]></category>
		<category><![CDATA[help files in java]]></category>
		<category><![CDATA[J2SE]]></category>
		<category><![CDATA[JAVA]]></category>
		<category><![CDATA[JEditorPane]]></category>
		<category><![CDATA[jpanel]]></category>
		<category><![CDATA[swing]]></category>

		<guid isPermaLink="false">http://gilbertadjin.wordpress.com/2010/02/26/creating-simple-help-files-in-java/</guid>
		<description><![CDATA[In this post, we are to discuss how to create help for your swing application using swing components. The idea is to create text file for each help file, the content can be formatted with html, then on click of a button you display a particular file in a panel. To make the panel (help [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gilbertadjin.wordpress.com&amp;blog=6863530&amp;post=329&amp;subd=gilbertadjin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this post, we are to discuss how to create help for your swing application using swing components. The idea is to create text file for each help file, the content can be formatted with html, then on click of a button you display a particular file in a panel. To make the panel (help page) stay on top of other opened windows of your application we can choose to display it as a dialog.check <a href="http://gilbertadjin.wordpress.com/2009/10/21/form-showdialog-in-java/">http://gilbertadjin.wordpress.com/2009/10/21/form-showdialog-in-java/</a> how to show a panel as dialog.</p>
<p>To start with we create a class that will load a help file from a source(which you have save it in the settings of your application) by passing the file name without the extension….below is the class</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#39;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#0000ff;">import</span> java.io.File;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span> <span style="color:#0000ff;">import</span> java.util.logging.Level;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span> <span style="color:#0000ff;">import</span> java.util.logging.Logger;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span> <span style="color:#0000ff;">import</span> javax.swing.JOptionPane;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span> <span style="color:#0000ff;">import</span> org.apache.commons.io.FileUtils;<span style="color:#008000;">//download org.apache.commons.io.FileUtils</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum6">   6:</span> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">class</span> helpFile {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum7">   7:</span>     <span style="color:#0000ff;">private</span> String helpContent = null;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum8">   8:</span>     <span style="color:#0000ff;">public</span> helpFile(String filename) {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum9">   9:</span>        <span style="color:#0000ff;">try</span> {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum10">  10:</span>             <span style="color:#008000;">//loading the help file from  a location stored in your settings</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum11">  11:</span>             File file=<span style="color:#0000ff;">new</span> File(Settings.loadProperties().getProperty(<span style="color:#006080;">&quot;xp.helpsource&quot;</span>) +<span style="color:#006080;">&quot;/&quot;</span>+ filename +<span style="color:#006080;">&quot;.txt&quot;</span>);</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum12">  12:</span>                         <span style="color:#0000ff;">if</span> (file.exists()) {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum13">  13:</span>                 helpContent = FileUtils.readFileToString(file);</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum14">  14:</span>             } <span style="color:#0000ff;">else</span> {  </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum15">  15:</span>                 JOptionPane.showMessageDialog(null, <span style="color:#006080;">&quot;File Does not Exist \n&quot;</span> + file.getPath() + <span style="color:#006080;">&quot;\n&quot;</span> + file.toString());</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum16">  16:</span>             }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum17">  17:</span>         } <span style="color:#0000ff;">catch</span> (Exception ex) {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum18">  18:</span>             Logger.getLogger(helpFile.<span style="color:#0000ff;">class</span>.getName()).log(Level.SEVERE, null, ex);</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum19">  19:</span>         }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum20">  20:</span>     }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum21">  21:</span>     @Override</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum22">  22:</span>     <span style="color:#0000ff;">public</span> String toString() {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum23">  23:</span>         <span style="color:#0000ff;">return</span> helpContent;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum24">  24:</span>     }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum25">  25:</span> }</pre>
<p><!--CRLF--></div>
</div>
<p>Then we create a panel and name it “helpdetailPanel”. We then add a JEditorPane to the Panel and then add the constructor below to the panel class</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#39;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#0000ff;">public</span> helpdetailpanel(String text) {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span>         initComponents();</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span>         <span style="color:#0000ff;">this</span>.editor.setContentType(<span style="color:#006080;">&quot;text/html&quot;</span>);</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span>         <span style="color:#0000ff;">this</span>.editor.setText(text);    </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span>     }</pre>
<p><!--CRLF--></div>
</div>
<p>Then in the application,on click of a button we add the code below to show a help based on the name (help file name) we pass to the “helpfile” class. Below shows the code to show the panel with the help content</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#39;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#008000;">//helpfile is the class to load the help file from its source</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span>    helpdetailpanel hd = <span style="color:#0000ff;">new</span> helpdetailpanel(<span style="color:#0000ff;">new</span> helpFile(<span style="color:#006080;">&quot;customers&quot;</span>).toString());</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span>    hd.setSize(700, 700);</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span>    popupsjdialog d = <span style="color:#0000ff;">new</span> popupsjdialog(null, hd, true);</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span>    d.setVisible(true);</pre>
<p><!--CRLF--></div>
</div>
<p>In the code above, “customers” is the name of a help file with a content below.</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#39;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#0000ff;">&lt;!</span><span style="color:#800000;">DOCTYPE</span> <span style="color:#ff0000;">html</span> <span style="color:#ff0000;">PUBLIC</span> <span style="color:#0000ff;">&quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;</span><span style="color:#0000ff;">&gt;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span> <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">html</span><span style="color:#0000ff;">&gt;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span> <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">head</span><span style="color:#0000ff;">&gt;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span> &quot; &quot;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span> <span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">head</span><span style="color:#0000ff;">&gt;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum6">   6:</span> <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">body</span><span style="color:#0000ff;">&gt;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum7">   7:</span> <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">span</span> <span style="color:#ff0000;">style</span><span style="color:#0000ff;">=&quot;&quot;</span> <span style="color:#ff0000;">bold</span><span style="color:#0000ff;">=&quot;&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum8">   8:</span>  <span style="color:#ff0000;">text-decoration</span><span style="color:#0000ff;">=&quot;&quot;</span> <span style="color:#ff0000;">underline</span><span style="color:#0000ff;">=&quot;&quot;</span><span style="color:#0000ff;">&gt;</span><span style="color:#ff0000;">&amp;nbsp;</span><span style="color:#0000ff;">&lt;</span><span style="color:#800000;">span</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum9">   9:</span>  <span style="color:#ff0000;">style</span><span style="color:#0000ff;">=&quot;font-weight: bold; text-decoration: underline;&quot;</span><span style="color:#0000ff;">&gt;</span>CUSTOMER</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum10">  10:</span> INFORMATION<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">span</span><span style="color:#0000ff;">&gt;</span> <span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">span</span><span style="color:#0000ff;">&gt;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum11">  11:</span> <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">br</span><span style="color:#0000ff;">&gt;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum12">  12:</span> <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">br</span><span style="color:#0000ff;">&gt;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum13">  13:</span> 1. To <span style="color:#ff0000;">&amp;nbsp;</span>add a new Customer click on the add new button. Enter <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">br</span><span style="color:#0000ff;">&gt;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum14">  14:</span> <span style="color:#ff0000;">&amp;nbsp;</span> <span style="color:#ff0000;">&amp;nbsp;</span> <span style="color:#ff0000;">&amp;nbsp;</span>the required information and click on</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum15">  15:</span> Save<span style="color:#0000ff;">&lt;</span><span style="color:#800000;">br</span><span style="color:#0000ff;">&gt;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum16">  16:</span> <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">br</span><span style="color:#0000ff;">&gt;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum17">  17:</span> 2. To Edit a Customer select it from the table view, make the changes</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum18">  18:</span> required and click on Save<span style="color:#0000ff;">&lt;</span><span style="color:#800000;">br</span><span style="color:#0000ff;">&gt;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum19">  19:</span> <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">br</span><span style="color:#0000ff;">&gt;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum20">  20:</span> 3. To delete a Customer, select it from the table view, and click on</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum21">  21:</span> the delete button<span style="color:#0000ff;">&lt;</span><span style="color:#800000;">br</span><span style="color:#0000ff;">&gt;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum22">  22:</span> <span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">body</span><span style="color:#0000ff;">&gt;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum23">  23:</span> <span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">html</span><span style="color:#0000ff;">&gt;</span></pre>
<p><!--CRLF--></div>
</div>
<p>The picture below shows how the help content that is displayed at runtime on click of a help button in the Customers Panel.</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2010/02/image.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2010/02/image_thumb.png?w=425&#038;h=230" width="425" height="230" /></a> </p>
<p>Cheers&#160; !!!!!!!!!!!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gilbertadjin.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gilbertadjin.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gilbertadjin.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gilbertadjin.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gilbertadjin.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gilbertadjin.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gilbertadjin.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gilbertadjin.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gilbertadjin.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gilbertadjin.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gilbertadjin.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gilbertadjin.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gilbertadjin.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gilbertadjin.wordpress.com/329/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gilbertadjin.wordpress.com&amp;blog=6863530&amp;post=329&amp;subd=gilbertadjin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gilbertadjin.wordpress.com/2010/02/26/creating-simple-help-files-in-java/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dda317f32634767655bb6e94f3313d19?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gilbertadjin</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2010/02/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>PROMPTING EXPIRY DATES OF PRODUCTS</title>
		<link>http://gilbertadjin.wordpress.com/2010/02/16/prompting-expiry-dates-of-products/</link>
		<comments>http://gilbertadjin.wordpress.com/2010/02/16/prompting-expiry-dates-of-products/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 17:01:47 +0000</pubDate>
		<dc:creator>Gilbert</dc:creator>
				<category><![CDATA[Software Design]]></category>
		<category><![CDATA[design for products expiry dates]]></category>
		<category><![CDATA[expiry dates prompts]]></category>
		<category><![CDATA[shop system design;expiry date management]]></category>

		<guid isPermaLink="false">http://gilbertadjin.wordpress.com/2010/02/16/prompting-expiry-dates-of-products/</guid>
		<description><![CDATA[In this post I’m writing about how to prompt users about the expiry dates of products without the use of any hardware (sensors). In this example, expiry dates are stored in the database and the user is prompted (based on configurable settings) that a product has some set days to expiry. A very big assumption [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gilbertadjin.wordpress.com&amp;blog=6863530&amp;post=322&amp;subd=gilbertadjin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font size="3" face="Times New Roman">In this post I’m writing about how to prompt users about the expiry dates of products without the use of any hardware (sensors). In this example, expiry dates are stored in the database and the user is prompted (based on configurable settings) that a product has some set days to expiry.</font></p>
<p><font size="3" face="Times New Roman">A very big assumption is made here</font></p>
<ul>
<li><font size="3" face="Times New Roman">1. Products purchased first, are sold first</font></li>
<li><font size="3" face="Times New Roman">2. Quantity of products bought in one purchase have the same expiry date. For example, if you are buying 30 cartons of milk, the expiry date of all the cartons are the same</font></li>
</ul>
<p><font size="3" face="Times New Roman">Now, lets go on with the design. We are using three (3) tables for our design namely, <strong>products</strong> table, <strong>purchase</strong> table and <strong>purchasedetail</strong> table. Note that the columns of the tables are just for the purpose of the expiry dates implementation</font></p>
<p><font size="3" face="Times New Roman">1) <strong>Products Table</strong></font></p>
<table border="0" cellspacing="0" cellpadding="2" width="400">
<tbody>
<tr>
<td valign="top" width="99">ProductID</td>
<td valign="top" width="100">ProductName</td>
<td valign="top" width="100">Unitprice</td>
<td valign="top" width="99">UnitsInStock</td>
</tr>
</tbody>
</table>
<p><font size="3" face="Times New Roman">2)<strong>Purchase Table</strong></font></p>
<table border="0" cellspacing="0" cellpadding="2" width="400">
<tbody>
<tr>
<td valign="top" width="100">PurchaseID</td>
<td valign="top" width="100">SupplierID</td>
<td valign="top" width="100">DatePurchased</td>
<td valign="top" width="100">EmployeeID</td>
</tr>
</tbody>
</table>
<p><font size="3" face="Times New Roman">3) <strong>PurchaseDetails Table</strong></font></p>
<table border="0" cellspacing="0" cellpadding="2" width="400">
<tbody>
<tr>
<td valign="top" width="80">PurchaseID</td>
<td valign="top" width="80">ProductID</td>
<td valign="top" width="80">QuantityBought</td>
<td valign="top" width="80">UnitPrice</td>
<td valign="top" width="80">ExpiryDate</td>
</tr>
</tbody>
</table>
<p>What we will be doing here is, we record the expiry date of a products when making the purchase. thus one product can have as many expiry dates as possible in the purchase details table based on the purchases made.</p>
<p><strong>Note</strong>:when products are purchased , the quantity bought is added to the unitsinstock in the products table. Also when sales are made the neccesary deductions are made. </p>
<p>To prompt for expiry dates the key columns we will be using are the “unitsinStock” column in “products” table and the “quantitybought” column in “purchasedetails” table.</p>
<p>First we write a query to select records from the purchase details table. we select products with expiry dates greater than today and within the range of today + the set number of days to remind user</p>
<p>Example “select * from purchasedetails where Expirydates &gt; today() and expirydate&lt;=enddate” (enddate=today + the set number of days to give prompt)</p>
<p>Form the list of record (s) selected, using a loop , we first compare the last purchase record’s(purchaseID is auto generated number, so the highest PurchaseID value) quantity bought with the quantity in stock of that product. </p>
<p>IF the quantity bought (<strong>purchases details</strong>) is greater than the units in stock (<strong>products</strong>) , prompt that the number of that product(using units in stock) is expiring. You can add the date the purchase was made, from which of suppliers and the employee that handled the transaction from the <strong>Purchases table</strong> to the prompt and you end.</p>
<p>ELSE IF the units in stock (<strong>product</strong>) is greater than quantity bought (<strong>purchases details</strong>), this time prompt with the quantity bought as the number of products expiring. Then subtract the quantity bought from the units in stock with the remainder becoming the units in stock. mathematically <strong>unitsinstock=unitsinstock-quantitybought. </strong>Then move the the next&#160; purchase record from the list.The loop start again.</p>
<p>Note: another termination condition is you can loop until the <strong>unitinstock</strong> is less or equal to zero.</p>
<p>Note: you can build a string of the prompts in the loop and show it after the loop</p>
<p>Please let me have your comments……….</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gilbertadjin.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gilbertadjin.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gilbertadjin.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gilbertadjin.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gilbertadjin.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gilbertadjin.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gilbertadjin.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gilbertadjin.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gilbertadjin.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gilbertadjin.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gilbertadjin.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gilbertadjin.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gilbertadjin.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gilbertadjin.wordpress.com/322/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gilbertadjin.wordpress.com&amp;blog=6863530&amp;post=322&amp;subd=gilbertadjin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gilbertadjin.wordpress.com/2010/02/16/prompting-expiry-dates-of-products/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dda317f32634767655bb6e94f3313d19?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gilbertadjin</media:title>
		</media:content>
	</item>
		<item>
		<title>DEVELOPING YOUR TECHNICAL CAREER</title>
		<link>http://gilbertadjin.wordpress.com/2009/12/31/developing-your-technical-career/</link>
		<comments>http://gilbertadjin.wordpress.com/2009/12/31/developing-your-technical-career/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 14:18:26 +0000</pubDate>
		<dc:creator>Gilbert</dc:creator>
				<category><![CDATA[Career Development]]></category>
		<category><![CDATA[agile coaching]]></category>
		<category><![CDATA[pragmatic bookshelf]]></category>
		<category><![CDATA[the passionate programmer]]></category>
		<category><![CDATA[The Pragmatic Programmer]]></category>

		<guid isPermaLink="false">http://gilbertadjin.wordpress.com/2009/12/31/developing-your-technical-career/</guid>
		<description><![CDATA[Hi developers or do i say hi programmers….., anyway hi all. One thing we have to know is that its not all about writing codes, testing application or doing the technical stuff that will help us improve our career. A lot is needed alongside;knowing how to mingle with your team, marketing your products; why don’t [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gilbertadjin.wordpress.com&amp;blog=6863530&amp;post=313&amp;subd=gilbertadjin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi developers or do i say hi programmers….., anyway hi all. One thing we have to know is that its not all about writing codes, testing application or doing the technical stuff that will help us improve our career. A lot is needed alongside;knowing how to mingle with your team, marketing your products; why don’t you stop reading those technical books this holidays and try your hands on any of these books from the pragmatic bookshelf and I bet you will never regret it</p>
<p>Just ebay for these books.</p>
<p>1. practices-of-an-agile-developer-working-in-the-real-world-pragmatic-programmers.</p>
<p>2.the-passionate-programmer-creating-a-remarkable-career-in-software-development-pragmatic-life</p>
<p>3.agile-coaching</p>
<p>4.land-the-tech-job-you-love-pragmatic-life</p>
<p>5.The Pragmatic Programmer, From Journeyman To Master </p>
<p>Happy happy Xmas and prosperous new year. May the Lord Almighty help us to be wise, fair, and kind in all our affairs. Stay blessed </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gilbertadjin.wordpress.com/313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gilbertadjin.wordpress.com/313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gilbertadjin.wordpress.com/313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gilbertadjin.wordpress.com/313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gilbertadjin.wordpress.com/313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gilbertadjin.wordpress.com/313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gilbertadjin.wordpress.com/313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gilbertadjin.wordpress.com/313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gilbertadjin.wordpress.com/313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gilbertadjin.wordpress.com/313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gilbertadjin.wordpress.com/313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gilbertadjin.wordpress.com/313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gilbertadjin.wordpress.com/313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gilbertadjin.wordpress.com/313/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gilbertadjin.wordpress.com&amp;blog=6863530&amp;post=313&amp;subd=gilbertadjin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gilbertadjin.wordpress.com/2009/12/31/developing-your-technical-career/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dda317f32634767655bb6e94f3313d19?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gilbertadjin</media:title>
		</media:content>
	</item>
		<item>
		<title>CRYSTAL REPORT USING DATABASE TABLES AS DATASOURCE</title>
		<link>http://gilbertadjin.wordpress.com/2009/12/12/crystal-report-using-tables-as-datasource/</link>
		<comments>http://gilbertadjin.wordpress.com/2009/12/12/crystal-report-using-tables-as-datasource/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 12:46:17 +0000</pubDate>
		<dc:creator>Gilbert</dc:creator>
				<category><![CDATA[Java Links]]></category>
		<category><![CDATA[.net crystal reports with tables as datasource]]></category>
		<category><![CDATA[crystal reports first time]]></category>
		<category><![CDATA[vb.net]]></category>
		<category><![CDATA[vs 2005 crystal reports 2005]]></category>

		<guid isPermaLink="false">http://gilbertadjin.wordpress.com/2009/12/12/crystal-report-using-tables-as-datasource/</guid>
		<description><![CDATA[Crystal reports can be created in .Net applications with different data sources including using database tables, stored procedures, typed datasets and also without a data source. In this article we are going through how to create a crystal report for the first time using database tables as the datasource. 1. You have to create your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gilbertadjin.wordpress.com&amp;blog=6863530&amp;post=310&amp;subd=gilbertadjin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Crystal reports can be created in .Net applications with different data sources including using database tables, stored procedures, typed datasets and also without a data source.</p>
<p>In this article we are going through how to create a crystal report for the first time using database tables as the datasource.</p>
<p>1. You have to create your windows project in using VS 2005. After creating the project, right on then project name in the solution explorer, select “add” and then “add new” as shown below.</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2009/12/image.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb.png?w=411&#038;h=235" width="411" height="235" /></a> </p>
<p>2. In the add new dialog box, select “crystal Report” and name it, and then click on the add button.</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2009/12/image1.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb1.png?w=419&#038;h=256" width="419" height="256" /></a></p>
<p>3. You will be presented with the “crystal report gallery” dialog, choose “using the report wizard” and click on ok</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2009/12/image2.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb2.png?w=422&#038;h=201" width="422" height="201" /></a>&#160;</p>
<p>4.In the choose data source dialog, go to the “ Create New Connection” node and then select the “OLE DB(ADO)” sub node.</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2009/12/image3.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb3.png?w=439&#038;h=183" width="439" height="183" /></a> </p>
<p>4. You will then be required to provide the database connection information. Slect the “Microsoft OLE DB provider for SQL server” and click on the next button</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2009/12/image4.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb4.png?w=447&#038;h=192" width="447" height="192" /></a> </p>
<p>5. Here you provide the database logon parameters</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2009/12/image5.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb5.png?w=454&#038;h=239" width="454" height="239" /></a> </p>
<p>6. After successfully connecting to the database, you then select the table (s) you want to display its content on your report</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2009/12/image6.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb6.png?w=458&#038;h=217" width="458" height="217" /></a> </p>
<p>6. After selecting the table(s) you select the actual columns you want to display<a href="http://gilbertadjin.files.wordpress.com/2009/12/image7.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb7.png?w=468&#038;h=217" width="468" height="217" /></a> </p>
<p>7. After choosing the columns you will display, you can click on next to choose the columns for grouping and then for filtering, and then finally you choose the format to display your report.</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2009/12/image8.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb8.png?w=479&#038;h=231" width="479" height="231" /></a> </p>
<p>8. After you have finished designing your report, you then drag a “crystal reports viewer” onto your form.</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2009/12/image9.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb9.png?w=478&#038;h=215" width="478" height="215" /></a> </p>
<p>Then create a code under the form load event to show your report on for load</p>
<p>Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#8216;create a new report document&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#8216;and load the report from its source     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#8216;use Application.StartupPath to get the address of your report fro deployment issues     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Dim rpd As New ReportDocument     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rpd.Load(&quot;C:\Gilbert\Personal\Projects\BlogPosts\BlogPosts\tableDS.rpt&quot;)     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Me.CrystalReportViewer1.ReportSource = rpd     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; SetDBLogonForReport(rpd) </p>
<p>&#160;&#160;&#160; End Sub </p>
<p>&#160;&#160;&#160; &#8216;for deployment issues make sure the database paramaters are encrypted    <br />&#160;&#160;&#160; &#8216;and saved in the mysettings class</p>
<p>Private Sub SetDBLogonForReport(ByVal myReportDocument As ReportDocument)    <br />&#160;&#160;&#160;&#160;&#160;&#160; Dim myConnectionInfo As ConnectionInfo = New&#160;&#160; ConnectionInfo()     <br />&#160;&#160;&#160;&#160;&#160;&#160; myConnectionInfo.DatabaseName = &quot;datalinkDB&quot;     <br />&#160;&#160;&#160;&#160;&#160;&#160; myConnectionInfo.UserID = &quot;sa&quot;     <br />&#160;&#160;&#160;&#160;&#160;&#160; myConnectionInfo.Password = &quot;qwerty&quot;     <br />&#160;&#160;&#160;&#160;&#160;&#160; myConnectionInfo.ServerName = &quot;localhost&quot;     <br />&#160;&#160;&#160;&#160;&#160;&#160; myConnectionInfo.IntegratedSecurity = &quot;false&quot;     <br />&#160;&#160;&#160;&#160;&#160;&#160; Dim myTables As Tables = myReportDocument.Database.Tables     <br />&#160;&#160;&#160;&#160;&#160;&#160; For Each myTable As&#160; CrystalDecisions.CrystalReports.Engine.Table In myTables     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Dim myTableLogonInfo As TableLogOnInfo = myTable.LogOnInfo     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; myTableLogonInfo.ConnectionInfo = myConnectionInfo     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; myTable.ApplyLogOnInfo(myTableLogonInfo)     <br />&#160;&#160;&#160;&#160;&#160;&#160; Next     <br />&#160;&#160; End Sub</p>
<p>Below is a picture when the application is run</p>
<p><a href="http://gilbertadjin.files.wordpress.com/2009/12/image10.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb10.png?w=557&#038;h=259" width="557" height="259" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gilbertadjin.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gilbertadjin.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gilbertadjin.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gilbertadjin.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gilbertadjin.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gilbertadjin.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gilbertadjin.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gilbertadjin.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gilbertadjin.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gilbertadjin.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gilbertadjin.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gilbertadjin.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gilbertadjin.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gilbertadjin.wordpress.com/310/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gilbertadjin.wordpress.com&amp;blog=6863530&amp;post=310&amp;subd=gilbertadjin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gilbertadjin.wordpress.com/2009/12/12/crystal-report-using-tables-as-datasource/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dda317f32634767655bb6e94f3313d19?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gilbertadjin</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://gilbertadjin.files.wordpress.com/2009/12/image_thumb10.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
	</channel>
</rss>
