<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Documentation – 在 Aspose.Cells for Java 中刷新数据透视表和数据透视缓存</title>
    <link>https://docs.aspose.com/cells/zh/java/refresh-pivot-table/</link>
    <description>Recent content in 在 Aspose.Cells for Java 中刷新数据透视表和数据透视缓存 on Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh</language>
    
	  <atom:link href="https://docs.aspose.com/cells/zh/java/refresh-pivot-table/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Java: 查找并刷新父数据透视表的嵌套或子数据透视表</title>
      <link>https://docs.aspose.com/cells/zh/java/find-and-refresh-the-nested-or-children-pivot-tables-of-parent-pivot-table/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/zh/java/find-and-refresh-the-nested-or-children-pivot-tables-of-parent-pivot-table/</guid>
      <description>
        
        
        &lt;h2 id=&#34;可能的使用场景&#34;&gt;&lt;strong&gt;可能的使用场景&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;有时，一个数据透视表使用另一个数据透视表作为数据源，因此被称为子数据透视表或嵌套数据透视表。您可以使用&lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/pivottable#getChildren--&#34;&gt;&lt;strong&gt;PivotTable.getChildren()&lt;/strong&gt;&lt;/a&gt;方法找到父数据透视表的子数据透视表。&lt;/p&gt;
&lt;h2 id=&#34;查找并刷新父数据透视表的嵌套或子数据透视表&#34;&gt;&lt;strong&gt;查找并刷新父数据透视表的嵌套或子数据透视表&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;以下示例代码加载了包含三个数据透视表的&lt;a href=&#34;61767766.xlsx&#34;&gt;示例Excel文件&lt;/a&gt;。底部两个数据透视表是上面数据透视表的子数据透视表，如此屏幕截图所示。该代码使用&lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/pivottable#getChildren--&#34;&gt;&lt;strong&gt;PivotTable.getChildren()&lt;/strong&gt;&lt;/a&gt;方法找到子数据透视表，然后依次刷新它们。&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;find-and-refresh-the-nested-or-children-pivot-tables-of-parent-pivot-table_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;示例代码&#34;&gt;&lt;strong&gt;示例代码&lt;/strong&gt;&lt;/h2&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=PivotTables-FindAndRefreshNestedOrChildrenPivotTables.java&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Java: 获取数据透视表刷新日期和刷新者信息</title>
      <link>https://docs.aspose.com/cells/zh/java/get-pivot-table-refresh-date-and-refresh-by-who-information/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/zh/java/get-pivot-table-refresh-date-and-refresh-by-who-information/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Aspose.Cells现在支持从工作簿中获取刷新日期和刷新者信息。
&lt;/div&gt;

&lt;p&gt;&lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/pivottable#RefreshDate&#34;&gt;&lt;strong&gt;PivotTable.getRefreshDate&lt;/strong&gt;&lt;/a&gt;返回上次刷新数据透视表报告的日期。类似地，&lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/pivottable#RefreshedByWho&#34;&gt;&lt;strong&gt;PivotTable.getRefreshByWho&lt;/strong&gt;&lt;/a&gt;属性返回上次刷新报告的用户姓名。以下示例演示此功能，示例文件可从以下链接下载。&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;77987843.xlsx&#34;&gt;SourcePivotTable.xlsx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;示例代码&lt;/strong&gt;&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-AsposeCellsExamples-PivotTables-GetPivotTableRefreshDate-1.java&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Java: 刷新和计算包含计算项的数据透视表</title>
      <link>https://docs.aspose.com/cells/zh/java/refresh-and-calculate-pivot-table-having-calculated-items/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/zh/java/refresh-and-calculate-pivot-table-having-calculated-items/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Aspose.Cells现在支持刷新和计算具有计算项的数据透视表。请像往常一样使用&lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/pivottable#refreshData--&#34;&gt;&lt;strong&gt;PivotTable.refreshData()&lt;/strong&gt;&lt;/a&gt;和&lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/pivottable#calculateData--&#34;&gt;&lt;strong&gt;PivotTable.caclulateData()&lt;/strong&gt;&lt;/a&gt;执行此函数。
&lt;/div&gt;

&lt;h2 id=&#34;刷新和计算包含计算项的数据透视表&#34;&gt;&lt;strong&gt;刷新和计算包含计算项的数据透视表&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;以下示例代码加载了&lt;a href=&#34;5473428.xlsx&#34;&gt;源Excel文件&lt;/a&gt;，其中包含一个具有“add”、“div”、“div2”等三个计算项的数据透视表。我们首先将单元格 D2 的值更改为 20，然后使用Aspose.Cells API刷新和计算数据透视表，并将工作簿保存为PDF格式。&lt;a href=&#34;5473431.pdf&#34;&gt;输出PDF&lt;/a&gt;中的结果显示Aspose.Cells已成功刷新和计算具有计算项的数据透视表。您可以使用Microsoft Excel手动将值20放入单元格D2，然后通过Alt+F5快捷键或点击数据透视表刷新按钮来验证。&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-main-java-com-aspose-cells-examples-articles-RefreshCalculatePivotTablehavingCalculatedItems-RefreshCalculatePivotTablehavingCalculatedItems.java&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;


      </description>
    </item>
    
  </channel>
</rss>
