簡體   English   中英

使用C#打開Word時如何禁用ms Word 2010中的另存為和保存按鈕

[英]How to disable Save As and Save buttons from ms word 2010 when word open using c#

使用C#打開Word時,如何在ms Word 2010中禁用“另存為”和“保存”按鈕。

您需要將Ribbon XML項目添加到項目中。

功能區是自定義Microsoft Office應用程序的用戶界面(UI)的工具。

<?xml version="1.0" encoding="UTF-8"?>
 <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" 
    onLoad="OnLoad" > 
    <commands> 
      <command idMso="FileSaveAs" enabled="false" />
      <command idMso="FileSave" enabled="false" />
    </commands> 
 </customUI>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM