Ribbon

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

心已入冬 提交于 2019-12-03 16:33:47
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 following relationship to the "_rels/rels" file in the .zip file :- <Relationship Type="http://schemas

jQuery: recommendations on the jQuery Ribbon plugins out there?

依然范特西╮ 提交于 2019-12-03 15:51:47
I see there are several jQuery plugins out there that attempt to reproduce the Ribbon (Fluent) UI that Microsoft introduced with Word 2007: The ones I found include: http://code.google.com/p/jquery-ui-ribbon/ http://dev.mikaelsoderstrom.se/scripts/jquery/ribbon/ Any experiences with either of these? recommendations for or against? I tried using this, but did not show up correctly, menu would stay showed up, and when i finally got it to hide, when i click it would hide instantly.. so i gave up on it for now Abhi You can go for http://jqueryribbon.codeplex.com/ It is the best one. I rather this

Excel 2013 VSTO Ribbon & Edit Controls

会有一股神秘感。 提交于 2019-12-03 15:22:29
The quick overview is I have an Excel AddIn targeting Excel 2013. The AddIn has a custom RibbonUI that contains a couple of read-only EditBoxes that contain workbook specific values. The same AddIn works fine in Excel 2007 & 2010, with the MDI interface, but with 2013 and its SDI interface. With a simple VSTO AddIn, I've added a simple RibbonUI with an EditBox. For testing purposes, I'm just trying to get the EditBox to reflect the Workbook.Fullname of the window in which it appears. Far as I've been able to find, the RibbonUI is a singleton and there's no apparent way to control the values of

How to embed images in Office file for custom Ribbon

蓝咒 提交于 2019-12-03 15:11:30
I am developing a custom ribbon extension for Excel, in which a control requires different custom images. I managed to use some images located in my filesystem, but I would like to embed these images inside the .xlsm file. Is it possible to do it and to reference them from the VBA code that updates the image of the control? For test purposes, this is the XML that defines my custom ribbon: <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="ribbonLoaded"> <ribbon> <tabs> <tab idMso="TabHome" > <group id="customGroup1" label="My Group" insertAfterMso="GroupFont">

Windows Ribbon Framework: How to change font face and size?

梦想与她 提交于 2019-12-03 13:14:57
How do you change the font face and font size used by the Windows Ribbon Framwork 's UIRibbon? The font used by the ribbon does not match the font the user has chosen as their Windows preferences - which is the preference my application uses. This means that as the font in Windows gets bigger, the ribbon gets smaller. Notice how the ribbon gets smaller in each screenshot: Segoe UI 9pt (Windows default) Segoe UI 12pt (what i use) Segoe UI 16pt (what customer's use) You can see by the time we get to 16pt, the text on the ribbon is quite hard to read. Background The user can configure Windows to

RibbonCommand was not found

我只是一个虾纸丫 提交于 2019-12-03 08:21:56
I see the majority of WPF Ribbon examples out there use some code like xmlns:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary" I'm getting this error..."The type 'r:RibbonCommand' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built." Using VS 2010, .NET 4.0. I'm trying to figure out how to add a button to the ribbon and execute code/command when it's clicked. Thanks. If you are using the new Microsoft WPF Ribbon, the RibbonCommand type has been removed. The Command property is now an ICommand

Spring Cloud Eureka如何解决服务上下线延时过长问题

喜夏-厌秋 提交于 2019-12-03 05:35:01
简述 1.降低延迟时间 1)中小型的项目建议关闭自我保护(eureka.server.enableSelfPreservation=false) 2)清理无效节点的时间间隔(evictionIntervalTimerInMs=5000) 3)降低心跳间隔(客户需要多长时间发送心跳给eureka服务器,表明它仍然活着,默认为30 秒,LeaseRenewalIntervalInSeconds) 4)降低无效判断时间(Eureka服务器在接收到实例的最后一次发出的心跳后,需要等待多久才可以将此实例删除,默认为90秒,leaseExpirationDurationInSeconds) 5)禁用Eureka的ReadOnlyMap缓存,解决eureka 的双缓存问题 6)降低ribbon缓存时间 2.增加重试机制 方法: 在网关、Fegin或者Ribbon上面添加请求重试机制 最好使用Ribbon来实现,让它重试其它节点 优化后的配置: server端 ## 禁用readOnlyCacheMap eureka.server. useReadOnlyResponseCache=false ## 中小规模下,自我保护模式坑比好处多,所以关闭它 eureka.server.enableSelfPreservation=false ## 主动失效检测间隔,配置成5秒 eureka.server

Spring Cloud Eureka如何解决服务上下线延时过长问题

半腔热情 提交于 2019-12-03 05:34:48
简述 1.降低延迟时间 1)中小型的项目建议关闭自我保护(eureka.server.enableSelfPreservation=false) 2)清理无效节点的时间间隔(evictionIntervalTimerInMs=5000) 3)降低心跳间隔(客户需要多长时间发送心跳给eureka服务器,表明它仍然活着,默认为30 秒,LeaseRenewalIntervalInSeconds) 4)降低无效判断时间(Eureka服务器在接收到实例的最后一次发出的心跳后,需要等待多久才可以将此实例删除,默认为90秒,leaseExpirationDurationInSeconds) 5)禁用Eureka的ReadOnlyMap缓存,解决eureka 的双缓存问题 6)降低ribbon缓存时间 2.增加重试机制 方法: 在网关、Fegin或者Ribbon上面添加请求重试机制 最好使用Ribbon来实现,让它重试其它节点 优化后的配置: server端 ## 禁用readOnlyCacheMap eureka.server. useReadOnlyResponseCache=false ## 中小规模下,自我保护模式坑比好处多,所以关闭它 eureka.server.enableSelfPreservation=false ## 主动失效检测间隔,配置成5秒 eureka.server

How to set text at the head of a RibbonApplicationMenu

江枫思渺然 提交于 2019-12-03 01:21:50
I'm trying to have text in the top level of a RibbonApplicationMenu (trying to the get the word "File" there similar to Word or Outlook). It seems the Microsoft.Windows.Controls.Ribbon.RibbonApplicationMenu http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonapplicationmenu.aspx supports a SmallImageSource but no text property. Setting the Label property doesn't work for this problem. xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary" <ribbon:RibbonApplicationMenu Label="File"> <!--doesn't set the label --> </ribbon