<?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>Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx</link><description>&amp;lt;UPDATE: New CS file attached with a minor bug fix and some major code reduction since I found the SharePoint format converter method :o) &amp;gt; There are a few features that the v1 of Excel Services will not support out of the box. One of these is grabbing</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Using UDFs and Excel Formulas to Get a Query Table on Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#1260730</link><pubDate>Mon, 11 Dec 2006 22:58:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1260730</guid><dc:creator>LuisBE on Services</dc:creator><description>&lt;p&gt;As you may or may not know by now, one of the limitations in this version of Excel Services is the inability&lt;/p&gt;
</description></item><item><title>Working Around Dimensional Limitations of Using Array Formulas for UDF Return Values.</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#1440124</link><pubDate>Tue, 09 Jan 2007 22:44:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1440124</guid><dc:creator>LuisBE on Services</dc:creator><description>&lt;p&gt;As you have noticed, many of my samples below use an Array Formula in Excel to retrieve an array of data&lt;/p&gt;
</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#1579674</link><pubDate>Fri, 02 Feb 2007 07:53:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1579674</guid><dc:creator>Swapna</dc:creator><description>&lt;p&gt;In the attached .CS file may I &amp;nbsp;know what for the following sections:&lt;/p&gt;
&lt;p&gt;CLIENT COMPATIBILITY VARIABLES&lt;/p&gt;
&lt;p&gt;CLIENT COMPATIBILITY&lt;/p&gt;
&lt;p&gt;If you dont include these sections also will this UDF works.&lt;/p&gt;
&lt;p&gt;It would be better if you can tell me how it works and how can we debug this UDF using sharepoint list.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Swapna&lt;/p&gt;</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#1579708</link><pubDate>Fri, 02 Feb 2007 08:05:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1579708</guid><dc:creator>LuisBE</dc:creator><description>&lt;p&gt;The Client Compatibility sessions are only required if you want to register the DLL with COM Interop so you can use it in the Excel Client as well as Excel Services. &amp;nbsp;You don't need that section if you are only using Excel Services.&lt;/p&gt;
&lt;p&gt;More info on that here: &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/cumgranosalis/archive/2006/08/03/ServerClientUDFsCompat1.aspx"&gt;http://blogs.msdn.com/cumgranosalis/archive/2006/08/03/ServerClientUDFsCompat1.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And here is some info on debugging UDFs in general: &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/cumgranosalis/archive/2006/07/12/DebugUDFs.aspx"&gt;http://blogs.msdn.com/cumgranosalis/archive/2006/07/12/DebugUDFs.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#1586944</link><pubDate>Sat, 03 Feb 2007 05:52:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1586944</guid><dc:creator>Starkman</dc:creator><description>&lt;p&gt;Are there currently any plans to provide an update or patch to allow Excel Services to access a SharePoint List with out-of-box functionality?&lt;/p&gt;</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#1588252</link><pubDate>Sat, 03 Feb 2007 09:59:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1588252</guid><dc:creator>LuisBE</dc:creator><description>&lt;p&gt;It is certainly a feature we're looking at and taking into account the customer requests we have already gotten for it there is a very good chance we'll include it in our next release.&lt;/p&gt;
&lt;p&gt;It's too early to tell right now as to when/how the feature would be added, though looking at this historically I wouldn't think it would be through a one-off patch. &amp;nbsp;Given customer demand I'm fairly confident we'll be looking at implementing this as soon as it is feasible.&lt;/p&gt;
</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#1669211</link><pubDate>Tue, 13 Feb 2007 17:08:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1669211</guid><dc:creator>SP</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have followed all th steps mentioned but while opening the excel sheet in Excel am getting following error.&lt;/p&gt;
&lt;p&gt;&amp;quot;values does not fall on the esxpected range&amp;quot;. Is there any restrictions like we need to select the range in excel workbook exactly same as the columns and rows of sharepoint list and call the function.&lt;/p&gt;
&lt;p&gt;will it be a problem if i select less or more than the list dimensions.Please let me know about this as i got stuck here and not to display the list in excel workbook.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#1669863</link><pubDate>Tue, 13 Feb 2007 18:53:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1669863</guid><dc:creator>LuisBE</dc:creator><description>&lt;p&gt;This is probably because the servername/sitename/listname combination does not correspond to a valid list in your SharePoint site.&lt;/p&gt;
&lt;p&gt;Double check that you have the correct spellings of your server, site, and most importantly the List name and the View name as I would suspect these two to be your culprit.&lt;/p&gt;
&lt;p&gt;If you navigate to your list you can get all this information, for example on a sample setup you would have:&lt;/p&gt;
&lt;p&gt;ServerName = Your Server&lt;/p&gt;
&lt;p&gt;SiteName = &amp;quot;&amp;quot; &amp;nbsp;(empty string which == default site)&lt;/p&gt;
&lt;p&gt;listname = Your List Name&lt;/p&gt;
&lt;p&gt;viewname = &amp;quot;All items&amp;quot; (I'm pretty sure this is the default view, though I don't have a server in front of me to be 100%)&lt;/p&gt;
</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#1884970</link><pubDate>Thu, 15 Mar 2007 08:38:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1884970</guid><dc:creator>Nick Vasiliev</dc:creator><description>&lt;p&gt;I have a probelm with that UDF. There are &amp;quot;#VALUE!&amp;quot; in every cells of my excel table when I'm using “=getSharepointView(“&lt;a rel="nofollow" target="_new" href="http://myserver.com"&gt;http://myserver.com&lt;/a&gt;”; “MySSPSite”; “MyList”; “MyView”; TRUE).&lt;/p&gt;
&lt;p&gt;As u can see I'm using &amp;quot;;&amp;quot; because Excel didn't let me to use &amp;quot;,&amp;quot; in formulas.&lt;/p&gt;
&lt;p&gt;And one more question. Did this solution works when function installed on SharePoint server or I must install UDF on every client computer?&lt;/p&gt;</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#1888645</link><pubDate>Thu, 15 Mar 2007 20:37:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1888645</guid><dc:creator>LuisBE</dc:creator><description>&lt;p&gt;You must be using a localized build of Excel where ; is the separator instead of , which is fine and shouldn't be a problem.&lt;/p&gt;
&lt;p&gt;This UDF is meant for Excel Services, and while you could use it through a COM interface on the client the main purpose is to have it on an Excel Server on Sharepoint.&lt;/p&gt;
&lt;p&gt;#VALUE! means the code is throwing an exceptions. It could be a lot of things causing that.&lt;/p&gt;
&lt;p&gt;One thing I just noticed is that the version of the code I have attached on this comment won't work through COM on the Client right now because the impersonation should not be done on the client and I'm not checking that in this version, so make sure you're using this on the server.&lt;/p&gt;
&lt;p&gt;I've updated the attached file, can you try again with that and let me know what you get? &amp;nbsp;Also, let me know wether you're using the UDF on Excel Services or on the client.&lt;/p&gt;
</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#1892163</link><pubDate>Fri, 16 Mar 2007 07:56:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1892163</guid><dc:creator>Nick Vasiliev</dc:creator><description>&lt;p&gt;Thaks for answer.&lt;/p&gt;
&lt;p&gt;Sorry for double post. This just because my comments doesn't publishing about few hours.&lt;/p&gt;
&lt;p&gt;I'm using this UDF on the client. &lt;/p&gt;
&lt;p&gt;Did you change just a text of Imersonation exception in the .cs file?&lt;/p&gt;
&lt;p&gt;I was trying to do this early but get the same result. This because exceptions doesn not dispaly in excel cells. I know it, but didn't know why this exceprions occuring (I didn't know that impersonalization doesn't work).&lt;/p&gt;
&lt;p&gt;I will try to use this UDF on server and let u know about result later.&lt;/p&gt;</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#1893410</link><pubDate>Fri, 16 Mar 2007 12:14:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1893410</guid><dc:creator>Nick Vasiliev</dc:creator><description>&lt;p&gt;I has try to use this UDF on the Server.&lt;/p&gt;
&lt;p&gt;GetSharepointView functions works fine. I have some problem with externalRef function that was published by you on microsoft.com (&amp;quot;An error has occuried.&amp;quot; is in the cells). But I think that because I do something wrong(may be it's because of localization of Excel).&lt;/p&gt;
&lt;p&gt;I'm not good in Excel. Is it possible to automatically set a range of table (if sharepoint list will grown table in Excel must grown to)?&lt;/p&gt;</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#1895058</link><pubDate>Fri, 16 Mar 2007 18:43:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1895058</guid><dc:creator>LuisBE</dc:creator><description>&lt;p&gt;The latest CS file does two things... 1) It includes the impersonation in the Try block so we catch and handle any exceptions there by returning the Exception message. &amp;nbsp;2) It checks whether it is running in the client, and if so does not impersonate so it'll work on the client as well.&lt;/p&gt;
&lt;p&gt;To get more info on the error you should update the Catch block of the function you are getting &amp;quot;An error is occurred&amp;quot; from to return ex.Message instead of the hardcoded error message. &amp;nbsp;This will tell you more about what is happening. &amp;nbsp;It is hardcoded in the sample for securiy reasons (information disclosure).&lt;/p&gt;
</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#1969108</link><pubDate>Wed, 28 Mar 2007 03:02:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1969108</guid><dc:creator>Jackie</dc:creator><description>&lt;p&gt;I am unfamiliar with step 1. &amp;nbsp;How do I install the CS on the server so that when I select a range in Excel it will call on the CS code?&lt;/p&gt;</description></item><item><title>利用UDF在Excel Service 中使用SharePoint 列表的数据</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#2153592</link><pubDate>Mon, 16 Apr 2007 16:05:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2153592</guid><dc:creator>dosboy</dc:creator><description>&lt;p&gt;当我们用SharePoint进行开发的时候, 我们的数据都是存放在SharePoint的列表中的,可喜的是 Excel Service提供了一个UDF功能,我们可以写一个UDF的函数来使用列表中的数据.&lt;/p&gt;
</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#2362686</link><pubDate>Tue, 01 May 2007 23:43:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2362686</guid><dc:creator>AndersR</dc:creator><description>&lt;p&gt;Thow shalt always dispose thy SPSite/SPWeb objects ;-)&lt;/p&gt;
&lt;p&gt;Anders&lt;/p&gt;</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#2363906</link><pubDate>Wed, 02 May 2007 01:08:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2363906</guid><dc:creator>LuisBE</dc:creator><description>&lt;p&gt;You're completely right Anders!! :o)&lt;/p&gt;
&lt;p&gt;I fixed this issue for this code on my MSDN article -&amp;gt; &lt;a rel="nofollow" target="_new" href="http://msdn2.microsoft.com/en-us/library/bb267252.aspx"&gt;http://msdn2.microsoft.com/en-us/library/bb267252.aspx&lt;/a&gt; and apparently forgot to do so here.&lt;/p&gt;
&lt;p&gt;I'll try to update the code soon, in the meanwhile check out the code attached to that article instead (it has other fixes as well besides the disposal problem).&lt;/p&gt;
&lt;p&gt;Thanks!!&lt;/p&gt;
</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#2381430</link><pubDate>Thu, 03 May 2007 00:46:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2381430</guid><dc:creator>AndersR</dc:creator><description>&lt;p&gt;NP :-)&lt;/p&gt;
&lt;p&gt;Another small performance addition would be to use foreach ( SPField field in currVal.Fields )&lt;/p&gt;
&lt;p&gt;instead of a for loop.&lt;/p&gt;
&lt;p&gt;I know its a small thing, but for larger lists the performance impact is quite big (try using StopWatch on the two) since a stored procedure is called behind every time in a for-loop, but only one time in a foreach loop :o)&lt;/p&gt;
&lt;p&gt;Anders&lt;/p&gt;</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#2694149</link><pubDate>Thu, 17 May 2007 14:51:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2694149</guid><dc:creator>Padmaja</dc:creator><description>&lt;p&gt;I have tried this with my sharepoint list, it worked as expected. The same logic I want to apply fro getting the data from Datasource(SQl server).&lt;/p&gt;
&lt;p&gt;Here I am having a problem, because for selecting a range in Excel Sheet client while specifying the UDF, I don't know thw number of rows to be selected for the Range as the data is dynamic.&lt;/p&gt;
&lt;p&gt;And if I select may rows by assuming the number of rows, Excel sheet is displayed with #N/A for the empty cells.&lt;/p&gt;
&lt;p&gt;Is there a way that I can sove the range selection problem with Excel client?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Padmaja&lt;/p&gt;</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#2698944</link><pubDate>Thu, 17 May 2007 20:18:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2698944</guid><dc:creator>LuisBE</dc:creator><description>&lt;p&gt;Padmaja, for info on this see: &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/luisbeonservices/archive/2007/02/01/enable-paging-in-your-array-formula-udfs.aspx"&gt;http://blogs.msdn.com/luisbeonservices/archive/2007/02/01/enable-paging-in-your-array-formula-udfs.aspx&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/luisbeonservices/archive/2007/01/09/working-around-dimensional-limitations-of-using-array-formulas-for-udf-return-values.aspx"&gt;http://blogs.msdn.com/luisbeonservices/archive/2007/01/09/working-around-dimensional-limitations-of-using-array-formulas-for-udf-return-values.aspx&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/luisbeonservices/archive/2006/12/11/using-udfs-and-excel-formulas-to-get-a-query-table-on-excel-services.aspx"&gt;http://blogs.msdn.com/luisbeonservices/archive/2006/12/11/using-udfs-and-excel-formulas-to-get-a-query-table-on-excel-services.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#3940596</link><pubDate>Wed, 18 Jul 2007 21:02:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3940596</guid><dc:creator>Jeffrey</dc:creator><description>&lt;p&gt;I've used the XlUnlimitedUDFsSampleWB, etc from the office framwork and built the project.&lt;/p&gt;
&lt;p&gt;I can get the external references to work on a spreadsheet I open from Sharepoint via Excel, however I am unable to the Sharepoint Query table to work via Excel or Excel Services and the External References doesn't work via Excel Services.&lt;/p&gt;
&lt;p&gt;I've put the contents of the Bin\Release folder into a c:\UDFs folder on the server at this is where I've setup the UDFs config in sharepoint from. &amp;nbsp;I've got &amp;quot;trusted locations&amp;quot; setup to use &lt;a rel="nofollow" target="_new" href="http://ms-sharepoint/sitedirectory/IT/shared"&gt;http://ms-sharepoint/sitedirectory/IT/shared&lt;/a&gt; documents&lt;/p&gt;
&lt;p&gt;How can I troubleshoot the problem?&lt;/p&gt;</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#3940678</link><pubDate>Wed, 18 Jul 2007 21:16:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3940678</guid><dc:creator>LuisBE</dc:creator><description>&lt;p&gt;What errors are you seeing when trying this? &amp;nbsp;Check the EventViewer for logs that could help pinpoint the issue.&lt;/p&gt;
&lt;p&gt;If you see #VALUES, you can get more info by modifying the code to return the Exception Message to Excel so you can identify the error (I don't do it in the sample since it could be considered information disclosure on some environments).&lt;/p&gt;
</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#3940789</link><pubDate>Wed, 18 Jul 2007 21:23:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3940789</guid><dc:creator>Jeffrey</dc:creator><description>&lt;p&gt;Thanks for the reply! &amp;nbsp;there are no entries in the logs that have anything to do with this...&lt;/p&gt;
&lt;p&gt;Yes, I've go the #Value! &lt;/p&gt;
&lt;p&gt;Could you please point me in the right direction for setting up the exception message? &amp;nbsp;I'm not a programmer and am learning VStudio presently...&lt;/p&gt;</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#3944521</link><pubDate>Thu, 19 Jul 2007 01:35:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3944521</guid><dc:creator>LuisBE</dc:creator><description>&lt;p&gt;Most likely the code is failing when trying to impersonate the user opening the workbook.&lt;/p&gt;
&lt;p&gt;You need to enable delegation for the impersonation to work. &amp;nbsp;You can do this with the following command:&lt;/p&gt;
&lt;p&gt;&amp;quot;stsadm -o set-ecssecurity -accessmodel delegation&amp;quot; followed by &amp;quot;iisreset&amp;quot;.&lt;/p&gt;
&lt;p&gt;You can be sure that the impersonation is the issue by either attaching VS to the w3wp process and debugging it (see &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/cumgranosalis/archive/2006/07/12/DebugUDFs.aspx"&gt;http://blogs.msdn.com/cumgranosalis/archive/2006/07/12/DebugUDFs.aspx&lt;/a&gt;) or by moving the line of code starting with &amp;quot;using(...&amp;quot; into the Try block (this should cause &amp;quot;An error has occurred&amp;quot; instead of #VALUE to show in the cell if impersonation is the issue).&lt;/p&gt;
</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#3961132</link><pubDate>Thu, 19 Jul 2007 22:01:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3961132</guid><dc:creator>Jeffrey</dc:creator><description>&lt;p&gt;Thanks! the impersonation was the problem, your command example needed the ssp part but worked perfectly!!!&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;/p&gt;
&lt;p&gt;Jeffrey&lt;/p&gt;</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#4005012</link><pubDate>Mon, 23 Jul 2007 05:41:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4005012</guid><dc:creator>damao</dc:creator><description>&lt;p&gt;The UDF works fine in excel. &lt;/p&gt;
&lt;p&gt;But when i uploaded the excel file to a sharepoint library and view in web browser, i got &amp;quot;#NAME?&amp;quot;; open in excel works fine.&lt;/p&gt;
&lt;p&gt;Could you let me know what I did wrong?&lt;/p&gt;</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#4006302</link><pubDate>Mon, 23 Jul 2007 08:56:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4006302</guid><dc:creator>damao</dc:creator><description>&lt;p&gt;don't worry about my previouse post. i have worked it out. &lt;/p&gt;
&lt;p&gt;I forgot to enabling UDFs on sharepoint server.&lt;/p&gt;</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#4021300</link><pubDate>Tue, 24 Jul 2007 07:06:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4021300</guid><dc:creator>damao</dc:creator><description>&lt;p&gt;When I made changes to the sharepoint list (eg. change one of the column name) or added a new entry to the sharepoint list, the changes don't seem to be updated in Excel unless I reselect the range in Excel grid that the List data returned to, type “=getSharepointView(B1,B2,B3,B4,B5) and CTRL+SHFT+ENTER.&lt;/p&gt;
&lt;p&gt;I would like to auto-refresh the changes to the sharepoint list in Excel &amp;amp; EWA, is this possible? Can you show me how to achieve this plase? Thanks.&lt;/p&gt;</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#4021392</link><pubDate>Tue, 24 Jul 2007 07:20:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4021392</guid><dc:creator>LuisBE</dc:creator><description>&lt;p&gt;Since we are using a UDF to grab the data from Sharepoint that data will only get retrieved upon calculation (since that is the only time the UDF is running).&lt;/p&gt;
&lt;p&gt;There is no way to set up an automatic re-calc for the server unfortunately, your users would have to trigger a re-calc whenever they want to see the latest data.&lt;/p&gt;
</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#4021894</link><pubDate>Tue, 24 Jul 2007 08:21:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4021894</guid><dc:creator>damao</dc:creator><description>&lt;p&gt;can you point me another way of achiveing this please since UDF doesn't auto re-calc.&lt;/p&gt;
&lt;p&gt;I would like to be able to analyze the data from sharepoint lists and present the resluts in a nice format to the users via EWA (pivet tables perhaps). &lt;/p&gt;</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#4593241</link><pubDate>Mon, 27 Aug 2007 17:53:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4593241</guid><dc:creator>Jeffrey</dc:creator><description>&lt;p&gt;How can I remove out the #N/A that is retrieved if there isn't any further entries in the array area?&lt;/p&gt;
&lt;p&gt;I've got an array that will be 20x100 when completely filled by the weekly data, however that is going to take about 3 months. &amp;nbsp;I'm summing the running data...&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Jeffrey&lt;/p&gt;</description></item><item><title>re: Consuming Sharepoint Lists in Excel Services</title><link>http://blogs.msdn.com/luisbeonservices/archive/2006/09/28/consuming-sharepoint-lists-in-excel-services.aspx#4594228</link><pubDate>Mon, 27 Aug 2007 19:41:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4594228</guid><dc:creator>LuisBE</dc:creator><description>&lt;p&gt;The #N/A you see is the error Excel uses when it does not receive a value for a cell in an array formula.&lt;/p&gt;
&lt;p&gt;What this means is that the array formula on the workbook has a bigger dimension than you are returning. &amp;nbsp;To &amp;quot;fix&amp;quot; this, you can always return from your UDF the same dimension array as you have in the workbook, and leave the empty items blank.&lt;/p&gt;
&lt;p&gt;For example, if your array formula occupies a 4x4 range in Excel, return a 4x4 array from C# instead of anything smaller as Excel would pad the missing cells with #N/As&lt;/p&gt;
</description></item></channel></rss>