<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>IronPython for ASP.NET</title><link>http://forums.asp.net/1098.aspx</link><description>Discussions/Questions about IronPython for ASP.NET</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Trouble opening MS Word file from Iron Python</title><link>http://forums.asp.net/thread/3208660.aspx</link><pubDate>Wed, 03 Jun 2009 20:42:29 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3208660</guid><dc:creator>Summer_Intern</dc:creator><author>Summer_Intern</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3208660.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=3208660</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;This error has become a show stopper in the application development. So any helpful suggestions would mean a lot !!!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Trouble opening MS Word file from Iron Python</title><link>http://forums.asp.net/thread/3197186.aspx</link><pubDate>Fri, 29 May 2009 19:09:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3197186</guid><dc:creator>Summer_Intern</dc:creator><author>Summer_Intern</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3197186.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=3197186</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&lt;br /&gt;&lt;br /&gt;I was trying to write a small script that opens an MS Word File and does something to it.&lt;br /&gt;I am getting a weird exception when I try to run the script.&lt;br /&gt;It says &amp;#39;Type-Exception - Expected clr , provided - str&amp;#39; for the line where I try to open the file.&lt;br /&gt;But the same script runs fine on a colleague&amp;#39;s computer .&lt;br /&gt;I
couldn&amp;#39;t figure out what his computer has that mine doesn&amp;#39;t.So I
thought of asking what are the necessary things (libs, dlls) that are
needed to Open/Work on MS Word File from Iron Python.&lt;br /&gt;&lt;br /&gt;MS Excel
interaction works fine in my computer though. I have Office 07, MS
Visual Studio 05, .NET Framework 2.0 installed in my computer.&lt;br /&gt;-----------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;Here is the script :&lt;br /&gt;&lt;br /&gt;import clr&lt;br /&gt;clr.AddReference(&amp;quot;Microsoft.Office.Interop.Word&amp;quot;)&lt;br /&gt;&lt;br /&gt;import Microsoft.Office.Interop.Word as Word                        &lt;br /&gt;&lt;br /&gt;source_filename = &amp;#39;C:\Sample_Report.doc&amp;#39;&lt;br /&gt;			destination_filename = &amp;#39;c:\Validation Report.doc&amp;#39;&lt;br /&gt;			&lt;br /&gt;			missing = System.Type.Missing  &lt;br /&gt;			replaceAll = Word.WdReplace.wdReplaceAll&lt;br /&gt;			&lt;br /&gt;			# Open the Report Template MSWord File&lt;br /&gt;			word_application = Word.ApplicationClass()&lt;br /&gt;			word_application.Visible = False&lt;br /&gt;			document = word_application.Documents.Open(source_filename)&lt;br /&gt;			print &amp;#39;opened microsoft word&amp;#39;&lt;/p&gt;</description></item></channel></rss>