读书人

Export to Spreadsheet选项怎么添加

发布时间: 2013-07-09 09:50:48 作者: rapoo

Export to Spreadsheet选项如何添加
好奇怪,自己添加的Dataview webpart标准工具没有Export to Spreadsheet选项,复制SP自带的反而就有,同一个网页,有full权限,感觉好奇怪,不知道问题在哪?请高手指点。
自己添加的data view没有Export to Spreadsheet:
<WebPartPages:XsltListViewWebPart runat="server" AllowHide="True" PartImageSmall="" PartOrder="4" Title="Services Intake NPS (1)" ManualRefresh="False" ViewGuid="{C974ACDB-B1BA-4F6F-BE4F-C7BDC8E957EE}" HelpMode="Modeless" AllowEdit="True" SuppressWebPartChrome="False" DisplayName="Overview" ShowWithSampleData="False" ListId="294d3321-6022-4a5d-a822-8b228db2a169" GhostedXslLink="main.xsl" PageSize="-1" UseSQLDataSourcePaging="True" EnableOriginalValue="False" NoDefaultStyle="TRUE" Default="True" ConnectionID="00000000-0000-0000-0000-000000000000" ExportControlledProperties="False" AutoRefreshInterval="60" ViewContentTypeId="0x" Description="" AllowZoneChange="True" ID="g_c974acdb_b1ba_4f6f_be4f_c7bdc8e957ee" MissingAssembly="Cannot import this Web Part." FrameState="Normal" AllowMinimize="True" Dir="Default" ViewFlag="169" AllowConnect="True" ListUrl="" DetailLink="/services/GlobalIntake/Lists/Services Intake NPS" WebId="00000000-0000-0000-0000-000000000000" PartImageLarge="" TitleUrl="/services/GlobalIntake/Lists/Services Intake NPS" ListName="{294D3321-6022-4A5D-A822-8B228DB2A169}" ExportMode="NonSensitiveData" FrameType="Default" DataSourceID="" IsIncludedFilter="" AllowRemove="True" HelpLink="" IsIncluded="True" IsVisible="True" AsyncRefresh="False" AutoRefresh="False" ListDisplayName="" InitialAsyncDataFetch="False" __MarkupType="vsattributemarkup" __WebPartId="{C974ACDB-B1BA-4F6F-BE4F-C7BDC8E957EE}" __AllowXSLTEditing="true" __designer:CustomXsl="fldtypes_Ratings.xsl" WebPart="true" Height="" Width=""><DataFields>
</DataFields>
<ParameterBindings>
<ParameterBinding Name="dvt_sortdir" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_sortfield" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_startposition" Location="Postback" DefaultValue=""/>
<ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
<ParameterBinding Name="OpenMenuKeyAccessible" Location="Resource(wss,OpenMenuKeyAccessible)" />
<ParameterBinding Name="open_menu" Location="Resource(wss,open_menu)" />
<ParameterBinding Name="select_deselect_all" Location="Resource(wss,select_deselect_all)" />
<ParameterBinding Name="idPresEnabled" Location="Resource(wss,idPresEnabled)" />
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(core,noXinviewofY_DEFAULT)" />
<ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,addnewitem)" />
<ParameterBinding Name="MoreAnnouncements" Location="Resource(wss,moreItemsParen)" />
</ParameterBindings>
<XmlDefinition>
<View Name="{C974ACDB-B1BA-4F6F-BE4F-C7BDC8E957EE}" Type="HTML" Hidden="TRUE" TabularView="FALSE" ReadOnly="TRUE" FreeForm="TRUE" DisplayName="Overview" Url="/services/GlobalIntake/SitePages/NPS_Score_test.aspx" Level="1" BaseViewID="3" ContentTypeID="0x" ImageUrl="/_layouts/images/survey.png" CssStyleSheet="survey.css">
<ViewFields>
<FieldRef Name="Author"/>
<FieldRef Name="_x0031__x0029__x0020_Please_x002"/>


