Ribbon

accessing image files from a separated assembly

落花浮王杯 提交于 2019-12-23 03:44:27
问题 I have several image files I want to share between projects(common icons) I have them in an assembly that would be in every solution I create...I have the files in a folder called Icon and I have the build as content copy always. I have verified that a folder is created with these icons...however my other assemblies are not able to find them... <r:RibbonGroup Header="Users"> <r:RibbonButton > <r:RibbonButton.LargeImageSource> <BitmapImage UriSource="..\Icons\UserIcon.png" /> </r:RibbonButton

Sharing custom macros and custom Excel Ribbon with others via Sharepoint

陌路散爱 提交于 2019-12-23 02:54:14
问题 My colleagues and I use Excel 2013 and Sharepoint I have written some custom macros which I have stored in Personal.xlsb I have also customized the ribbon to add a tab to access these macros. What is the best way of sharing these macros and the ribbon with my colleagues? (and keeping them updated) One way is as follows (and this needs to be done each time there is a change) right-click Ribbon | Customize the Ribbon | Import/Export | Export all Customizations and send this XML file to my

springboot+springcloud相关面试题

左心房为你撑大大i 提交于 2019-12-22 15:08:29
什么是springboot 用来简化spring应用的初始搭建以及开发过程 使用特定的方式来进行配置(properties或yml文件) 创建独立的spring引用程序 main方法运行 嵌入的Tomcat 无需部署war文件 简化maven配置 自动配置spring添加对应功能starter自动化配置 springboot常用的starter有哪些 spring-boot-starter-web 嵌入tomcat和web开发需要servlet与jsp支持 spring-boot-starter-data-jpa 数据库支持 spring-boot-starter-data-redis redis数据库支持 spring-boot-starter-data-solr solr支持 mybatis-spring-boot-starter 第三方的mybatis集成starter springboot自动配置的原理 在spring程序main方法中 添加@SpringBootApplication或者@EnableAutoConfiguration 会自动去maven中读取每个starter中的spring.factories文件 该文件里配置了所有需要被创建spring容器中的bean springboot读取配置文件的方式

feign使用教程

旧街凉风 提交于 2019-12-22 13:54:06
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 简介 Feign是一款java的Restful客户端组件,Feign使得 Java HTTP 客户端编写更方便。Feign 灵感来源于Retrofit, JAXRS-2.0和WebSocket。Feign 最初是为了降低统一绑定Denominator 到 HTTP API 的复杂度,不区分是否支持 ReSTfulness。 为什么选择Feign而不是其他 你可以使用 Jersey 和 CXF 这些来写一个 Rest 或 SOAP 服务的java客服端。你也可以直接使用 Apache HttpClient 来实现。但是 Feign 的目的是尽量的减少资源和代码来实现和 HTTP API 的连接。通过自定义的编码解码器以及错误处理,你可以编写任何基于文本的 HTTP API。 Feign工作机制 Feign 通过注解注入一个模板化请求进行工作。只需在发送之前关闭它,参数就可以被直接的运用到模板中。然而这也限制了 Feign,只支持文本形式的API,它在响应请求等方面极大的简化了系统。同时,它也是十分容易进行单元测试的。 基本用法 基本的使用如下所示,一个对于canonical Retrofit sample的适配。 interface GitHub { @RequestLine("GET /repos/{owner

IRibbonExtensibility GetCustomUI not called

爷,独闯天下 提交于 2019-12-22 09:20:09
问题 I'm developing a shared add-in for Outlook. One of my customers is experiencing trouble on his machine, he does not see my add-in buttons/ui in the main window ribbon. After exploring his environment and my logs I noticed that the function "GetCustomUI" of interface IRibbonExtensibility is not being called in his environment. I'm not sure what can be the cause for the different behavior, why doesn't Outlook call the GetCustomUI on the customer machine? Also - Is it possible to initiate a call

VSTO Word activate ribbon tab

ⅰ亾dé卋堺 提交于 2019-12-22 05:37:07
问题 I have the following ribbon.xml in my word vsto add-in: <tab id="TabLetters" getVisible="IsLettersTabVisible" label="Letters"> <group id="LettersGroup" label="Letters"> <toggleButton id="NewWithTemplate" label="New using template Controls" size="large" imageMso="FileNew" onAction="NewTemplated" /> </toggleButton> </group> </tab> And the following code behind the click event: public void NewTemplated(Office.IRibbonControl control, bool value) { CloseDocument(); var doc = Globals.ThisAddIn

Delphi XE - TRibbon actions always send focus to MainForm

徘徊边缘 提交于 2019-12-22 05:10:54
问题 When I place a TRibbon control on a form that is not the MainForm of the application, that TRibbon's actions (i.e. Cut, Paste) will always return focus to the MainForm after the action is executed. This occurs even if the TForm that holds the TRibbon is not a child of the MainForm. I am using Windows 7 64-bit, Embarcadero RAD Studio XE Version 15.0.3953.35171. Am I using the TRibbon control incorrectly, or is this an issue with the TRibbon? 回答1: This is evidently by design. Sample code

Updating contents of an iRibbon control from another control's callback

二次信任 提交于 2019-12-21 17:33:02
问题 Back in the old days of VBA, we used to be able to directly access controls on a form by name. I'm a little perplexed by how to do this in VBA 2010 (or if it's even possible any longer). Say I have a ribbon control with a dropdown list called "channelList", and elsewhere on the ribbon I have a textbox called "labelText". Each of these items has a unique callback function - when I type something into labelText, its callback fires, and when I select an item from the channelList listbox, its

Open XML SDK - Adding a macro programatically to a Word 2007 document

核能气质少年 提交于 2019-12-21 05:24:10
问题 I am trying to dynamically add a new custom ribbon in a Word 2007 document following teh manual method described in this article :- http://msdn.microsoft.com/en-us/library/aa338202(v=office.12).aspx. The article specifies the following :- a) Create a XML file named customUI.xml which will contain the elements you want to display in the tab and put the same in a folder named customUI. b) Rename your Word 2007 document to .zip. Add the above "customUI" folder to the zip file. c) Add the

VBA control over the ribbon?

故事扮演 提交于 2019-12-18 17:34:37
问题 I am in the process of creating a VBA add-in for Excel 2010, and I used the "Custom UI Editor for Microsoft Office" tool to create my own ribbon. However, I would like to give the user the option to load my add-in without displaying the ribbon, or with different parts of the ribbon visible. With menus, I know you can completely control them programmatically, but ribbons seem to work differently. Is there a way in VBA to not load my customUI.xml ribbon tabs on startup? Is there a way to remove