<?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>dotnet thoughts &#187; Office Interoperability</title>
	<atom:link href="http://www.dotnetthoughts.net/tag/office-interoperability/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dotnetthoughts.net</link>
	<description>a dotnet developer&#039;s technical blog</description>
	<lastBuildDate>Wed, 08 Feb 2012 03:18:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.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 &#8230; <a href="http://www.dotnetthoughts.net/2009/10/09/covert-powerpoint-slides-to-images/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></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; title: ; notranslate">
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>
<div class="betterrelated"><p><strong>Related content:</strong></p>
<ol><li> <a href="http://www.dotnetthoughts.net/2009/09/23/import-export-data-in-ms-excel-using-c/" title="Permanent link to Import / export data in MS Excel using C#">Import / export data in MS Excel using C#</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2010/02/16/import-data-from-excel-using-c-part-2/" title="Permanent link to Import Data from Excel using C# &#8211; Part 2">Import Data from Excel using C# &#8211; Part 2</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2009/09/30/convert-image-to-icon-using-c/" title="Permanent link to Convert Image to Icon using C#">Convert Image to Icon using C#</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2008/04/25/printing-infopath-forms/" title="Permanent link to Printing Infopath forms">Printing Infopath forms</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2007/09/20/calling-word-macros-from-net/" title="Permanent link to Calling word Macros from .Net">Calling word Macros from .Net</a>  </li>
</ol></div>]]></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>
		<item>
		<title>Calling word Macros from .Net</title>
		<link>http://www.dotnetthoughts.net/2007/09/20/calling-word-macros-from-net/</link>
		<comments>http://www.dotnetthoughts.net/2007/09/20/calling-word-macros-from-net/#comments</comments>
		<pubDate>Thu, 20 Sep 2007 11:30:16 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Office Interoperability]]></category>
		<category><![CDATA[Interop]]></category>
		<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[Word]]></category>

		<guid isPermaLink="false">http://anuraj.wordpress.com/2007/09/20/calling-word-macros-from-net/</guid>
		<description><![CDATA[While using Word automation with .Net sometimes it is required ti call, word macro&#8217;s from C# or VB.Net. Here is the code to call word macros from VB.Net. In the code, helloworld is the macro name.Or you can simply call &#8230; <a href="http://www.dotnetthoughts.net/2007/09/20/calling-word-macros-from-net/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>While using Word automation with .Net sometimes it is required ti call, word macro&#8217;s from C# or VB.Net.</p>
<p>Here is the code to call word macros from VB.Net.</p>
<pre class="brush: vb; title: ; notranslate">
Dim WordApp As New Microsoft.Office.Interop.Word.Application
CType(WordApp, Object).GetType().InvokeMember(&quot;Run&quot;, Reflection.BindingFlags.Default Or Reflection.BindingFlags.InvokeMethod, Nothing, CType(WordApp, Object), New Object() {&quot;helloworld&quot;})
</pre>
<p>In the code, <em>helloworld</em> is the macro name.Or you can simply call <code>WordApp.Run("helloworld")</code> will also works fine.</p>
<p> </p>
<p>You can also refer link from Microsoft<br />
<a href="http://support.microsoft.com/kb/306683" target="_blank">http://support.microsoft.com/kb/306683</a></p>
<div class="betterrelated"><p><strong>Related content:</strong></p>
<ol><li> <a href="http://www.dotnetthoughts.net/2008/04/25/printing-infopath-forms/" title="Permanent link to Printing Infopath forms">Printing Infopath forms</a>  </li>
</ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2007/09/20/calling-word-macros-from-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

