<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>C# vs. VB for Office development (part 1/?)</title><link>http://blogs.msdn.com/b/cyrusn/archive/2004/05/28/144148.aspx</link><description>I'm at a Tech-Ed cabana session entitled "VB.Net vs. C# for Office development with Visual Studio .NET". It's going over a few reasons why it's nicer to use VB for developing for office. 
 
The first version that is mentioned is that many methods in</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>也有人和我一样抱怨为何C#中操作office产品的方法有那么多的参数</title><link>http://blogs.msdn.com/b/cyrusn/archive/2004/05/28/144148.aspx#8353489</link><pubDate>Thu, 03 Apr 2008 14:24:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8353489</guid><dc:creator>武眉博</dc:creator><description>&lt;p&gt;原来做过一个小的win程序操作Excel的被那些个参数搞的头晕晕的那么多Missing啊今天在Blog.Msdn.com看到关于VB和C#在office开发中的比较的讨论&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs"&gt;http://blogs&lt;/a&gt;...&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8353489" width="1" height="1"&gt;</description></item><item><title>re: C# vs. VB for Office development (part 1/?)</title><link>http://blogs.msdn.com/b/cyrusn/archive/2004/05/28/144148.aspx#147528</link><pubDate>Thu, 03 Jun 2004 12:08:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:147528</guid><dc:creator>Joku</dc:creator><description>I suppose the Office team is already busy doing/designing some managed, truly .NET way to access Office (In Longhorn timeframe). Getting that API to be same with previous Office's, before the &amp;quot;Longhorn Office&amp;quot; seems unrealistic. If someone was to now develop better managed way to access Office, with no co-operation with the Office team, that would certainly be incompatible and you'd have two managed ways, one for old Office and one for the LH Office 2006+.&lt;br&gt;&lt;br&gt;Certainly the Office team could do the new API compatible/wrap it so that current Offices work also, but in what timeframe? Perhaps such could be done as a preview API, so people can learn the LH Office 2006 way of programming Office with current Offices in XP, but not making a &amp;quot;final release&amp;quot;, reserving the full right to do major changes before the LH Office 2006 in case there would be need for those. How many would use such &amp;quot;preview&amp;quot;.. ?&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=147528" width="1" height="1"&gt;</description></item><item><title>re: C# vs. VB for Office development (part 1/?)</title><link>http://blogs.msdn.com/b/cyrusn/archive/2004/05/28/144148.aspx#147406</link><pubDate>Thu, 03 Jun 2004 07:41:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:147406</guid><dc:creator>Cyrus Najmabadi</dc:creator><description>Joku: Thanks for the responce.  However, what's the difference between a this &amp;quot;better longhorn api&amp;quot; and a &amp;quot;better api&amp;quot; that sits on top of the current one?&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=147406" width="1" height="1"&gt;</description></item><item><title>re: C# vs. VB for Office development (part 1/?)</title><link>http://blogs.msdn.com/b/cyrusn/archive/2004/05/28/144148.aspx#146612</link><pubDate>Wed, 02 Jun 2004 13:33:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:146612</guid><dc:creator>Joku</dc:creator><description>Sorry, _I_ guess that didn't translate well to english..&lt;br&gt;&lt;br&gt;I meant that if &amp;quot;Longhorn Office&amp;quot; would have a better API, designed to be used like the framework set of classes, making that good would be better use of resources than working on some glued-on wrapper to the old &amp;quot;VB office API&amp;quot;. This was my guess for why such wrapper haven't been made and C# people are forced to the Word.Documents.Open(fileName, Type.Missing, Type.Missing,..) approach.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=146612" width="1" height="1"&gt;</description></item><item><title>re: C# vs. VB for Office development (part 1/?)</title><link>http://blogs.msdn.com/b/cyrusn/archive/2004/05/28/144148.aspx#144459</link><pubDate>Sat, 29 May 2004 20:45:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:144459</guid><dc:creator>Cyrus Najmabadi</dc:creator><description>Joku: What do you mean by &amp;quot;guess making&amp;quot;?  Why is making an interface nicer a waste of resources?  If it makes developers more productive then I would consider a very good use of resources.  What would you prefer to be done instead?&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=144459" width="1" height="1"&gt;</description></item><item><title>re: C# vs. VB for Office development (part 1/?)</title><link>http://blogs.msdn.com/b/cyrusn/archive/2004/05/28/144148.aspx#144413</link><pubDate>Sat, 29 May 2004 16:44:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:144413</guid><dc:creator>Joku</dc:creator><description>Guess making and providing a &amp;quot;wrapper&amp;quot; to make the interfacing more nice would be a waste of resources. Hopefully something gets done at some point though.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=144413" width="1" height="1"&gt;</description></item><item><title>re: C# vs. VB for Office development (part 1/?)</title><link>http://blogs.msdn.com/b/cyrusn/archive/2004/05/28/144148.aspx#144173</link><pubDate>Fri, 28 May 2004 22:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:144173</guid><dc:creator>Cyrus Najmabadi</dc:creator><description>Scot: The issue with that is that while that is true from the IDE perspective, it isn't true from the documentation perspective.   When I see a method with 30 parameters I just cringe.  It's incredibly unclear how it's supposed to work, and generally there are complex rules that you need to know.  For example:&lt;br&gt;If you put in this parameter, then you must also set foo and bar and baz, but you must not set quux or ztesch.&lt;br&gt;&lt;br&gt;IMO, there is something usually very wrong with this sort of API and it should be take care of through subclassing.  I.e. have a subclass with the 4 parameters that are required to be included together.  Have another subclass with those other two that are tied together.  Or, if you have the situation where there is some strange rules about which can work together, you instead have a class dedicated to understanding those rules.  Clear methods on that class can make sure that it's always initialized in a correct manner, and then you can then pass that encapsulated state object around appropriately.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=144173" width="1" height="1"&gt;</description></item><item><title>re: C# vs. VB for Office development (part 1/?)</title><link>http://blogs.msdn.com/b/cyrusn/archive/2004/05/28/144148.aspx#144169</link><pubDate>Fri, 28 May 2004 22:29:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:144169</guid><dc:creator>Scot Boyd</dc:creator><description>I would imagine the answer to your question is that the API is designed with VB as the intended language.  You could probably find other APIs with operations that are easy to do in C# but hard in VB.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=144169" width="1" height="1"&gt;</description></item></channel></rss>