<FieldRef Name="_x0032__x0029__x0020__x0020__x00"/>
<FieldRef Name="_x0033__x0029__x0020__x0020__x00"/>
<FieldRef Name="_x0034__x0029__x0020__x0020__x00"/>
<FieldRef Name="_x0035__x0029__x0020__x0020__x00"/>
</ViewFields>
<RowLimit Paged="TRUE">30</RowLimit>
<Toolbar Type="Standard"/>
</View>
</XmlDefinition>
<xsl><xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal" xmlns:o="urn:schemas-microsoft-com:office:office" ddwrt:ghost="show_all">
<xsl:include href="/_layouts/xsl/main.xsl"/>
<xsl:include href="/_layouts/xsl/internal.xsl"/>
<xsl:param name="AllRows" select="/dsQueryResponse/Rows/Row[$EntityName = '' or (position() >= $FirstRow and position() <= $LastRow)]"/>
<xsl:param name="dvt_apos">'</xsl:param>
<xsl:template match="/" ddwrt:ghost="hide">
<xsl:choose>
<xsl:when test="$RenderCTXOnly='True'">
<xsl:call-template name="CTXGeneration"/>
</xsl:when>
<xsl:when test="($ManualRefresh = 'True')">
<xsl:call-template name="AjaxWrapper" />
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates mode="RootTemplate" select="$XmlDefinition"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template><xsl:template match="View[@BaseViewID='3' and List/@TemplateType='102']" mode="RootTemplate" ddwrt:ghost="hide">
<table class="ms-summarystandardbody" cellpadding="0" cellspacing="0" width="600px" style="margin: 10px;" border="0" rules="rows">
<tr>
<td class="ms-formlabel" width="190px" id="overview01">
<xsl:value-of select="'Survey Name:'"></xsl:value-of>
</td>
<td class="ms-formbody" >
<xsl:value-of select="$XmlDefinition/List/@title"/>
</td>
</tr>
<tr>
<td class="ms-formlabel" valign="top" id="overview02">


<xsl:value-of select="'Survey Description:'"></xsl:value-of>
</td>
<td class="ms-formbody">
<xsl:value-of select="$XmlDefinition/List/@description"/>
</td>
</tr>
<tr>
<td class="ms-formlabel" id="overview03">
<xsl:value-of select="'Time Created:'"></xsl:value-of>
</td>
<td class="ms-formbody">
<xsl:value-of select="$XmlDefinition/List/@created"/>
</td>
</tr>
<tr>
<td class="ms-formlabel" id="overview04">
<xsl:value-of select="'Number of Responses:'"></xsl:value-of>
</td>
<td class="ms-formbody">
<xsl:value-of select="$dvt_RowCount"/>
</td>
</tr>
<tr>
<td>
<img src="/_layouts/images/blank.gif" width="1" height="1" alt="Export to Spreadsheet选项怎么添加" />
</td>
</tr>
</table>
<table border="0" style="margin: 0px 8px 0px 8px;">
<tr>
<td>
<img src="/_layouts/images/blank.gif" width="1" height="4" alt="Export to Spreadsheet选项怎么添加"/>
</td>
</tr>
<tr>
<td nowrap="nowrap">
<img src="/_layouts/images/rect.gif" alt="Export to Spreadsheet选项怎么添加"/>
<span class="ms-toolbar">
<xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes"> </xsl:text>
</span>
<a class="ms-toolbar" accesskey="R" id="diidSurveyResults" href="{$ListUrlDir}/summary.aspx">


<xsl:value-of select="'Show a graphical summary of responses'"/>
</a>
<span class="ms-toolbar">
<xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes"> </xsl:text>
</span>
</td>
</tr>
<tr>
<td nowrap="nowrap">
<img src="/_layouts/images/rect.gif" alt="Export to Spreadsheet选项怎么添加"/>
<span class="ms-toolbar">
<xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes"> </xsl:text>
</span>
<a class="ms-toolbar" accesskey="U" id="diidResultsByUser" href="{$ListUrlDir}/AllItems.aspx">
<xsl:value-of select="'Show all responses'"/>
</a>
<span class="ms-toolbar">
<xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes"> </xsl:text>
</span>
</td>
</tr>
</table>
</xsl:template></xsl:stylesheet></xsl></WebPartPages:XsltListViewWebPart>



spreadsheet
[解决办法]
拿WinMerge比对一下
你发这么一大篇子,怎么看啊
[解决办法]
实在不行自己添加一个ExportToSpreadsheet的链接:
http://weblogs.asp.net/wkriebel/archive/2005/08/22/LinkToExportToSpreadsheet.aspx

读书人网 >行业软件

热点推荐