Why ribbon XML does not work in Excel 2007?
I installed 4 VSTO Excel add-ins on an Excel 2007 PC today. The two that use a visual designer ribbon worked fine. But the 2 that use a Ribbon (XML) did not. The add-in starts ok. But the ribbon does not show. Why would that be?
I wrote two more add-ins to demonstrate the problem. One puts an OK button on the ribbon using the visual designer. That add-in installs on the excel 2007 PC and works as it should. But the 2nd, an add-in that uses Ribbon (XML) to put a button on the
ribbon, does not work. The add-in does not display on the ribbon.
Here is the code of the Ribbon (XML) add-in project. How to get a ribbon (XML) ribbon to display in excel 2007?
thanks,
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Excel = Microsoft.Office.Interop.Excel;
using Office = Microsoft.Office.Core;
using Microsoft.Office.Tools.Excel;
namespace ExcelAddIn4
public partial class ThisAddIn
private void ThisAddIn_Startup(object sender, System.EventArgs e)
private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
protected override Office.IRibbonExtensibility CreateRibbonExtensibilityObject()
return new Ribbon1();
#region VSTO generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InternalStartup()
this.Startup += new System.EventHandler(ThisAddIn_Startup);
this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
#endregion
<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
<ribbon>
<tabs>
<tab idMso="TabAddIns">
<group id="ContentGroup" label="Content">
<button id="Button1" label="ok" screentip="Text"
onAction="Button_OnAction" supertip="Inserts text at the cursor location"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;
using System.Windows.Forms;
using Office = Microsoft.Office.Core;
// TODO: Follow these steps to enable the Ribbon (XML) item:
// 1: Copy the following code block into the ThisAddin, ThisWorkbook, or ThisDocument class.
// protected override Microsoft.Office.Core.IRibbonExtensibility CreateRibbonExtensibilityObject()
// return new Ribbon1();
// 2. Create callback methods in the "Ribbon Callbacks" region of this class to handle user
// actions, such as clicking a button. Note: if you have exported this Ribbon from the Ribbon designer,
// move your code from the event handlers to the callback methods and modify the code to work with the
// Ribbon extensibility (RibbonX) programming model.
// 3. Assign attributes to the control tags in the Ribbon XML file to identify the appropriate callback methods in your code.
// For more information, see the Ribbon XML documentation in the Visual Studio Tools for Office Help.
namespace ExcelAddIn4
[ComVisible(true)]
public class Ribbon1 : Office.IRibbonExtensibility
private Office.IRibbonUI ribbon;
public Ribbon1()
public void Button_OnAction(Office.IRibbonControl control)
MessageBox.Show("Button_OnAction");
#region IRibbonExtensibility Members
public string GetCustomUI(string ribbonID)
return GetResourceText("ExcelAddIn4.Ribbon1.xml");
#endregion
#region Ribbon Callbacks
//Create callback methods here. For more information about adding callback methods, visit http://go.microsoft.com/fwlink/?LinkID=271226
public void Ribbon_Load(Office.IRibbonUI ribbonUI)
this.ribbon = ribbonUI;
#endregion
#region Helpers
private static string GetResourceText(string resourceName)
Assembly asm = Assembly.GetExecutingAssembly();
string[] resourceNames = asm.GetManifestResourceNames();
for (int i = 0; i < resourceNames.Length; ++i)
if (string.Compare(resourceName, resourceNames[i], StringComparison.OrdinalIgnoreCase) == 0)
using (StreamReader resourceReader = new StreamReader(asm.GetManifestResourceStream(resourceNames[i])))
if (resourceReader != null)
return resourceReader.ReadToEnd();
return null;
#endregion
Hello Steve,
Most probably you have got an error in the ribbon XML markup. See
How to: Show Add-in User Interface Errors for more information.
I have noticed the following xml namespace:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
Use the following one instead:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
Also make sure that specified idMso values exist in Office 2007.
You can read more about the Fluent UI (aka Ribbon UI) in the following series of articles in MSDN:
1.
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
2.
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
3.
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
Similar Messages
-
Why my bluetooth does not work anymore?
Why my bluetooth does not work anymore? What can I do? Before I just turn on bluetooth then turn off it, and it worked properly. Now it does not work. I don't understand why.......
Works fine for me.
What exactly is it not doing? -
Why SPSS 19 does not works with Mavericks?
I upgrade my operating system Snow Leopard to Mavericks and SPSS 19 does not work again.
I tried to install it again and send me and SPSS show me and error of licence. Can you help me please?Why do you want to use a h:commandButton and not an <input type="button"> or a <button>? I don't think that you want to execute a backing bean action. Anyway, in this case you can also add return: false; to the onclick event so that it prevents the button from submitting the form to the server.
-
F2 key does not work with excel
Dear Friends,
when i am working with excel, f2 key does not work as its shortcut. can you please help me how i can solve this. thanks a lotwhat if you press Fn + F2? Does anything pop up?
Regards,
Jin Li
May this year, be the year of 'DO'!
I am a volunteer, and not a paid staff of Lenovo or Microsoft -
I want to use tools to discover why a bookmarlet does not work
I have a *.doc with screen snaps I would like to send to you
This system
Windows 7 32 bit home premium
Jaava applets Version 7 update 55 (build 1.7.0_55-b14)
Gmap to Gpx does not work
This all works with windows xp older version of firefox etc etc
This system
Windows 7 32 bit home premium
Java applets
Version 7 update 55 (build 1.7.0_55-b14)
http://www.elsewhere.org/journal/gmaptogpx/
GmaptoGPX bookmarlet contents
javascript:(function(){var%20script=document.createElement('script');script.src='//raw.github.com/rjl20/gmaptogpx/master/gmaptogpx.js';document.getElementsByTagName('head')[0].appendChild(script);})()
from the web site http://www.elsewhere.org/journal/gmaptogpx/
from
https://raw.githubusercontent.com/rjl20/gmaptogpx/master/gmaptogpx.js
seems to be source
GMapToGPX 6.4k
Originally based in part on the "Improved MSN and Google GPS GPX Waypoint
Extraction" bookmarklet described at http://badsegue.org/archives/2005/04/21/
Josh Larios <[email protected]>
August 3, 2005 - February 12, 2014
My google home page using firefox 29.0.1
The way it should works
Click on bike routes
https://maps.google.com/
get directions etc see sample screen below
Clicking the gmaptogpx bookmarklet fails.
What should happen is that a gpx generate script should be created which I can the pass on gps visualizer
So that I can down load a route onto my garmin
I know zip about java scripts.
I am trying to use the firefox tools “web console” to try and solve the problem and notify the developer.First, I edited github to githubusercontent in the script address. This is based on a redirect from GitHub.
Second, switch from the "new" maps to the "classic" maps.
Okay, now I get a red bordered white box that says Loading. Nothing loads.
In the Browser Console I see this error message:
"Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.google.com/maps/preview?f=d&source=s_d&saddr=mandarin+oriental+hotel,+bangkok&daddr=Siam+Paragon+Shopping+Center+Bangkok+Thailand&hl=en&geocode=FVlp0QAdwbn9BSHlyolmM86yCymzoKfJxJjiMDHlyolmM86yCw%3BFb_C0QAdcAr-BSGjFUU22RBMJikHkVjkzZ7iMDGjFUU22RBMJg&sll=37.269174,-119.306607&sspn=3.89877,17.62207&vpsrc=0&dirflg=r&ttype=now&noexp=0&noal=0&sort=def&mra=ltm&ie=UTF8&t=m&z=13&start=0. This can be fixed by moving the resource to the same domain or enabling CORS."
Working around this will require embedding the script in a different way. -
Xml schema not working in excel 2010 - xml corrupt
I originally posted this thread in Microsoft Answers but was suggested to post here...
I upgraded from xl2003 to xl2010. I'm trying to map xml schemas to xl2010 (using the source pane just as I did for xl2003) and the mapping works fine until I save the file and reopen it. Once I reopen the file and try accessing the map through the XML source
pane, I get an error identifying the xml map is corrupt as follows:
"The operation cannot be completed because the XML map is corrupt
To fix this problem, remove the associated xml map from the workbook and then add the XML map back to the workbook.
/schecma/element[1][@name = 'returnData']/complextype[1]/complexContent[1]/extension[1]Undefined <complexType>, '{http://www.....' is used as a base type."
I've tried this in xl2007 and it works fine. I also read some blogs about xl2010 xml features and in some I found that this new version has enhanced security xml features.
Any help would be appreciated.
"innovation is the key to success"Interesting to note this is still a problem, but even more interesting is as to why Excel works fine the first time you bring in the xsd, but not after you save it. I found information that says it's related to resolving externally referenced xsds,
which is fine, but again, why does it work the first ime and not the second? If it were a problem with external xsds then it should never work at all so I think that answer is bogus.
Something has to be getting corrupted on the save and it's not important enough to MS to spend the time to fix it. -
BI 7.0 Bex Analyzer not working with excel 2007
Hi All,
I have installed the BEX 7.0 with MS office 2007 but the Analyzer is not working. The open file symbol does not give any option on the click.
Please help.
Regards,
AbhishekHi Abhishek,
This is a BEX Add-in problem.
Follow the below step....
1. Copy the Tool
2. Change the Tool.xls into the Tool.xla
3. Copy the Tool.xla file
4. Open My Computer window
5. Navigate to the following folder
a. C:\Program Files\Common Files\SAP Shared\BW
b. Paste Tool.xla file into this folder
6. Open Bex Analyzer
7. Open a Query or Workbook
8. Click on the u201CToolsu201D Menu on the Top
9. Select u201CAdd-Insu201D from the Tools menu
10. Click Browse from the Add-Ins window that opens
11. Browse to the file you just saved
a. C:\Program Files\Common Files\SAP Shared\BW\ Tool.xla
b. Click Ok to continue
12.The Tool for Excel should not be checked in the Add In window
13.Click Ok to continue
14. Close
15. Re Open Bex Analyzer
16. The Tool command should be displayed at the top of the Tool Bar
17. Close Bex Analyzer
18. Open Excel
19. The Tool command should be displayed as well at the top of the Tool Bar.
Hope this helps...
check the below link
http://www.sytecpa.org/software/BWInstructions/Installing%20the%20SAP%20BEx%20Analyzer%20Excel%20Add-In.pdf
Regards
KP -
TDMS Excel Add-in Does not support new Excel 2007 Row Limit
First off I would like to say the TDM/TMDS format is really useful. It allows you to do all kinds of things that would be a real pain if you tried to do it with tab delimited spreadsheets. You can format data into excel sheets for analysis with seperate tabs and channel names over the columns and the whole nine yards. You can even throw error messages into the properties that show up on the first tab.
The problem occurs when the user is working with really large files. Excel 2003 and all previous versions of Excel have limits of 65,536 rows by 256 columns. Until the latest version of the TDM Excel Add-in if you tried to import files larger than this it would throw an error and wouldn't create any file at all. Now it imports a file and you specify the index, which is so much better.
Excel 2007 supports 1,048,576 rows by 16,384 columns! This is really useful. But the current version of the TDM Excel Add-In does not support the new row limit. Is there any way we can get a version of this for 2007 that supports the new row limits? It would be cool if the Add-in could auto-detect the version and change the import limits accordingly but that may be too much to ask. Has anyone else run into these problems?
My client would like to record hour long files at 200Hz all day long. Thats 720,000 rows of data per file. Yes, thats a lot but excel can handle it. The TDMS importer cannot. Of course there are work arounds and we will have to use one if a new version of the TDM Excel Add-in is not made soon. Is there a new version coming? Please say yes.
[will work for kudos]
Solved!
Go to Solution.I redownloaded the file. I couldnt figure out how to completely uninstall the verison of the TDM importer already installed, so I just tried to install the one i downloaded. The installer said "no software will be installed or removed" and I had to click cancel because there was no next option.
I tried to import the data again with the importer and got the same 'selective import' dialog box again, limiting me to the 65,535 rows.
Here is what I am getting.
How do I uninstall the add-in so that I may reinstall it?
I uploaded a copy of one of my tdms files to the ftp.ni.com/incoming directory for you to download and attempt to import.
File: "442732.zip" size: 82.2 mb
A little more information about the tdms file
The data is 14 columns of single precision float and is about 720k rows. There are four sections (sheets in the same excel document) with the data converted differently in each tab/section. The data is the same amount in each section as well. There are also a couple sections listing the constants and scalars used to convert the data, as well as the typical first page of tdms information about the data.
[will work for kudos] -
BE Analyzer not working with Excel 2007 / Gui 710
Hi
I am working on a machine that has MS Office 2007 installed.
Here I am experiencing problems with BEx Analyzer.
The program starts up fine, I can connect to the BI server, see my excisting queries and workbooks when I press "Open" (created on a PC with Office 2003 installed) but as soon as I try to execute either of them I get an error:
"A Critical program error occured.
The program has to close.
Please refer to the trace for further information."
The same error occurs if I try to insert a query to a new workbook.
Background info:
SAP Gui 710, Patch 1
Support Pack Stack 12
According to the documentation I have found the combination of MS Excel 2007 and Gui 710 should be supported.
Johnny H.
PS I have added the SAP folders to my "trusted locations", and I have also marked the "Trust access to the VBA project object model" in the Excel options.Hi,
I'm running SAP Gui 710 patch 3 and the BW add on 710 patch 1 on a Vista with Office 2007 and it runs well. I would suggest to download the latest patches on service.sap.com/swdc
Eddy
PS. Reward useful answers and earn points yourself -
Client-cert auth impl in web.xml does not work in Oracle Application Server
Hi,
I am new to implementing security features on the web applications.. I have developed a new web service using jdev1012 and deployed in OAS 10.1.2. Its working fine according to the business requirements, but I am in need of implementing client-cert authentication to enable the web service available to only those who have client certificate.
My server details are:
Oracle Application Server 10g Release 2 (10.1.2)
Server certificate is in place and SSL mode have been already enabled.. able to access my web service through https://<mydomain.com>/myws/TreqWS as well able to see the WSDL file through https://<mydomain.com>/myws/TreqWS?WSDL.
I tried to include the following in my web.xml file as part of implementing CLIENT-CERT authentication.
<security-constraint>
<display-name>SecurityConstraint</display-name>
<web-resource-collection>
<web-resource-name>WSCollection</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>CLIENT-CERT</auth-method>
<realm-name>WSCollection</realm-name> <!-- am not sure about this realm-name and its purpose -->
</login-config>
It is not woking as expected, though I have restarted my oc4j container after including this content to the web.xml file. i.e, I am able to invoke the web service though my sample java client program, though I donot have client certificate/keystore.
I believe I am missing something..Can anyone help me in this regard to implement CLIENT-CERT authentication successfully?
Thanks,
MsI am having the same problem with doc and xsl. I have added this
<mime-mapping>
<extension>xls</extension>
<mime-type>application/vnd.ms-excel</mime-type>
</mime-mapping>
<mime-mapping>
<extension>doc</extension>
<mime-type>application/msword</mime-type>
</mime-mapping>
to my web.xml. I even restarted the server. I still see doc and xsl in binary.
Is there some other setting that needs to take place?
I am using WL6.1 with fixpack 1.
I can see the doc and excel files in the browser if I don't go through the weblogic
server. That just confirms it's not my browser.
Kumar Allamraju <[email protected]> wrote:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
It works fine for me in 6.1 SP1.
<br><br>
If the following doesn't work , can you
<br>try application/winword instead of application/msword?
<p>--
<br>Kumar
<p>Siming Mu wrote:
<blockquote TYPE=CITE>Hi,
<p>I setup in my web.xml a mime mapping as follows,
<p><mime-mapping>
<br><extension>doc</extension><mime-type>application/msword</mime-type>
<br></mime-mapping>
<p>When I specify a test.doc url, the doc file appears in my browser
as
binary data
<br>instead of download.
<p>Please reference change request 055002, which decribes this problem.
According
<br>to edocs, it has been fixed in wls6.1sp1.
<p>But I am seeing it fixed. Am I doing anything wrong? Thanks.
<p>Siming</blockquote>
</html> -
Why budget check does not work with account assigment distrib. by quantity?
Hi Gurus,
I have an issue in the budget check for Purchase Order (PO).
I'm using the FM B31I_ACC_PURCHASE_ORDER_CHECK.
The case is next:
1 Item with 21 account assignment type AS and distribution by quantity:
ASSET_NO QUANTITY
1 1
2 1
3 1
4 1
5 1
6 1
7 1
8 1
9 1
10 1
11 1
12 1
13 1
14 1
15 1
16 1
17 1
18 1
19 1
20 1
21 1
All account assignment are for the same G/L account, fund, functional area...
The price for each item is $2,499.14, then total price is $52,481.94 (2,499.14 * 21).
I debugged the FM B31I_ACC_PURCHASE_ORDER_CHECK and found that in FM BBP_PD_COMMITMENT_FILL_BAPI it's making a rounding with percentage:
The system assume next:
Each item is 4.76% of total (result of divide 100% / 21 = 4.76190476...) but the percentage is rounded to 2 decimals.
Then it makes the conversion by the amount corresponding to each item:
($52,481.94 * 4.76) / 100 = $2,498.1403
Finally the budget is checked by $52,460.95 (2498.1403 * 21).
But available budget is $52,481.90, the check pass, but really there are 4 cents missing (total price is $52,481.94).
Can somebody say to me if this is a standard behavior?
It can be fixed with configuration?
The problem is for multiple account assignment with distribution by quantity and:
(100 / quantity) = not integer (or have more than 2 decimals)
For example: with quantity 20 it works because 100% / 20 = 5.00%, then the budget is check exactly.1503317 - System Behavior for Account Distribution between SRM and R/3 system
When using distribution by Value in a SRM document this value is not correct and a rounding occurs once this document is transferred to ERP system.
Cause
It is not possible transfer documents to the back end system with distribution by value, due to a back end restriction.
Resolution
The following information is the system behavior in R/3 / ERP:
in R/3, there is accounting distribution only by quantity or percentage. So when distribution by value is used, a rounding will always take place.
in R/3, the use of value based distribution in SRM will lead to rounding differences.
Distribution by quantity is allowed in SRM and MM side. However MM do not accept is distribution by value. This is internally converted to distribution percentage based.
Keywords
Distribution by Quantity, Distribution by Percentage, Distribution by Value -
I don't know why my screensaver does not work...
I Set up my screensaver through system preferences, but it doesn't go to screensaver mode on my laptop after the time it should begin..
Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
*Press and hold Shift and left-click the Reload button.
*Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
*Press "Command + Shift + R" (MAC)
Clear the cache and the cookies from sites that cause problems.
"Clear the Cache":
*Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
"Remove Cookies" from sites causing problems:
*Tools > Options > Privacy > Cookies: "Show Cookies"
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
*Do not click the Reset button on the Safe mode start window or otherwise make changes.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
You can check for problems caused by recent Flash updates and try these:
*disable a possible RealPlayer Browser Record Plugin extension for Firefox and update the RealPlayer if installed
*disable protected mode in Flash 11.3 and later
*disable hardware acceleration in the Flash plugin
*http://kb.mozillazine.org/Flash#Troubleshooting -
BI Publisher desktop does not work on Office 2007 SP3
Hello for everyone.
I have installed BI Publisher Desktop 10.1.3.4.1 in a machine that has Microsoft Office 2007 SP3 installed, despite the add-in appears and after enabled all macros (Word properties), when I try to use the Add-in the following message appears: "The macro cannot be found or has been disabled because of your macro security settings".
I am glad if you can guide me to fix this issue.
Thanks,1>Close all microsoft office suite products.
2>Find MSComctlLib.exd inside "C:\Documents and Settings\<YOUR USER NAME>\Application Data\Microsoft\forms
3>rename to MSComctlLib.exd_bak
4> Done :) -
Why does quicktime does not work on os lio
why quicktime x does not work on OS Lion
QuickTime does work under 10.7, however you may want to check that you're opening the newest copy of it by going to your Applications folder and opening it from there.
If you keep having trouble with opening it, please let us know what error you might be getting. QuickTime X will open with just a menu bar, then you can go to the file menu and choose to open any file you wanted to open, or choose one of the screen or audio recording options. -
I have a main.jsp, and in this main.jsp, I have two part, leftButton.jsp and view.jsp, I want to include the leftButton.jsp and view.jsp to main.jsp.
The code of main.jsp is like follows:
<%@ page language="java" contentType="text/html" %>
<html>
<head>
<title>JSP include element test</title>
</head>
<body>
<table>
<tr>
<td><jsp: include page="leftButton.jsp" flush="true"></jsp: include></td>
<td> <jsp: include page="view.jsp" flush="true"></jsp: include></td>
</tr>
</table>
</body>
</html>
Why the include does not works? by the way, I embeded a flash.swf file in view.jsp.Hi Mellon,
You might be better off using a JSPF segment for leftButton.jsp & view.jsp and the <%@ include file="relativeURL" %>.
Be careful that the included file does not contain <html>, </html>, <body>, or </body> tags. Because the entire content of the included file is added to the including JSP page, these tags would conflict with the same tags in the including JSP page, causing an error.
Note: It is conventional to put JSP segements under the WEB-INF/jspf/ folder so the file cannot be accessed directly by a URL
Note: JSPF files end with .jspf, so your files would be leftButton.jspf and view.jspf.
Maybe you are looking for
-
When I try to sync my iphone an error message says iphone cannot be synced you do not have enough access privelage for this operation
-
EVERYONE PLZ READ I can't find my tabs
I keep asking how to download notes and calendar. They say go to preferences than click the ipod tab than the calendar tab. Their is no Calander tab. Or contacts tab What do I do for that to show up. Is their a seperate download aside from what my po
-
Any tips on how to connect my G4 silver to my new Plasma with HDMI input? I bought a cable DVI to HDMI from Frys but can't see anything!!! Thanks, babak
-
External harddrive not show correct files
thanks for your time. i've not had this problem before. i have an external harddrive and lately some of the files have been incorrect. and now it's been happening to most of the files on the drive. for example if i click on a video file a diffe
-
Asynchronous bpel proces seems to reply synchronous
I have made a bpel proces which is triggered by a synchronous webservice. The process is triggered, I fill the reponse and reply to the service to let it know we received the message. After this I process the message which takes some time. The proble