{"id":1051,"date":"2009-04-05T17:08:08","date_gmt":"2009-04-06T01:08:08","guid":{"rendered":"https:\/\/www.zubairalexander.com\/stage\/?p=1051"},"modified":"2018-01-28T17:52:35","modified_gmt":"2018-01-29T00:52:35","slug":"excel-services-in-moss-2007","status":"publish","type":"post","link":"https:\/\/www.zubairalexander.com\/blog\/excel-services-in-moss-2007\/","title":{"rendered":"Excel Services in MOSS 2007"},"content":{"rendered":"<p>Excel Services is one of the coolest features in\u00a0Microsoft Office SharePoint Server (MOSS) 2007. The primary purpose of Excel Services is\u00a0control, secure, and manage access to Excel workbooks. Microsoft defines Excel Services as an enterprise-class application server that allows\u00a0rendering of\u00a0workbooks (.xslx, xslb), and it enables you to easily reuse workbook components, such as charts and PivotTable reports, that can be rendered in business intelligence dashboards.<\/p>\n<p><span class=\"ewr-dialog-font\">For security purposes, Excel Services only processes connections that use trusted data providers. Luckily, most common data connections are already trusted by Excel Services, such as ODBC, OLEDB, SQL Server, and OLAP. You would only need to add additional data providers for custom solutions.<\/span><\/p>\n<p>In this article. I am going to demonstrate how you can take advantage of some of the functionality offered by Excel Calculation Services.<\/p>\n<p><span style=\"color: #000000;\"><strong>Displaying Excel Spreadsheets as\u00a0Web Pages in Browser<\/strong><\/span><\/p>\n<p>There are several ways to utilize Excel Services in MOSS 2007. For example, you can display Excel spreadsheet as a Web page in your browser. Simply create a document library,\u00a0go\u00a0to Document Library\u00a0Settings, click Advanced settings, and under Browser-enabled Documents\u00a0check the box \u00a0&#8220;Display as a Web page&#8221; and click OK. I use Office Ultimate 2007 which allows publishing\u00a0to Excel Services. To publish a spreadsheet to a certain Document Library, click the Office button, click Publish, and then select\u00a0Excel services.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1052\" title=\"publish_to_excel_services\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/03\/publish_to_excel_services.jpg\" alt=\"publish_to_excel_services\" width=\"425\" height=\"474\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/03\/publish_to_excel_services.jpg 425w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/03\/publish_to_excel_services-269x300.jpg 269w\" sizes=\"(max-width: 425px) 100vw, 425px\" \/><\/p>\n<p>You can also upload the spreadsheet to a Document Library and when you open the spreadsheet, it will display it in your browser. Here&#8217;s the step-by-step-procedure.<\/p>\n<p><span style=\"text-decoration: underline;\">NOTE<\/span>: <em>If you are a Site Owner and do not have the appropriate permissions to access Central Administration site, your SharePoint administrator needs to perform the following steps on the Microsoft Office SharePoint Server (MOSS) 2007 before you can take advantage of the Excel Calculation Services functionality.<\/em><\/p>\n<p><span style=\"color: #000080;\"><strong>Configure Excel Calculation Services<\/strong><\/span><\/p>\n<p>1.\u00a0Start\u00a0the\u00a0Central Administration site.<\/p>\n<p>2. Go to the Shared Services Provider (SSP) Administration site for the Web application that&#8217;s hosting the Web site.<\/p>\n<p>3. Under Excel Services Settings click Trusted file locations.<\/p>\n<p>4. Click Add Trusted File Location. Unless Trusted File Location is configured in SharePoint, Excel Services will not work.<\/p>\n<p>5. In the Address box type the URL to the trusted file location, e.g. <span style=\"text-decoration: underline;\">http:\/\/www.contoso.com\/SharedDocuments\/Forms\/AllItems.aspx<\/span>.<\/p>\n<p><span style=\"color: #000080;\"><strong>Create Excel Spreadsheet<\/strong><\/span><\/p>\n<p>6. Create an Excel Spreadsheet. I created a spreadsheet that I am going to use as a a sample. Excel Services allow\u00a0exposing named cells in a spreadsheet as parameters when you publish then in\u00a0SharePoint.<\/p>\n<p>7. To configure named ranges, highlight an\u00a0area in the spreadsheet, as shown below, right-click and select Name a Range.<\/p>\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/03\/name_a_range.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-1054\" title=\"name_a_range\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/03\/name_a_range-300x239.jpg\" alt=\"name_a_range\" width=\"300\" height=\"239\" \/><\/a><\/p>\n<p>8. You can view all the named ranges by clicking on the drop-down button in the upper left hand corner, highlighted in red below.<\/p>\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/03\/viewing_named_ranges.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-1055\" title=\"viewing_named_ranges\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/03\/viewing_named_ranges-235x300.jpg\" alt=\"viewing_named_ranges\" width=\"235\" height=\"300\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/03\/viewing_named_ranges-235x300.jpg 235w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/03\/viewing_named_ranges.jpg 566w\" sizes=\"(max-width: 235px) 100vw, 235px\" \/><\/a><\/p>\n<p>Another option is to use the Defined Names area (on Formulas tab) on the Office ribbon. This section also contains Name Manager that you can use to manage all the named ranges.<\/p>\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/03\/name_manager.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-1056\" title=\"name_manager\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/03\/name_manager-300x75.jpg\" alt=\"name_manager\" width=\"300\" height=\"75\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/03\/name_manager-300x75.jpg 300w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/03\/name_manager.jpg 632w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>9. Save and upload the Excel file to a Document Library.<\/p>\n<p><span style=\"color: #000080;\"><strong>Display Excel Content\u00a0as a Web Page<\/strong><\/span><\/p>\n<p>10.\u00a0In the Document Library,\u00a0click on Settings, Document Library Settings, Advanced settings (located under General Settings).<\/p>\n<p>11. Under Browser-enabled Documents, check the radio button &#8220;Display as a Web page&#8221; and then click OK. The default option opens the spreadsheets in Excel. However, if a user doesn&#8217;t have Excel on their computer, you can display the spreadsheet in a Web page.<\/p>\n<p>Users will now be able to view Excel spreadsheet content in their Web browsers, even if they don&#8217;t have Excel installed on their computer. However, they will not be able to edit the data because it is not in an Excel spreadsheet format, it is simply displayed as a Web page.<\/p>\n<p>Let&#8217;s look at another option that Excel Services offer. This option will allow us to display Excel content directly in a Web part.<\/p>\n<p><span style=\"color: #000000;\"><strong>Displaying Excel Spreadsheet Content in a Web Part<\/strong><\/span><\/p>\n<p>Displaying Excel data on a Web page can come handy but displaying content in a Web part can be\u00a0even more useful. There are several advantages to this technique but perhaps the biggest advantage is that you can simply modified the content in an Excel spreadsheet and the content displayed in the Web part can be quickly updated. SharePoint can display data in columns but does not have the ability to display certain types of content, such as charts. Imagine having an Excel chart that can not only be displayed in SharePoint, it can be dynamically updated by modifying the Excel chart in a spreadsheet.<\/p>\n<p>The following step-by-step procedure demonstrates how you can display content in an Excel spreadsheet directly in a SharePoint Web part.<\/p>\n<p>1. Perform steps 1-10, if you haven&#8217;t already.<\/p>\n<p>2. In step 11 above the assumption was that clients do not have Excel installed on their computers and therefore we checked the box\u00a0&#8220;Open in the client application.&#8221;\u00a0Now we will assume that the clients have Excel on their computers, which is the more likely scenario, so let&#8217;s check the box &#8220;Open in the client application.&#8221;<\/p>\n<p>3. Add a Web part to the page you are working with.<\/p>\n<p>4. Select the Excel Web Access Web part under the Business Data section and click Add.<\/p>\n<p>5. Open the tool pane by clicking the link &#8220;Click here to open the tool pane.&#8221;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1067\" title=\"excell_web_access\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/excellwebaccess.jpg\" alt=\"excell_web_access\" width=\"729\" height=\"237\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/excellwebaccess.jpg 729w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/excellwebaccess-300x98.jpg 300w\" sizes=\"(max-width: 729px) 100vw, 729px\" \/><\/p>\n<p>6. In the Workbook box click the browse button and add the Excel spreadsheet. In my example I added the workbook called &#8220;Sales by Region &#8211; 2008&#8221;. You can either use URLs or UNC in this box. I typically use URLs.<\/p>\n<p>7. You can enter the name of\u00a0a defined region that you want it loaded as default\u00a0in\u00a0Named Item box. For example, I typed the name <em>Chart 1<\/em> as my default\u00a0named range so when you refresh the page Chart 1 will be displayed.<\/p>\n<p>8. You can modify the title of the Web part under Appearance if you want.<\/p>\n<p>9. Click OK to apply the changes.<\/p>\n<p>10. If you get\u00a0the following Access Denied error, see the troubleshooting section\u00a0in this article for more details.<\/p>\n<p><em><span class=\"ewr-dialog-font\">You do not have permissions to open this file on Excel Services.<br \/>\n<\/span><span class=\"ewr-dialog-font\">Make sure that the file is in an Excel Services trusted location and that you have access to the file.<\/span><\/em><\/p>\n<p><em><span class=\"ewr-dialog-font\"><img decoding=\"async\" class=\"alignnone size-full wp-image-1069\" title=\"ecs_access_denied\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/ecs_access_denied.jpg\" alt=\"ecs_access_denied\" width=\"727\" height=\"186\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/ecs_access_denied.jpg 727w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/ecs_access_denied-300x77.jpg 300w\" sizes=\"(max-width: 727px) 100vw, 727px\" \/><\/span><\/em><\/p>\n<p><span class=\"ewr-dialog-font\">11. At this time you should be able to see the content of your Excel spreadsheet in a SharePoint Web part, thanks to Excel Calculation Services and Excel Web Access Web part. You can select a different Named Range from the View drop-down menu to modify the view.<\/span><\/p>\n<p><span class=\"ewr-dialog-font\"><img decoding=\"async\" class=\"alignnone size-full wp-image-1074\" title=\"web_part_view\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/web_part_view.jpg\" alt=\"web_part_view\" width=\"736\" height=\"344\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/web_part_view.jpg 736w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/web_part_view-300x140.jpg 300w\" sizes=\"(max-width: 736px) 100vw, 736px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\"><span class=\"ewr-dialog-font\"><strong>Troubleshooting<\/strong><\/span><\/span><\/p>\n<p><span style=\"color: #000080;\"><span class=\"ewr-dialog-font\"><strong>Access Denied Error<\/strong><\/span><\/span><\/p>\n<p><span class=\"ewr-dialog-font\">One of the more common errors that you might see is the Access Denied error. If you try to open an Excel workbook in the Web part and get Access Denied error, there are several things you can do to fix the problem.<\/span><\/p>\n<p><span class=\"ewr-dialog-font\"><span style=\"text-decoration: underline;\">NOTE<\/span>: <em>If you are a Site Owner or a Business Manager who doesn&#8217;t have access to the MOSS 2007, you&#8217;ll need help from your administrator because these steps need to be performed on the server.<\/em><\/span><\/p>\n<p><span class=\"ewr-dialog-font\">1. Make sure that the Excel\u00a0Services have been started for the SSP that\u00a0is configured for the Web application you are working with.<\/span><\/p>\n<p><span class=\"ewr-dialog-font\">2. Go to the SSP and click Edit\u00a0Excel Service settings under the Excel Service Settings section.\u00a0If you are\u00a0using Impersonation for the File Access Method, switch to\u00a0the Process account instead. The File Access Method is used by Excel Calculation Services to retrieve workbooks from all non-Windows SharePoint Services trusted file locations. <em>Impersonation<\/em> accesses the files as the end user account. <em>Process account<\/em> accesses the files as Excel Calculation Services process account. If this change doesn&#8217;t make a difference, switch the setting back to the default.<\/span><\/p>\n<p><span class=\"ewr-dialog-font\">3.\u00a0Depending on the type of authentication you are using, you may want to configure the Unattended Service Account\u00a0under the External Data section of\u00a0Excel Services settings. The Unattended Account is a special account used by\u00a0Excel Services when it tries to authenticate to a data source that is not using Integrated Windows authentication. This account is used to connect to data sources that require authentication, without this configuration the connections to the data source can fail. In general, keep in mind that you&#8217;ll only need\u00a0to configure unattended account\u00a0if you want to enable connections that have their authentication set to either <em>None<\/em> or <em>SSO<\/em> (Single Sign-On), where the SSO application ID is not using Windows credentials.\u00a0When you configure this account, enter it in the format\u00a0<em>Domain\\AccountName<\/em>, as shown below.<\/span><\/p>\n<p><span class=\"ewr-dialog-font\"><img decoding=\"async\" class=\"alignnone size-full wp-image-1071\" title=\"unattended_srvc_acct\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/unattended_srvc_acct.jpg\" alt=\"unattended_srvc_acct\" width=\"423\" height=\"326\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/unattended_srvc_acct.jpg 423w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/04\/unattended_srvc_acct-300x231.jpg 300w\" sizes=\"(max-width: 423px) 100vw, 423px\" \/><\/span><\/p>\n<p><span class=\"ewr-dialog-font\">4. Yet another reason for this error could be related to the <em>Trusted file location<\/em>.\u00a0Go to the\u00a0Trusted File Location (located in SSP Administration site under Excel Services Settings section. Check the <em>Children trusted<\/em> box under Trust Children. Location type should be Windows SharePoint Services.<\/span><\/p>\n<p><span class=\"ewr-dialog-font\">5. When you add the location of the Trusted File Location you may have to try a few different tricks. If the full path is not working, try using only the name of the Document Library. You can also try adding the path to the entire SharePoint site. If you are working with a subsite and or if in general the URL has a space, you may need to enter %20 in place of empty space.<\/span><\/p>\n<p><span class=\"ewr-dialog-font\">6. If the file is uploaded to a SharePoint library and you are pointing to a file in the library, make sure that your Location Type is set to Windows SharePoint Services, not UNC or HTTP. For example, let&#8217;s say you want to add path to a subsite called Training in the SeattlePro1.com domain. You will enter the URL <span style=\"text-decoration: underline;\"><em>http:\/\/www.seattlepro1.com\/training<\/em><\/span> in the Address box and then leave the Location Type to the default <em>Windows SharePoint Services<\/em>. Keep in\u00a0mind that you can add multiple Trusted File Locations if you want.<\/span><\/p>\n<p><span class=\"ewr-dialog-font\"><\/span><\/p>\n<p><span style=\"color: #000080;\"><span class=\"ewr-dialog-font\"><strong>Miscellaneous<\/strong><\/span><\/span><\/p>\n<p><span class=\"ewr-dialog-font\">1. On the Trusted File Location page verify that\u00a0your workbook is not larger than the default value of 10MB. By default, Excel Services cannot\u00a0open Excel files that are\u00a0larger than 10MB. Change the\u00a0Maximum Workbook Size setting under Workbook Properties accordingly. The allowed values range between 1 and 2000 in MB.<\/span><\/p>\n<p><span class=\"ewr-dialog-font\">2. If you are displaying a\u00a0chart, keep in mind that by default Excel Services can only open charts that are no larger than 1MB in size. You may have to adjust this setting to display the chart.<\/span><\/p>\n<hr \/>\n<p><span style=\"font-size: xx-small; font-family: Verdana;\">Copyright \u00a92009 Zubair Alexander. All rights reserved.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel Services is one of the coolest features in\u00a0Microsoft Office SharePoint Server (MOSS) 2007. The primary purpose of Excel Services is\u00a0control, secure, and manage access to Excel workbooks. Microsoft defines Excel Services as an enterprise-class application server that allows\u00a0rendering of\u00a0workbooks (.xslx, xslb), and it enables you to easily reuse workbook components, such as charts and [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[43,54,11],"tags":[],"class_list":["post-1051","post","type-post","status-publish","format-standard","hentry","category-articles","category-sharepoint","category-tips-tricks"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/1051","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/comments?post=1051"}],"version-history":[{"count":0,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/1051\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/media?parent=1051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/categories?post=1051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/tags?post=1051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}