<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.dotnetmafia.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>Corey Roth [MVP] : Excel Services, SharePoint 2010, SharePoint</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/Excel+Services/SharePoint+2010/SharePoint/default.aspx</link><description>Tags: Excel Services, SharePoint 2010, SharePoint</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>Understanding versioning with Excel Web App</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2012/03/13/understanding-versioning-with-excel-web-app.aspx</link><pubDate>Tue, 13 Mar 2012 22:19:26 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:5596</guid><dc:creator>CoreyRoth</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.dotnetmafia.com/blogs/dotnettipoftheday/rsscomments.aspx?PostID=5596</wfw:commentRss><comments>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2012/03/13/understanding-versioning-with-excel-web-app.aspx#comments</comments><description>&lt;p&gt;If you have used Excel Web App (part of Office Web Apps), you are familiar with the fact that there is no “Save” button.&amp;#160; The changes you make are immediately saved back to SharePoint and you even have multiple people editing the spreadsheet at the same time with Co-authoring.&amp;#160; I had always wondered what happened when it comes to versioning so today I decided to dig a little deeper to find out what happens.&amp;#160; We’ll start with editing an Excel document in the browser with versioning enabled.&amp;#160; Whenever you change the value of a cell, the results are immediately saved back to SharePoint.&amp;#160; However, opening a second browser to look at the versioning shows that we are still on the same version.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ExcelServicesVersionHistory1_6A1A54D1.png"&gt;&lt;img title="ExcelServicesVersionHistory1" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="ExcelServicesVersionHistory1" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ExcelServicesVersionHistory1_thumb_10100528.png" width="397" height="138" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The changes have been saved to SharePoint, but no version has been created.&amp;#160; Effectively, you can think of this as the same thing as calling .SystemUpdate() for you programmers out there.&amp;#160; However, what I have found is if you wait long enough (a couple of minutes), eventually it will go and commit a new version.&amp;#160; Otherwise, it will commit a new version when you &lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ExcelServicesVersionHistory2_0E5F3954.png"&gt;&lt;img title="ExcelServicesVersionHistory2" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="ExcelServicesVersionHistory2" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ExcelServicesVersionHistory2_thumb_7AD1D9B2.png" width="394" height="157" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;A new version will also be created if you close the document (either close out of the file menu or using the breadcrumbs).&amp;#160; Where it gets really interesting is when you have multiple editors.&amp;#160; You’ll see the same behavior as before, where a new version will be saved a few minutes after the first change.&amp;#160; However, if multiple changes have occurred, it will write the last author’s name into the version.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ExcelServicesVersionHistory3_044A9829.png"&gt;&lt;img title="ExcelServicesVersionHistory3" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="ExcelServicesVersionHistory3" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ExcelServicesVersionHistory3_thumb_0A253BC2.png" width="391" height="202" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;However, ultimately whomever closes their browser session last (or times out last apparently) is the final author of the version.&amp;#160; In this case, Anna closes the document first, then I closed it.&amp;#160; It then goes back and updates the author and modified date on version 4.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ExcelServicesVersionHistory4_5CC3A5F1.png"&gt;&lt;img title="ExcelServicesVersionHistory4" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="ExcelServicesVersionHistory4" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ExcelServicesVersionHistory4_thumb_6D5BA0DF.png" width="394" height="202" /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;In summary, Excel Web App will create a new version automatically for you if one hasn’t been created whenever you close the editor or after a period of time has elapsed after the first change.&amp;#160; Whomever makes changes last will end being the ultimate author of that version.&amp;#160; Btw, I have never seen it create a second version of a document when you leave it open for a long period of time.&amp;#160; It appears that it will only create one version for a given Co-authoring editing session.&amp;#160; Hopefully, this help you understand how versioning with Excel Web App works better.&amp;#160; These examples were demonstrated using my Office 365 E3 account.&lt;/p&gt;&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=5596" width="1" height="1"&gt;</description><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/SharePoint/default.aspx">SharePoint</category><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/SharePoint+2010/default.aspx">SharePoint 2010</category><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/Office+Web+Apps/default.aspx">Office Web Apps</category><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/Excel+Services/default.aspx">Excel Services</category><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/Office+365/default.aspx">Office 365</category><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/Office+365+Grid/default.aspx">Office 365 Grid</category></item><item><title>How to: Use the Chart Web Part with Excel Services</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2010/09/02/how-to-use-the-chart-web-part-with-excel-services.aspx</link><pubDate>Thu, 02 Sep 2010 20:04:35 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:3978</guid><dc:creator>CoreyRoth</dc:creator><slash:comments>14</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.dotnetmafia.com/blogs/dotnettipoftheday/rsscomments.aspx?PostID=3978</wfw:commentRss><comments>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2010/09/02/how-to-use-the-chart-web-part-with-excel-services.aspx#comments</comments><description>&lt;p&gt;Hopefully, you were able to impress the boss with my last post on the &lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2010/02/24/impress-the-boss-with-the-sharepoint-2010-chart-web-part.aspx"&gt;Chart Web Part&lt;/a&gt;.&amp;#160; I explained how to use the BCS with the Chart Web Part to display great looking charts using external data.&amp;#160; Another option is to use Excel Services.&amp;#160; Excel Services is pretty easy to setup now and you usually don’t have to do much configuration out of the box.&amp;#160; Let’s see what we can do.&amp;#160; This assumes you have Excel Services installed and configured to trust spreadsheets from your SharePoint server.&lt;/p&gt;  &lt;p&gt;First, let’s start with my super awesome spreadsheet.&amp;#160; It&amp;#39;s a simple example, but hopefully you get the idea.&amp;#160; If you have Excel Services working, you should have the View in Browser option when you are looking at a file in a document library.&amp;#160; Viewing Office documents in the browser might even be your default if you have installed Office Web Apps.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ExcelServicesViewInBrowser_4F4E266C.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ExcelServicesViewInBrowser" border="0" alt="ExcelServicesViewInBrowser" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ExcelServicesViewInBrowser_thumb_29E432FE.png" width="455" height="248" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Clicking on that link, shows us the Excel document we are working with.&amp;#160; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ExcelServicesView_6222AA16.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ExcelServicesView" border="0" alt="ExcelServicesView" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ExcelServicesView_thumb_419B6A64.png" width="490" height="223" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;SharePoint 2010 has much better support for a wide variety of Excel documents.&amp;#160; For the most part it will render most documents even if they have unsupported features in them.&amp;#160; This &lt;a href="http://blogs.msdn.com/b/excel/archive/2009/11/19/excel-services-in-sharepoint-2010-feature-support.aspx"&gt;post&lt;/a&gt; has some details on what is supported and what is not.&lt;/p&gt;  &lt;p&gt;To use Excel Services with the Chart Web Part, we need the URL to the Excel document.&amp;#160; You can get this in a number of ways.&amp;#160; Just be aware if you try to copy a link from the document library it might give you a link to the xlviewer.aspx which will not work in the Chart Web Part.&amp;#160; Make sure you get a link that references the .xslx file directly from your SharePoint server.&lt;/p&gt;  &lt;p&gt;For example, this link will &lt;em&gt;not&lt;/em&gt; work in the Chart Web Part:&lt;/p&gt;  &lt;p&gt;&lt;em&gt;http://sp2010/ECM/_layouts/xlviewer.aspx?id=/ECM/Company%20Documents/2010%20Budget.xlsx&amp;amp;Source=http%3A%2F%2Fsp2010%2FECM%2FCompany%2520Documents%2FForms%2FAllItems%2Easpx&amp;amp;DefaultItemOpen=1&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;This link will work in the Chart Web Part:&lt;/p&gt;  &lt;p&gt;&lt;em&gt;http://sp2010/ECM/Company%20Documents/2010%20Budget.xlsx&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;Once you have the link to your spreadsheet, edit a page and add a Chart Web Part to it.&amp;#160; If you don’t remember how, you can find the details on it on my previous &lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2010/02/24/impress-the-boss-with-the-sharepoint-2010-chart-web-part.aspx"&gt;Chart Web Part&lt;/a&gt; post.&amp;#160; Now, click the &lt;em&gt;Data &amp;amp; Appearance&lt;/em&gt; link and then &lt;em&gt;Connect Chart to Data&lt;/em&gt;.&amp;#160; Now choose Excel Services.&amp;#160; You will then be presented with a screen prompting you for the Excel Web Service URL, Excel Workbook Path, and Range Name.&amp;#160; The Excel Web Service URL should already be filled out for you.&amp;#160; It will look something like this.&lt;/p&gt;  &lt;p&gt;&lt;em&gt;http://sp2010/_vti_bin/excelservice.asmx&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;Now you need to provide a path to the workbook.&amp;#160; Use a complete URL like the one I used above.&amp;#160; The last thing you need to provide is the range of the spreadsheet you want to use.&amp;#160; Here you need to know some Excel basics.&amp;#160; You start by specifying the sheet name followed by the first cell using the !, $, and : delimiters.&amp;#160; In my case I want A1 through B5 on Sheet1, it looks like this:&lt;/p&gt;  &lt;p&gt;&lt;em&gt;Sheet1!$A$1:$B$5&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;If&amp;#160; the first row of your spreadsheet has column names, check the box.&amp;#160; Here is what it looks like completed.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartExcelServicesConfig2_4BEC8EC4.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ChartWebPartExcelServicesConfig2" border="0" alt="ChartWebPartExcelServicesConfig2" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartExcelServicesConfig2_thumb_79017B92.png" width="476" height="146" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Click Next and if Excel Services like your spreadsheet, it should give you a preview of the data.&amp;#160; If it doesn’t like it, it might give you a user friendly error or it might give you a &lt;em&gt;Exception has been thrown by the target of an invocation&lt;/em&gt; error.&amp;#160; If that is the case, there is likely an unsupported feature such as a chart that you need to remove for the spreadsheet to work.&amp;#160; Here is what the preview looks like.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartExcelServicesConfig3_515AFF68.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ChartWebPartExcelServicesConfig3" border="0" alt="ChartWebPartExcelServicesConfig3" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartExcelServicesConfig3_thumb_3EA605B1.png" width="473" height="154" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Click next, and you will choose the Axis and other settings for the chart.&amp;#160; Change any settings you want and then you are done.&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartExcelServicesConfig4_7E03B941.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ChartWebPartExcelServicesConfig4" border="0" alt="ChartWebPartExcelServicesConfig4" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartExcelServicesConfig4_thumb_4F3E009F.png" width="462" height="267" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Once you click finish you should be able to see your data using the default chart.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartExcelServicesComplete_0E9BB430.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ChartWebPartExcelServicesComplete" border="0" alt="ChartWebPartExcelServicesComplete" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartExcelServicesComplete_thumb_74C77E00.png" width="335" height="276" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Of course if you want another type of chart, you can click &lt;em&gt;Data &amp;amp; Appearance &lt;/em&gt;and pick another type from the &lt;em&gt;Customize your Chart &lt;/em&gt;link.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartExcelServicesComplete2_62128449.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ChartWebPartExcelServicesComplete2" border="0" alt="ChartWebPartExcelServicesComplete2" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartExcelServicesComplete2_thumb_2C99C224.png" width="241" height="244" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;One thing to note is that Excel Services does cache data for a while so if you change data in the spreadsheet, it might take a few minutes for the graph to reflect your changes.&amp;#160; This was a simple example, but as you can see it’s not very complicated to get a nice looking chart up and running quickly.&amp;#160; If you do run into issues, I recommend tearing your spreadsheet apart and look for unsupported features.&lt;/p&gt;&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=3978" width="1" height="1"&gt;</description><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/SharePoint/default.aspx">SharePoint</category><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/SharePoint+2010/default.aspx">SharePoint 2010</category><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/Excel+Services/default.aspx">Excel Services</category></item></channel></rss>