<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dot Net Thoughts &#187; Powerpoint</title>
	<atom:link href="http://www.dotnetthoughts.net/tag/powerpoint/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dotnetthoughts.net</link>
	<description>thoughts about .Net, WPF, Sharepoint, Javascript and more.</description>
	<lastBuildDate>Wed, 01 Sep 2010 09:53:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Covert PowerPoint Slides to Images</title>
		<link>http://www.dotnetthoughts.net/2009/10/09/covert-powerpoint-slides-to-images/</link>
		<comments>http://www.dotnetthoughts.net/2009/10/09/covert-powerpoint-slides-to-images/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 10:38:27 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[.Net 3.0 / 3.5]]></category>
		<category><![CDATA[Office Interoperability]]></category>
		<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[Office Automation]]></category>
		<category><![CDATA[Office Interop]]></category>
		<category><![CDATA[Powerpoint]]></category>

		<guid isPermaLink="false">http://anuraj.wordpress.com/?p=427</guid>
		<description><![CDATA[Today one of my colleague comes with a problem; he want to display a Powerpoint presentation in his Sharepoint site. But we didn&#8217;t got any direct way to display it. They we tweaked the code, to export the Slides to images and display it using the a custom slideshow web part, like the AjaxToolkit slideshow [...]]]></description>
			<content:encoded><![CDATA[<p>Today one of my colleague comes with a problem; he want to display a Powerpoint presentation in his Sharepoint site. But we didn&#8217;t got any direct way to display it. They we tweaked the code, to export the Slides to images and display it using the a custom slideshow web part, like the AjaxToolkit slideshow control.</p>
<p>I am attaching the code to export all the slides from a Power Point to Images</p>
<pre class="brush: csharp;">
string ExportLocation = &quot;C:\\Sample&quot;;
Microsoft.Office.Interop.PowerPoint.Application ppApp = new Microsoft.Office.Interop.PowerPoint.Application();
ppApp.Visible = MsoTriState.msoTrue;
ppApp.WindowState = PpWindowState.ppWindowMinimized;
Microsoft.Office.Interop.PowerPoint.Presentations oPresSet = ppApp.Presentations;
Microsoft.Office.Interop.PowerPoint._Presentation oPres = oPresSet.Open(&quot;C:\\ScreenShots.ppt&quot;,
            MsoTriState.msoFalse, MsoTriState.msoFalse,
            MsoTriState.msoFalse);
ppApp.ShowWindowsInTaskbar = MsoTriState.msoFalse;	//Hiding the application; But it will be displayed always
try
{
    Slides objSlides = oPres.Slides;	//Getting all the slides
    for (int i = 1; i &lt; objSlides.Count - 1; i++)
    {
        string file = Path.Combine(ExportLocation, string.Format(&quot;{0}.{1}&quot;, objSlides[i].Name, &quot;jpg&quot;));
        oPres.Slides[i].Export(file, &quot;jpg&quot;, 800, 600);
    }
}
finally
{
    ppApp.Quit();	//Closing the Powerpoint application. Sometimes it won't work too.
}
</pre>
<p>Thanks to <strong>ArunKumar</strong>, for providing the code snippet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2009/10/09/covert-powerpoint-slides-to-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
