<?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>Making Excel Services UDFs work on Excel 2007 - Part 2</title><link>http://blogs.msdn.com/cumgranosalis/archive/2006/08/30/ServerClientUDFsCompat2.aspx</link><description>Second part about how to use Excel Services UDFs inside Excel. This one discusses how to adapt Excel Services UDFs that have object arrays as a parameter.</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Microsoft Excel 2007 (nee Excel 12) : Making Excel Services UDFs Work in Excel 2007</title><link>http://blogs.msdn.com/cumgranosalis/archive/2006/08/30/ServerClientUDFsCompat2.aspx#735572</link><pubDate>Fri, 01 Sep 2006 20:34:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:735572</guid><dc:creator>Microsoft Excel 2007 (nee Excel 12) : Making Excel Services UDFs Work in Excel 2007</dc:creator><description>PingBack from &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/excel/archive/2006/09/01/735561.aspx"&gt;http://blogs.msdn.com/excel/archive/2006/09/01/735561.aspx&lt;/a&gt;</description></item><item><title>Pre-requisites</title><link>http://blogs.msdn.com/cumgranosalis/archive/2006/08/30/ServerClientUDFsCompat2.aspx#776573</link><pubDate>Fri, 29 Sep 2006 08:48:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:776573</guid><dc:creator>LuisBE on Services</dc:creator><description>Instead of re-hashing information I've found elsewhere I figured a pre-reqs post would be good.&lt;br&gt;One...</description></item><item><title>re: Making Excel Services UDFs work on Excel 2007 - Part 2</title><link>http://blogs.msdn.com/cumgranosalis/archive/2006/08/30/ServerClientUDFsCompat2.aspx#1607527</link><pubDate>Tue, 06 Feb 2007 03:17:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1607527</guid><dc:creator>TS</dc:creator><description>&lt;p&gt;I have mentioned this before, but I was thinking that with Office 2007, the need to mess with COM altogether should be a thing of the past. Why aren't there ways of doing everything without COM? Is that a plan to remove all dependence on COM (i personally don't like getting my hands dirty messing with it).&lt;/p&gt;
&lt;p&gt;thanks !&lt;/p&gt;
</description></item><item><title>re: Making Excel Services UDFs work on Excel 2007 - Part 2</title><link>http://blogs.msdn.com/cumgranosalis/archive/2006/08/30/ServerClientUDFsCompat2.aspx#1607743</link><pubDate>Tue, 06 Feb 2007 04:08:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1607743</guid><dc:creator>Shahar</dc:creator><description>&lt;p&gt;I cannot comment about future developments in Office of course.&lt;/p&gt;
&lt;p&gt;However, this I do know:&lt;/p&gt;
&lt;p&gt;1. Though I don't know for sure, I personally doubt we will &amp;quot;get rid of COM&amp;quot; anytime soon - there are too many solutions that rely on it and that would break all of them.&lt;/p&gt;
&lt;p&gt;2. With every version, I think we make some nice progress with the managed story we have. Hopefuly at some point in the future (and I really cant say when, because I honestly dont know) there will be less and less need for COM when programming against Excel.&lt;/p&gt;
</description></item><item><title>Erweiterungsbibliothek für Excel-Tabellenfunktionen in Managed Code schreiben</title><link>http://blogs.msdn.com/cumgranosalis/archive/2006/08/30/ServerClientUDFsCompat2.aspx#8372282</link><pubDate>Wed, 09 Apr 2008 15:58:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8372282</guid><dc:creator>Open XML, VSTO, Deployment, .NET und anderes</dc:creator><description>&lt;p&gt;Hin und wieder werde ich gefragt, ob man mit VSTO auch Tabellenfunktionen f&amp;#252;r Excel schreiben kann. Nun,&lt;/p&gt;
</description></item><item><title>re: Making Excel Services UDFs work on Excel 2007 - Part 2</title><link>http://blogs.msdn.com/cumgranosalis/archive/2006/08/30/ServerClientUDFsCompat2.aspx#8879095</link><pubDate>Tue, 19 Aug 2008 19:04:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8879095</guid><dc:creator>Johnson</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt; &amp;nbsp;How the following code snippet can make work for excel 2007 client - Here Object array as output - I'd really appreciate if you can explain how to do it. &lt;/p&gt;
&lt;p&gt;[UdfMethod(IsVolatile = true, ReturnsPersonalInformation = true)]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public object[,] getSharepointView(string serverName,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string siteName,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string listName,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string viewName,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bool getTitles)&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
</description></item><item><title>re: Making Excel Services UDFs work on Excel 2007 - Part 2</title><link>http://blogs.msdn.com/cumgranosalis/archive/2006/08/30/ServerClientUDFsCompat2.aspx#8879114</link><pubDate>Tue, 19 Aug 2008 19:13:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8879114</guid><dc:creator>Shahar</dc:creator><description>&lt;p&gt;Hi Johnson,&lt;/p&gt;
&lt;p&gt;This should pretty much work the same way on client - what error are you seeing?&lt;/p&gt;
</description></item><item><title>re: Making Excel Services UDFs work on Excel 2007 - Part 2</title><link>http://blogs.msdn.com/cumgranosalis/archive/2006/08/30/ServerClientUDFsCompat2.aspx#8879167</link><pubDate>Tue, 19 Aug 2008 19:34:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8879167</guid><dc:creator>Johnson</dc:creator><description>&lt;p&gt;I'm seeing #VALUE- but the following one is working fine&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[UdfMethod(IsVolatile = true, ReturnsPersonalInformation = true)]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public object externalRef(string workbookPath,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string sheetName,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string range)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt;So i'm suspecting that an object array output giving error.&lt;/p&gt;
</description></item><item><title>re: Making Excel Services UDFs work on Excel 2007 - Part 2</title><link>http://blogs.msdn.com/cumgranosalis/archive/2006/08/30/ServerClientUDFsCompat2.aspx#8959816</link><pubDate>Sat, 20 Sep 2008 11:52:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8959816</guid><dc:creator>Youdhbir Singh</dc:creator><description>&lt;p&gt;//You make following changes in the code (class1.cs) provided and pass your site base address in site name&lt;/p&gt;
&lt;p&gt;// For me sitename=&amp;quot;&lt;a rel="nofollow" target="_new" href="http://hddlntdmt0281:100&amp;quot;"&gt;http://hddlntdmt0281:100&amp;quot;&lt;/a&gt;. And press ctrl+shift+enter to run your UDF (as it is &lt;/p&gt;
&lt;p&gt;// returning array. Please let me know if u still get problem. :-)&lt;/p&gt;
&lt;p&gt;public object[,] getSharepointView(string siteName, string listName, string viewName, bool getTitles)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// We should impersonate the current user viewing EWR... not the UDF manager...&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//using (WindowsImpersonationContext wiContext = impersonateUser())&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Grab Sharepoint Objects&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SPSite site = new SPSite(siteName);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SPList list = site.AllWebs[&amp;quot;&amp;quot;].Lists[listName];&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SPView view = list.Views[viewName];&lt;/p&gt;
</description></item><item><title>re: Making Excel Services UDFs work on Excel 2007 - Part 2</title><link>http://blogs.msdn.com/cumgranosalis/archive/2006/08/30/ServerClientUDFsCompat2.aspx#9300136</link><pubDate>Thu, 08 Jan 2009 23:55:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9300136</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;How do you stop the Excel web access returning #VALUE! when using the above code in a UDF?&lt;/p&gt;
</description></item><item><title>re: Making Excel Services UDFs work on Excel 2007 - Part 2</title><link>http://blogs.msdn.com/cumgranosalis/archive/2006/08/30/ServerClientUDFsCompat2.aspx#9300137</link><pubDate>Thu, 08 Jan 2009 23:55:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9300137</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;How do you stop the Excel web access returning #VALUE! when using the above code in a UDF?&lt;/p&gt;
</description></item></channel></rss>