<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-36706805</id><updated>2011-07-08T11:26:27.515+05:30</updated><category term='C#'/><category term='Visual Studio'/><category term='Microsoft Dynamics CRM'/><category term='PDF'/><category term='MSCRM'/><category term='Snippets'/><category term='Serialization'/><category term='Ghostscript'/><category term='DBISAM'/><title type='text'>Techno Corner - .NET and More</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://techno-corner.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36706805/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://techno-corner.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Bhuban</name><uri>http://www.blogger.com/profile/15831901306650604293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_Wtf-RJ-NS94/SIqqVW3YxLI/AAAAAAAAAbw/Ua5ei6OFLvk/S220/bmm_s.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-36706805.post-1190201520041848038</id><published>2010-06-14T15:29:00.002+05:30</published><updated>2010-06-14T15:34:11.889+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Snippets'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio'/><title type='text'>Smart Coding with Visual Studio</title><content type='html'>&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Coding is one of the daily tasks that we developers do. Its like brushing our teeth or taking a shower. But how many of us do it smartly. If we want to spend some of our coding time in other activities like blogging or learning new technologies, then we have to be smart while coding.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;So the million dollar question is, What do we do to code smartly? Actually, some of us do it, but we hardly recognize them. We do keep track of some typical day to day coding practices and snippets, so that we can pull them out when needed. Or we blog about them, so that if we come across the same problem again, then just pull out the code and implement it again. And in the process we also help others to know about some of our problems and solutions.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Another way that Visual Studio provides is through Code Snippets. The Studio provides some really smart coding practices by default to ease our coding woes. We can also write our custom snippets, so that we can use them when necessary. But, we hardly do that.&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;While I was checking some of the cool stuffs in CodePlex, I came across&amp;nbsp;&lt;/span&gt;&lt;a href="http://1code.codeplex.com/"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;All-In-One Code Framework&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;. This is a bunch of predefined very useful snippets that we can use in our day to day coding.&amp;nbsp;It provides snippets on a wide variety of Technologies starting from COM, IPC, ADO, LINQ, Entity Framework, XML and File Handling to VSTO, WinForms, WPF, ASP.NET, Silverlight, Azure and many more. It provides snippets in C#, VB and C++.&amp;nbsp;Isn't that cool!&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;The main advantage is that, it takes out the pain of creating snippets on our own. Just install it, and we are ready to go. And more over the broad spectrum of implementation is definitely a deal to die for.&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36706805-1190201520041848038?l=techno-corner.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techno-corner.blogspot.com/feeds/1190201520041848038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=36706805&amp;postID=1190201520041848038' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36706805/posts/default/1190201520041848038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36706805/posts/default/1190201520041848038'/><link rel='alternate' type='text/html' href='http://techno-corner.blogspot.com/2010/06/smart-coding-with-visual-studio.html' title='Smart Coding with Visual Studio'/><author><name>Bhuban</name><uri>http://www.blogger.com/profile/15831901306650604293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_Wtf-RJ-NS94/SIqqVW3YxLI/AAAAAAAAAbw/Ua5ei6OFLvk/S220/bmm_s.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36706805.post-4761934539582840900</id><published>2010-06-01T18:09:00.003+05:30</published><updated>2010-06-04T14:12:39.901+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='MSCRM'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft Dynamics CRM'/><title type='text'>Microsoft Dynamics CRM 4.0 - Online User Handbook</title><content type='html'>&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Microsoft Dynamics CRM has become a buzzword now a days and all companies are betting big on it. Even Microsoft is projecting it as an xRM platform to get into all sort of industries and domains.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Many companies are building customized applications on Dynamics CRM to meet the business needs. Here is a link that would help you to learn Microsoft Dynamics CRM 4.0&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;a href="http://www.redware.com/mscrm/handbook/index.html"&gt;http://www.redware.com/mscrm/handbook/index.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;It is mainly a Handbook for Users that helps them to know the usage of Dynamics CRM.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36706805-4761934539582840900?l=techno-corner.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techno-corner.blogspot.com/feeds/4761934539582840900/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=36706805&amp;postID=4761934539582840900' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36706805/posts/default/4761934539582840900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36706805/posts/default/4761934539582840900'/><link rel='alternate' type='text/html' href='http://techno-corner.blogspot.com/2010/06/microsoft-dynamics-crm-40-online-user.html' title='Microsoft Dynamics CRM 4.0 - Online User Handbook'/><author><name>Bhuban</name><uri>http://www.blogger.com/profile/15831901306650604293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_Wtf-RJ-NS94/SIqqVW3YxLI/AAAAAAAAAbw/Ua5ei6OFLvk/S220/bmm_s.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36706805.post-8960682018518149421</id><published>2009-04-07T10:55:00.002+05:30</published><updated>2009-04-07T11:02:36.610+05:30</updated><title type='text'>MethodInvoker: Invoking a control from a worker thread</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;Invoking a control from a worker thread is common when you're doing multithreading in a windows form.  The usual pattern for this goes something like:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;private delegate void PrettyMuchUselessDelegate(string text);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;private void WorkerMethod() {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;nbsp;&amp;nbsp;string result;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;nbsp;&amp;nbsp;// perform some excruciating calculations here to fill the variable 'result'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;nbsp;&amp;nbsp;UpdateUI(result);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;private void UpdateUI(string text) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;nbsp;&amp;nbsp;if(lblResult.InvokeRequired) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lblResult.Invoke(new PrettyMuchUselessDelegate(UpdateUI),new object[] { text }));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;nbsp;&amp;nbsp;} else {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lblResult.Text = text;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Lots of code to do one simple thing: &lt;span style="font-family:courier new;"&gt;lblResult.Text = text&lt;/span&gt;. But by using tools available to us in the framework and the C# compiler, we can compress this down to:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;private void WorkerMethod() {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;nbsp;&amp;nbsp;string result;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;nbsp;&amp;nbsp;// perform some excruciating calculations here to fill the variable 'result'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;nbsp;&amp;nbsp;lblResult.Invoke(new MethodInvoker(delegate { lblResult.Text = result; }));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Because we know WorkerMethod is running on a worker thread, we don't bother checking InvokeRequired. We can directly call Invoke on our control, passing a new delegate of type System.Windows.Forms.MethodInvoker.  MethodInvoker is a delegate for a method that takes no parameters and returns void.  Instead of creating a separate method to invoke, we pass in an anonymous method that sets the text of the label.  Using MethodInvoker and anonymous methods helps make the code simpler and more elegant, and what's more important than that?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36706805-8960682018518149421?l=techno-corner.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techno-corner.blogspot.com/feeds/8960682018518149421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=36706805&amp;postID=8960682018518149421' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36706805/posts/default/8960682018518149421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36706805/posts/default/8960682018518149421'/><link rel='alternate' type='text/html' href='http://techno-corner.blogspot.com/2009/04/methodinvoker-invoking-control-from.html' title='MethodInvoker: Invoking a control from a worker thread'/><author><name>Bhuban</name><uri>http://www.blogger.com/profile/15831901306650604293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_Wtf-RJ-NS94/SIqqVW3YxLI/AAAAAAAAAbw/Ua5ei6OFLvk/S220/bmm_s.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36706805.post-7636128431247247168</id><published>2008-09-25T11:17:00.004+05:30</published><updated>2008-09-25T11:19:19.003+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='PDF'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='Ghostscript'/><title type='text'>Creating PDFs with C# using Ghostscript</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;"&gt;Portable Document Format (PDF) is a file format from Adobe that enables a document to be distributed on different systems while preserving the layout. It has become a standard for secured and reliable distribution and exchange of electronic documents around the world. It preserves the fonts, images, graphics, and layout of any source document, regardless of the application and platform used to create it, thus making it cross-platform and cross-browser compatible.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;br /&gt;With the increased use of PDF documents as a universal format for sharing documents and managing the paperless office, it has become a part of the commercial applications to be able to convert documents of different format to PDF. In this article we will discuss how we can use Ghostscript to convert various documents into PDF.&lt;br /&gt;&lt;br /&gt;Read the complete article &lt;a href="http://aspalliance.com/1447"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36706805-7636128431247247168?l=techno-corner.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techno-corner.blogspot.com/feeds/7636128431247247168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=36706805&amp;postID=7636128431247247168' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36706805/posts/default/7636128431247247168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36706805/posts/default/7636128431247247168'/><link rel='alternate' type='text/html' href='http://techno-corner.blogspot.com/2008/09/creating-pdfs-with-c-using-ghostscript.html' title='Creating PDFs with C# using Ghostscript'/><author><name>Bhuban</name><uri>http://www.blogger.com/profile/15831901306650604293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_Wtf-RJ-NS94/SIqqVW3YxLI/AAAAAAAAAbw/Ua5ei6OFLvk/S220/bmm_s.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36706805.post-7514293973436297099</id><published>2008-09-25T11:14:00.003+05:30</published><updated>2008-09-25T11:16:09.056+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Serialization'/><title type='text'>Serialization in Database</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;"&gt;Serialization is the process of converting an object into a stream of bytes which is easily transferable over the network and storing its current state on any permanent storage media like file or database for later use. De-serialization is the reverse process of Serialization, where the stored object is taken and the original object is recreated.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;br /&gt;.NET provides classes through its System.Runtime.Serialization namespaces that can be used for serializing and de-serializing objects.&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;br /&gt;Read the complete article &lt;a href="http://aspalliance.com/1093"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36706805-7514293973436297099?l=techno-corner.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techno-corner.blogspot.com/feeds/7514293973436297099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=36706805&amp;postID=7514293973436297099' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36706805/posts/default/7514293973436297099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36706805/posts/default/7514293973436297099'/><link rel='alternate' type='text/html' href='http://techno-corner.blogspot.com/2008/09/serialization-in-database.html' title='Serialization in Database'/><author><name>Bhuban</name><uri>http://www.blogger.com/profile/15831901306650604293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_Wtf-RJ-NS94/SIqqVW3YxLI/AAAAAAAAAbw/Ua5ei6OFLvk/S220/bmm_s.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36706805.post-5184180699465210235</id><published>2008-09-25T10:41:00.003+05:30</published><updated>2008-09-25T11:13:36.816+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='DBISAM'/><title type='text'>Working with DBISAM Using Microsoft .NET</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;"&gt;DBISAM is a word that may seem new for many of us and many would be astonished to know that it is a database. Like any other database, it has the ability to maintain huge amounts of data. This article aims at providing an overview of DBISAM and the ways we can interact with the database through .NET. Let us first discuss about some of the aspects of DBISAM.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;Read the complete article &lt;a href="http://aspalliance.com/1015"&gt;Here&lt;/a&gt;.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36706805-5184180699465210235?l=techno-corner.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techno-corner.blogspot.com/feeds/5184180699465210235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=36706805&amp;postID=5184180699465210235' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36706805/posts/default/5184180699465210235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36706805/posts/default/5184180699465210235'/><link rel='alternate' type='text/html' href='http://techno-corner.blogspot.com/2008/09/working-with-dbisam-using-microsoft-net.html' title='Working with DBISAM Using Microsoft .NET'/><author><name>Bhuban</name><uri>http://www.blogger.com/profile/15831901306650604293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_Wtf-RJ-NS94/SIqqVW3YxLI/AAAAAAAAAbw/Ua5ei6OFLvk/S220/bmm_s.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36706805.post-532209810268607525</id><published>2008-02-28T22:25:00.010+05:30</published><updated>2008-02-29T01:50:27.231+05:30</updated><title type='text'>Convert your PDF to Images</title><content type='html'>&lt;span style=";font-family:verdana;font-size:85%;"  &gt;&lt;br /&gt;PDF is one of the most widely used format for distribution of electronic documents. My article on ASP Alliance &lt;a href="http://aspalliance.com/1447"&gt;Creating PDFs with C# using Ghostscript&lt;/a&gt; gives a brief idea on conversion of different document formats into PDF.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:verdana;font-size:85%;"  &gt;Ghostscript supports output to a variety of image file formats from pdf and ps files. These formats are called "output devices" in Ghostscript terminology. The ghostscript executible gswin32c.exe can be used to achieve this. The command used for this is as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;gswin32c -dSAFER -dBATCH -dNOPAUSE -sDEVICE=jpeg -o out_%d.jpg inputFile.pdf&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=";font-family:verdana;font-size:85%;"  &gt;-sDEVICE is used to specify the output device or the driver&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=";font-family:verdana;font-size:85%;"  &gt;-dSAFER -dBATCH -dNOPAUSE options suppress interactive prompts and enable some security checks on the file to be run.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=";font-family:verdana;font-size:85%;"  &gt;-o is used to specify the output file name. %d option helps to automatically assign file names as per the page number. So, if a file has 10 pages, 10 files will be created.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style=";font-family:verdana;font-size:85%;"  &gt;The supported devices are as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;PNG&lt;/span&gt;&lt;br /&gt;png16m : 24-bit RGB color&lt;br /&gt;pnggray : grayscale&lt;br /&gt;png256 : 8-bit color&lt;br /&gt;png16 : 4-bit color&lt;br /&gt;pngmono : black-and-white&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;JPG&lt;/span&gt;&lt;br /&gt;jpeg : Produce color JPEG files.&lt;br /&gt;jpeggray : produce grayscale JPEG files.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;TIFF&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;The color TIFF drivers that produce uncompressed output:&lt;/span&gt;&lt;br /&gt;tiffgray : Produces 8-bit gray output.&lt;br /&gt;tiff12nc : Produces 12-bit RGB output (4 bits per component).&lt;br /&gt;tiff24nc : Produces 24-bit RGB output (8 bits per component).&lt;br /&gt;tiff32nc : Produces 32-bit CMYK output (8 bits per component).&lt;br /&gt;tiffsep : The tiffsep device creates multiple output files.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;TIFF drivers that produce black-and-white output with different compression modes:&lt;/span&gt;&lt;br /&gt;tiffcrle : G3 fax encoding with no EOLs&lt;br /&gt;tiffg3 : G3 fax encoding with EOLs&lt;br /&gt;tiffg32d : 2-D G3 fax encoding&lt;br /&gt;tiffg4 : G4 fax encoding&lt;br /&gt;tifflzw : LZW-compatible (tag = 5) compression&lt;br /&gt;tiffpack : PackBits (tag = 32773) compression&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;BMP&lt;/span&gt;&lt;br /&gt;The BMP drivers produces uncompressed images with the help of the following devices:&lt;br /&gt;bmpmono, bmpgray, bmpsep1, bmpsep8, bmp16, bmp256, bmp16m, bmp32b&lt;br /&gt;&lt;br /&gt;We can also implement this in a C# application where this command can be executed with the help of the Ghostscript command line tool. Remember, in order to run this we will need the gswin32c.exe in the Application startup path. Below is a code snippet to achieve this.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;CODE SNIPPET:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;private string createImage(string inputFile, string outputPath)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    str = new StringBuilder();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    string outputFiles = Path.Combine(outputPath, "out_%d.jpg");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    string command = "gswin32c -dSAFER -dBATCH -dNOPAUSE -sDEVICE=jpeg -o \"" + outputFiles + "\" \"" + inputFile + "\"";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    try&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        Process pdfProcess = new Process();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        StreamReader reader;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        StreamWriter writer;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        ProcessStartInfo info = new ProcessStartInfo("cmd");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        info.WorkingDirectory = System.AppDomain.CurrentDomain.BaseDirectory;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        info.CreateNoWindow = true;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        info.UseShellExecute = false;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        info.RedirectStandardInput = true;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        info.RedirectStandardOutput = true;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        pdfProcess.StartInfo = info;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        pdfProcess.Start();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        writer = pdfProcess.StandardInput;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        reader = pdfProcess.StandardOutput;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        writer.AutoFlush = true;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        writer.WriteLine(command);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        writer.Close();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        string ret = reader.ReadToEnd();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    catch (Exception ex)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        throw ex;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    return ret;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;REFERENCES&lt;/span&gt;&lt;br /&gt;http://ghostscript.com/doc/8.54/Use.htm&lt;br /&gt;http://pages.cs.wisc.edu/~ghost/doc/cvs/Devices.htm&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;DOWNLOAD&lt;/span&gt;&lt;br /&gt;You can also download a small windows application from &lt;a href="http://bhubanmmishra.googlepages.com/Pdf2Image.zip"&gt;here&lt;/a&gt;. This is a C# Windows application that takes in a pdf file and converts it to a number of jpg files.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36706805-532209810268607525?l=techno-corner.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techno-corner.blogspot.com/feeds/532209810268607525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=36706805&amp;postID=532209810268607525' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36706805/posts/default/532209810268607525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36706805/posts/default/532209810268607525'/><link rel='alternate' type='text/html' href='http://techno-corner.blogspot.com/2008/02/convert-your-pdf-to-images-pdf-is-one.html' title='Convert your PDF to Images'/><author><name>Bhuban</name><uri>http://www.blogger.com/profile/15831901306650604293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_Wtf-RJ-NS94/SIqqVW3YxLI/AAAAAAAAAbw/Ua5ei6OFLvk/S220/bmm_s.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36706805.post-116197486080567041</id><published>2006-10-28T00:10:00.000+05:30</published><updated>2006-10-28T00:52:12.454+05:30</updated><title type='text'>Welcome to Techno-Corner</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;&lt;/span&gt;This is a small effort to bring all the technical guys in the world closer. Here we can discuss any technical stuffs related to any platform.&lt;br /&gt;&lt;br /&gt;Be it Programming, be it hardware, be it latest Technologies, be it ...&lt;br /&gt;&lt;br /&gt;All are welcome to exchange their views here.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;BMM&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36706805-116197486080567041?l=techno-corner.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techno-corner.blogspot.com/feeds/116197486080567041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=36706805&amp;postID=116197486080567041' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36706805/posts/default/116197486080567041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36706805/posts/default/116197486080567041'/><link rel='alternate' type='text/html' href='http://techno-corner.blogspot.com/2006/10/welcome-to-techno-corner.html' title='Welcome to Techno-Corner'/><author><name>Bhuban</name><uri>http://www.blogger.com/profile/15831901306650604293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_Wtf-RJ-NS94/SIqqVW3YxLI/AAAAAAAAAbw/Ua5ei6OFLvk/S220/bmm_s.jpg'/></author><thr:total>0</thr:total></entry></feed>
