在VSTO中保存AS代码在Excel和PPT 2013中无效,但在Word 2013中有效 [英] Save AS code in VSTO can't valid in Excel and PPT 2013, but can valid in Word 2013

查看:46
本文介绍了在VSTO中保存AS代码在Excel和PPT 2013中无效,但在Word 2013中有效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按照下面的代码,我建立一个Word 2013 VTSO 


<?xml 版本=" 1.0" 编码=" UTF-8"?>


< customUI  xmlns ="



 



 



"  onLoad =" Ribbon_Load">



  < commands>    



    < command  idMso =" TabSave"    Enabled =" false " />



    < command  idMso =" TabShare"   Enabled =" false " />



    < command  idMso =" TabPrint"   Enabled =" false " />



  < / commands>



< / customUI>





它可以运行和禁用单词2013中的SAVE AS功能





虽然我也按照代码建立了Excel / PPT 2013 VTSO,它无法正常工作?





我的问题是,Excel / PPT  2013 VTSO的代码是错误的?如何编写正确的代码?非常感谢 


by follow bellow code , I build a Word 2013 VTSO 

<?xml version="1.0" encoding="UTF-8"?>

<customUI xmlns="

http://schemas.microsoft.com/office/2009/07/customui 

 

" onLoad="Ribbon_Load">

  <commands>    

    <command idMso="TabSave"   Enabled="false"/>

    <command idMso="TabShare"  Enabled="false"/>

    <command idMso="TabPrint"  Enabled="false"/>

  </commands>

</customUI>

It can run and disable the SAVE AS function in word 2013

While  I build a Excel/PPT  2013 VTSO by follow the code as well, It can't working?

My question is that , is this code wrong for Excel/PPT  2013 VTSO? how to write a right code? many thanks 


I sale myself ONLY half CNY!

解决方案

by follow bellow code , I build a Word 2013 VTSO 

<?xml version="1.0" encoding="UTF-8"?>

<customUI xmlns="

http://schemas.microsoft.com/office/2009/07/customui 

 

" onLoad="Ribbon_Load">

  <commands>    

    <command idMso="TabSave"   Enabled="false"/>

    <command idMso="TabShare"  Enabled="false"/>

    <command idMso="TabPrint"  Enabled="false"/>

  </commands>

</customUI>

It can run and disable the SAVE AS function in word 2013

While  I build a Excel/PPT  2013 VTSO by follow the code as well, It can't working?

My question is that , is this code wrong for Excel/PPT  2013 VTSO? how to write a right code? many thanks 


这篇关于在VSTO中保存AS代码在Excel和PPT 2013中无效,但在Word 2013中有效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