使用 Visio Services 搭配 SharePoint 清單Use Visio Services with SharePoint lists

您可以將 Visio 圖表連線至 SharePoint 清單中的資料並將圖表發佈至 SharePoint Server 2013 或 SharePoint Server 2016 時維護該連線。You can connect a Visio diagram to the data in a SharePoint list and maintain that connection when you publish the diagram to SharePoint Server 2013 or SharePoint Server 2016.

若要從 Visio 連線至 SharePoint 清單,您必須至少擁有 SharePoint 清單的 「 讀取 」 權限。同樣地之後將圖表發佈至 SharePoint 文件庫,, 檢視者必須有 [] 清單中的 「 讀取 」 權限才能重新整理清單中的資料。To connect to the SharePoint list from Visio, you must have at least Read access to the SharePoint list. Likewise, once the diagram has been published to a SharePoint document library, viewers must have Read access to the list in order to refresh the data from the list.

注意

此案例需要您已部署的 Visio Services。如需如何部署 Visio Services 的資訊,請參閱規劃 SharePoint Server 中的 Visio ServicesThis scenario requires you to have Visio Services deployed. For information about how to deploy Visio Services, see Plan for Visio Services in SharePoint Server.

發佈連線至 SharePoint 清單的圖表Publishing a diagram connected to a SharePoint list

發佈連線至 SharePoint 清單之已連線資料的圖表,包含兩個步驟:Publishing a data-connected diagram that is connected to a SharePoint list consists of two steps:

  • 在 Visio 中建立圖表與圖表中的圖形連線至 SharePoint 清單中的資料Create the diagram in Visio and connect shapes in the diagram to the data in the SharePoint list

  • 將圖表發佈至 SharePoint 文件庫Publish the diagram to a SharePoint document library

    若要將 Visio 圖表連線至 SharePoint 清單To connect a Visio diagram to a SharePoint list

  1. 在 Visio 中開啟您想要連線至 SharePoint 清單、 圖表或建立新的圖表。In Visio, open the diagram that you want to connect to the SharePoint list, or create a new diagram.

  2. 在 [資料] 索引標籤上按一下 [連結資料至圖形]。On the Data tab, click Link Data to Shapes.

  3. 在 [資料選取器] 頁面上選取 [ Microsoft SharePoint Foundation 清單] 選項,並再按 [下一步On the Data selector page, select the Microsoft SharePoint Foundation list option, and then click Next.

  4. 在 [選取網站] 頁面上的 [網站] 方塊中輸入 SharePoint 清單所在之 SharePoint 網站的 URL 並再按 [下一步On the Select a site page, in the Site box, type the URL for the SharePoint site where the SharePoint list is located, and then click Next.

  5. 在 [選取清單] 頁面上的 [清單] 清單中選取的清單中您要連接,並再按 [下一步On the Select a list page, in the Lists list, select the list to which you want to connect, and then click Next.

  6. 按一下 [完成]。Click Finish.

連線至 SharePoint 清單之後, 可以之資料列拖曳至連結資料至您現有的圖形、 頁面或新增新的圖形。當您完成圖表時,您可以將其儲存至 SharePoint 文件庫並呈現與 Visio Services。Once you have connected to the SharePoint list, you can drag the data rows onto the page to link data to your existing shapes, or add new shapes. When you have completed the diagram, you can save it to a SharePoint document library and render it with Visio Services.

將圖表發佈至 SharePoint 文件庫To publish a diagram to a SharePoint document library

  1. 在 Visio 中,按一下 [檔案]。In Visio, click File.

  2. 按一下 [儲存],然後瀏覽至 SharePoint 文件庫。Click Save, and then browse to a SharePoint document library.

  3. 輸入檔案名稱,和 [儲存Type a file name, and then click Save.

  4. 將圖表儲存至 SharePoint 文件庫、 之後您可以藉由按一下它直接或設定在 Visio Web Access 網頁組件顯示檢視圖表。圖表保持連線至 SharePoint] 清單中,並根據您已設定 Visio services 和 Visio Web Access 網頁組件、 重新整理設定如果適用的重新整理資料中的資料。Once the diagram has been saved to the SharePoint document library, you can view the diagram by clicking it directly or by configuring it to appear in a Visio Web Access Web Part. The diagram remains connected to the data in the SharePoint list, and the data refreshes based on the refresh settings that you have configured for Visio Services and for the Visio Web Access Web Part, if applicable.