Word 2007, Add-ins menu, items appear twice ...

Hi
I'm using win7 word 2007 and OPM 10.1.
I'm attending a course in OPA/OPM and we have seen that the Add-ins menu appear weird.
Several students that attend the course are seeing the same phenomena.
If I select the add-in tab in word, the OPM short cuts appear twice, first one set, then when I scroll further to the right a second set appears.
It is only the right most set that works.
If I hover the mouse over the first set smiley face, the tooltip says "Haley Office Rules: Compile (Alt+R) ". If I check the tooltip of the rightmost set it says, "Oracle Policy Modeling: Compile (Alt+R)"
I have only installed OPM 10.1 on this pc. Not any older version (like old Haley versions)
kind regards,
Michael

Hi
Try these 3 tips to restore the toolbar to how it should display:
1. With your project open in Oracle Policy Modeling, run Update Oracle Policy Templates from the Tools menu. This will attempt to make sure the correct Word template is attached to each project Word document that is not currently excluded from the build. Open a Word document to see if the toolbar/ribbon is now displayed correctly. If not, continue to step 2.
2. Try resetting the UI language for your project. To do this, choose Options from the Tools menu in Oracle Policy Modeling. Select Environment. Select General. Under Authoring UI Language, choose a language other than your preferred UI language, and click OK. Then repeat these steps to revert to your preferred language. Open a Word document to see if the toolbar/ribbon is now displayed correctly. If not, continue to step 3.
3. Open one of the Word documents in your Policy Modeling project. Run the macro UpdateToolbar: In Word 2007, choose the View ribbon, then select Macros/View Macros, highlight the UpdateToolbar macro, then choose Run.
Regards
Matthew Bickham
Applications Consulting Project Manager, Phone: +447787 570634
Email: [email protected], Oracle Policy Automation, United Kingdom

Similar Messages

  • VBA Code for Excel Add-in Menu Items

    Howdy.
    Every month my team needs to execute the same process on a couple hundred documents. It's time consuming and inefficient to say the least, so I'm looking for a means by which to call a couple of the menu items on the Excel BPC Add-Ins menu via VBA. Specifically, Park'n'Go; Expand All; and Send and Refresh Schedules.
    Basically what happens is this:
    Open File
    Set Park'n'Go to Live
    Expand All
    Refresh and Send Schedules
    Set Park'n'Go to Offline
    Save
    Exit
    Loop
    I know how to loop through the files and directories, I just don't know the commands for the functions from the menu via code. The macro recorder can't help me, and I've even tried to mimic a user's actions by using mouse coordinates and clicks, but that doesn't work b/c it doesn't allow for the necessary load time from BPC.
    Any help would be extremely appreciated.

    Hey Jeff,
    here are some vba commands that may help you.
    Open a certain file: (you can assign "Path" to a button or range)
    Dim Path As String
    Path = Application.GetOpenFilename("All Files (.),.")
    Opening the Park 'n Go dialog box:
    Application.Run ("MNU_ETOOLS_PARKNGO")
    Expand All:
    Application.Run ("MNU_ETOOLS_EXPAND")
    Sending data and refreshing the workbook:
    Application.Run ("MNU_eSUBMIT_REFSCHEDULE_BOOK_REFRESH")
    Saving a file OFFLINE:
    Dim FName As String
    FName = InputBox(prompt:="Please enter filename")
    If FName = "" Then
    Application.DisplayAlerts = False
    ActiveWorkbook.Close
    Else
    ActiveWorkbook.SaveAs Filename:="c:\" & FName
    ActiveWorkbook.Close
    End If
    Application.DisplayAlerts = True
    Hope, that will help you
    Karsten

  • Add-Ins menu not visible in Crystal report for Sap Business One

    Hi,
    I have installed the Crystal Report Design for Sap Business One on my customer server.
    But when I open the Crystal Report I can't see the Add-Ins menu to put the rpt directly on my Sap Business One.
    I have installed it on many customer, but only with this I have this type of problem.
    There is some restriction on Sap Version/Patches or Authorization Users or some check that I have to set on Sap or on Crystal Report?
    Regards
    Marco

    Hi All,
    i have the same issue on crystal report add-ins. Have you able to solve this without upgrading our sap business one to the latest version or patch level? Please see details below.
    OS: MS Windows 7 SP1
    SAP Business One 8.82 pl7
    Crystal report 2011
    Crystal report integration package installed under B1_SHare/Client
    But still the problem persist on the workstation.
    Please help me solve this problem.
    Thank you,
    ana

  • I want to get rid of the Bing screen but there is no "menu at the top of the Firefox window" for me to "select Tools and then select the Add-ons menu item. "

    I suddenly have a "Bing" screen when I sign onto Firefox---and I want to get rid of it. The support section of Firefox says
    1. "From the menu at the top of the Firefox window, seledt Tools and then select the Add-ons menu item."---but I see no "menu item" nor Tools, much less Add-ons.
    2. "In the Add-ons window, click on the Extensions panel."---but how do I find the Add-ons window?
    3. Find the Bing Bar and Search Helper Extension in the list and click Disable for each of them."---but what and where exactly is that?
    At the top of the screen is only a Yahoo icon on the left and to the right of it a search box, "Web Search,", "My Apps," Yellow Pages," "Weather," "Updates," and "Skype." to the right of those there is a green cross saying "Add more apps. to your toolbar" and to the right of that a sort of gear shift looking icon saying "toobar settings."
    So, in short, how do I get rid of the Bing screen and how do I access those Tools?
    Thanks.

    To get rid of Bing Search Window..............
    Click on View tab / Tools and un-check 'Search' (alias for 'Bing')

  • Add a menu item in context menu at Sales Quotation

    How can I add a menu item in context menu at WH column in sales quotation screen? To access to the context menu, locate an active quotation and right click at an active WH column and a context menu will be shown.

    Hi Cherine,
    You can use the RightClickEvent to add your context menu depending on the position of the right click.
    You have a sample explaining how to use the RightClickEvent in the SDK UI Samples called 22.RightClick.
    Hope it helps
    Trinidad.

  • Add new menu Item in 11g

    Hi,
    I want to Add new menu item in UCM 11g.
    I have done in 10g throught including
    <$include super.custom_finish_layout_init$> and
    // create a collection
         navBuilder.addChildNode();
    but the same is not working in 11g.
    Please assist me in getting menu item in 11g.
    Thanks.

    Hi,
    Check below URL for more information.
    http://blogs.oracle.com/kyle/entry/modifying_navigation_menus_in_ucm
    Thanks,
    Ravinder

  • Help!  How to add a menu item to FNDMENU

    Hi, All
    I want to add a menu item under the "Help" menu of the FNDMENU.
    And this menu item will open a external website such as www.google.com in a new generated IE window when user chick on it.
    So How can I implemented this ? I am a newbie to Oracle Forms builder and Oracle EBS.
    Please give me some hint or materials about writing the processing for menu item.
    Thanks in advance

    Hi,
    You can use the context menu UI element.
    Please check wdr_test_events.
    Regards,
    Lekha.

  • How to add a menu item to the toolbar?

    Hi,
    I try to add a menu item to a module toolbar. However, the methods MenuItemAdd and MenuItemInsert did not work for me. There was no icon, no placeholder, not anything. Deleting of DIAdem predefined icons worked well.
    I tried this one:
    call MenuItemAdd("SCRIPT", "I", "MENUITEM", "TestName", "PicDelete")
    I also tried all combinations of Modules, I, I.1, MenuItem, Unknown, Separator, etc. Nothing produced any result.
    Does anyone have a hint for me?
    thanks in advance,
    Alex.

    Hello Alex Maier,
    with DIAdem 10.0 we provide the following example: "User Defined Menus". Attached you find the relevant script commands.
    I hope this will help you.
    Greetings
    Walter
    Attachments:
    Menu_engl.zip ‏2 KB

  • Close all menu item appearing by itself?

    hello,
    something strange is happening in my project. in my file menu in ib underneath the standard close command the command "close all" is appearing by itself. i do have my own project specific menu items in this file menu but i have not previously had this problem. i'm assuming something is triggering this but i can't figure it out. all of the keyboard shortcuts/connections appear to be fine. again i have not inserted this close all, it's appearing on it's own. any thoughts on how to make it go away?
    thank you,
    rick

    hi again,
    sorry for not being more clear. it's a mac app. and yes the issue is in interface builder. in my file submenu in interface builder all i have is the standard close menu item (connected to performClose) along with some of my own app specific menu items. but now all of a sudden below the close menu item appears a close all menu item which i have not inserted. it actually doesn't show in interface builder unless i run simulate interface. it also shows if i build and run the app. but when actually editing the menu in ib it doesn't show (which makes sense because i didn't put it there). at some point something must have happened to cause it to appear, but i can't figure out what? what i'm looking for now is a way to make it go away...
    thanks again for your help,
    rick

  • Add-on menu item not added

    Applies to: Firefox 33.0 and 34.0 (beta)
    Platform: Android 4.4.4 on Nexus 5 32 GB
    When I install an add-on that should add an item to the Firefox menu such as Quitnow or LastPass, the new menu item does not show up. With LastPass, that breaks the add-on entirely since you can't log into the service. With Quitnow, the add-on is rendered similarly useless.
    I have tried clearing app cache/data, uninstalling and reinstalling Firefox, and doing a factory reset on the phone. Results were always the same. No other add-ons were installed.
    Is there a method to get these sorts of add-ons to install correctly?

    The issue isn't that I can't close Firefox. I know that can be accomplished other ways, as you stated. The issue is that add-ons such as the ones listed that SHOULD be able to add menu items aren't installing properly/completely. Thus, the LastPass add-on is entirely broken because I can't log in and set it up as this is done via selecting a menu item that isn't there.
    I only brought up the QuitNow add-on because it's another add-on that should add a menu item, but doesn't. Thus it seems to be a general problem with installing FireFox add-ons and not limited to just one add-on.
    There are no Developer Options enabled. I installed Firefox and the extension on a freshly reset phone using the factory image from Google and had the same issue.

  • Office 2007 add-ins will not load on Windows 7 x64

    Hi there,
    I have a brand new built Windows 7 x64 desktop with Office 2007 32 bit installed. When I install Oracle BI Publisher Desktop 11.1.1.7.0 it loads without errors. Except none of the add-ins will load. I have done the usual Add-ins / Com Add-in / Tick box but nothing.
    After further investigation it appears there is a VSTO 4.0 error on the machine when I run the C:\Program Files (x86)\Oracle\BI Publisher\BI Publisher Desktop\DotNet2007\TBAddin.vsto. The error itself is only failed when it tries to download savexmldata.png from C:/Program Files (x86)/Oracle/BI Publisher/BI Publisher Desktop/DotNet2007/Resources. The fact is there isn't a folder called Resources nor a file called savexmldata.png.
    I thought it may be an assemblies error and tried installing the newest versions of Microsoft Office 2007 Primary Interop Assemblies and Microsoft Visual Studio 2010 Tools Office Runtime (x64) but all are up to date.
    See below for the error:-
    Customization URI: file:///C:/Program Files (x86)/Oracle/BI Publisher/BI Publisher Desktop/DotNet2007_2/ETBAddIn.vsto
    Exception: Downloading file:///C:/Program Files (x86)/Oracle/BI Publisher/BI Publisher Desktop/DotNet2007_2/Resources/field.png did not succeed.
    ************** Exception Text **************
    System.Deployment.Application.DeploymentDownloadException: Downloading file:///C:/Program Files (x86)/Oracle/BI Publisher/BI Publisher Desktop/DotNet2007_2/Resources/field.png did not succeed. ---> System.Net.WebException: Could not find a part of the path 'C:\Program Files (x86)\Oracle\BI Publisher\BI Publisher Desktop\DotNet2007_2\Resources\field.png'. ---> System.Net.WebException: Could not find a part of the path 'C:\Program Files (x86)\Oracle\BI Publisher\BI Publisher Desktop\DotNet2007_2\Resources\field.png'. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files (x86)\Oracle\BI Publisher\BI Publisher Desktop\DotNet2007_2\Resources\field.png'.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
    at System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async)
    at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
    --- End of inner exception stack trace ---
    at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
    at System.Net.FileWebRequest.GetResponseCallback(Object state)
    --- End of inner exception stack trace ---
    at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
    at System.Net.FileWebRequest.GetResponse()
    at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
    --- End of inner exception stack trace ---
    at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.DownloadAddIn(TimeSpan timeout)
    at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()
    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    Microsoft.VisualStudio.Tools.Office.Runtime
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.31119.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Runtime.dll
    System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    Microsoft.VisualStudio.Tools.Applications.Hosting
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.31119.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Hosting/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Hosting.dll
    Microsoft.VisualStudio.Tools.Applications.ServerDocument
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.31119.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.ServerDocument/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.ServerDocument.dll
    System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    Microsoft.VisualStudio.Tools.Applications.Runtime
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.31119.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.dll
    System.Deployment
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
    System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    System.Security
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll
    System.Xml.Linq
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
    Any help would be appreciated as I am not a developer just an Application Delivery person.
    Thanks

    copy disc to your computer and try to run setup file from there.
    also, make sure your office dvd is working,

  • Acrobat XI PDF Add-ins do not appear in Office 2013

    I just installed Acrobat XI on a computer with Win7 and Office 2013. The program works fine but I have been unable to get the add-ins to appear in the apps. I had previously done  the  same installation on another computer of mine and all works fine. I have spent at least 10 hours trying everything I could find online and in the forums with no success.
    I have unistalled and reinstalled Acrobat. I have done a total repair on Office. The results are always the same.
    In Outlook, the pdf maker is shown as disabled. I click to enable it and then restart. It still does not appear and the pdf add-in is again shown as disabled. I removed the add in and then manually added it back. Same results.
    In other apps (e.g. Word), the pdf maker is shown as enabled but it does not appear on the toolbar. Again, on these apps, I've tried unchecking and checking (restarting in between) with no luck. And have also deleted the add in and then manually put it back in. No success.
    I also repeated all of the above by starting applications as adminstrator thinking that would make a difference. No success.
    I've tried using the registry editor regsrv32 to install the .dll file but I only get errors.
    I suppose there could be some registry entries that need to be deleted, but I don't have a clue which ones or where to look.
    I can't find anything else to try! Any suggestions will be helpful!

    I suspect you have AA 11.0.0. Update the product. OFFICE 2013 came out after AA XI and you need an update for opertion. I understand that AA XI has beeen updated to work with OFFICE 2013. In the meantime, just print to the Adobe PDF printer.

  • Menu item appears multiple items

    I've created a menu item for the extension I'm working on; however, it is showing up 4 times in the Tools menu instead of just once. I've looked at various tutorials on the subject,but I can't seem to find what I've done incorrectly.
    VSCT File
    <?xml version="1.0" encoding="utf-8"?>
    <CommandTable xmlns="http://schemas.microsoft.com/VisualStudio/2005-10-18/CommandTable" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <Extern href="stdidcmd.h"/>
    <Extern href="vsshlids.h"/>
    <Commands package="guidTemplatePackPkg">
    <Groups>
    <Group guid="guidTemplatePackCmdSet" id="MyMenuGroup" priority="0x0600">
    <Parent guid="guidSHLMainMenu" id="IDM_VS_MENU_TOOLS"/>
    </Group>
    </Groups>
    <Buttons>
    <Button guid="guidTemplatePackCmdSet" id="cmdidMyCommand" priority="0x2000" type="Button">
    <Parent guid="guidSHLMainMenu" id="IDG_VS_CTXT_PROJECT_ADD_REFERENCES" />
    <CommandFlag>DynamicVisibility</CommandFlag>
    <CommandFlag>DefaultInvisible</CommandFlag>
    <Strings>
    <CommandName>AddSideWaffleProject</CommandName>
    <ButtonText>Add Template Reference (SideWaffle project)</ButtonText>
    </Strings>
    </Button>
    </Buttons>
    </Commands>
    <!-- SideWaffle Menu Options -->
    <Commands package="guidMenuOptionsPkg">
    <Groups>
    <Group guid="guidMenuOptionsCmdSet" id="SWMenuGroup" priority="0x0600">
    <Parent guid="guidSHLMainMenu" id="IDM_VS_MENU_TOOLS"/>
    </Group>
    </Groups>
    <Buttons>
    <Button guid="guidMenuOptionsCmdSet" id="cmdidOpenSWMenu" priority="0x0100" type="Button">
    <Parent guid="guidMenuOptionsCmdSet" id="SWMenuGroup" />
    <Icon guid="guidImages" id="bmpPic1" />
    <Strings>
    <ButtonText>SideWaffle Settings</ButtonText>
    </Strings>
    </Button>
    </Buttons>
    <Bitmaps>
    <Bitmap guid="guidImages" href="Resources\Images.png" usedList="bmpPic1, bmpPic2, bmpPicSearch, bmpPicX, bmpPicArrows"/>
    </Bitmaps>
    </Commands>
    <!-- End SideWaffle Menu Options -->
    <Symbols>
    <GuidSymbol name="guidTemplatePackPkg" value="{e6e2a48e-387d-4af2-9072-86a5276da6d4}" />
    <GuidSymbol name="guidTemplatePackCmdSet" value="{a94bef1a-053e-4066-a851-16e5f6c915f1}">
    <IDSymbol name="MyMenuGroup" value="0x1020" />
    <IDSymbol name="cmdidMyCommand" value="0x0100" />
    </GuidSymbol>
    <!-- SideWaffle Menu Options -->
    <GuidSymbol name="guidMenuOptionsPkg" value="{796B8CBC-3010-4A76-872B-56775129765F}" />
    <GuidSymbol name="guidMenuOptionsCmdSet" value="{13EE92AE-B8B5-4728-8AF6-F53D8DD9C391}">
    <IDSymbol name="SWMenuGroup" value="0x1020" />
    <IDSymbol name="cmdidOpenSWMenu" value="0x0100" />
    </GuidSymbol>
    <GuidSymbol name="guidImages" value="{900524C9-8677-4F84-AF97-3A1B5B45E3B2}" >
    <IDSymbol name="bmpPic1" value="1" />
    <IDSymbol name="bmpPic2" value="2" />
    <IDSymbol name="bmpPicSearch" value="3" />
    <IDSymbol name="bmpPicX" value="4" />
    <IDSymbol name="bmpPicArrows" value="5" />
    <IDSymbol name="bmpPicStrikethrough" value="6" />
    </GuidSymbol>
    <!-- End SideWaffle Menu Options -->
    </Symbols>
    </CommandTable>
    TemplatePackage.cs
    using EnvDTE;
    using EnvDTE80;
    using Microsoft.VisualStudio.Shell;
    using Microsoft.VisualStudio.Shell.Interop;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.Design;
    using System.Linq;
    using System.Runtime.InteropServices;
    using TemplatePack.Tooling;
    namespace TemplatePack
    [PackageRegistration(UseManagedResourcesOnly = true)]
    [InstalledProductRegistration("#110", "#112", "1.0", IconResourceID = 400)]
    [ProvideMenuResource("Menus.ctmenu", 1)]
    [Guid(GuidList.guidTemplatePackPkgString)]
    [ProvideAutoLoad(UIContextGuids80.SolutionExists)]
    public sealed class TemplatePackPackage : Package
    private DTE2 _dte;
    protected override void Initialize()
    base.Initialize();
    _dte = GetService(typeof(DTE)) as DTE2;
    OleMenuCommandService mcs = GetService(typeof(IMenuCommandService)) as OleMenuCommandService;
    if (null != mcs)
    CommandID cmdId = new CommandID(GuidList.guidTemplatePackCmdSet, (int)PkgCmdIDList.cmdidMyCommand);
    OleMenuCommand button = new OleMenuCommand(ButtonClicked, cmdId);
    button.BeforeQueryStatus += button_BeforeQueryStatus;
    mcs.AddCommand(button);
    /*if(Environment.GetEnvironmentVariable("SideWaffleEnableDynamicTemplates") != null)*/{
    try {
    new DynamicTemplateBuilder().ProcessTemplates();
    catch (Exception ex) {
    // todo: replace with logging or something
    System.Windows.MessageBox.Show(ex.ToString());
    void button_BeforeQueryStatus(object sender, EventArgs e)
    var button = (OleMenuCommand)sender;
    var project = GetSelectedProjects().ElementAt(0);
    // TODO: We should only show this if the target project has the TemplateBuilder NuGet pkg installed
    // or something similar to that.
    button.Visible = true;
    // button.Visible = project.IsWebProject();
    private void ButtonClicked(object sender, EventArgs e)
    Project currentProject = GetSelectedProjects().ElementAt(0);
    var projects = _dte.Solution.GetAllProjects();
    var names = from p in projects
    where p != currentProject
    select p.Name;
    ProjectSelector selector = new ProjectSelector(names);
    bool? isSelected = selector.ShowDialog();
    if (isSelected.HasValue && isSelected.Value)
    // need to save everything because we will directly write to the project file in the creator
    _dte.ExecuteCommand("File.SaveAll");
    TemplateReferenceCreator creator = new TemplateReferenceCreator();
    var selectedProject = projects.First(p => p.Name == selector.SelectedProjectName);
    creator.AddTemplateReference(currentProject, selectedProject);
    public IEnumerable<Project> GetSelectedProjects()
    var items = (Array)_dte.ToolWindows.SolutionExplorer.SelectedItems;
    foreach (UIHierarchyItem selItem in items)
    var item = selItem.Object as Project;
    if (item != null)
    yield return item;
    [PackageRegistration(UseManagedResourcesOnly = true)]
    [InstalledProductRegistration("#110", "#112", "1.0", IconResourceID = 400)]
    [ProvideMenuResource("Menus.ctmenu", 1)]
    [Guid(GuidList.guidMenuOptionsPkgString)]
    [ProvideAutoLoad(UIContextGuids80.SolutionExists)]
    public sealed class MenuOptionsPackage : Package
    // Overridden Package Implementation
    #region Package Members
    protected override void Initialize()
    base.Initialize();
    // Add our command handlers for menu (commands must exist in the .vsct file)
    OleMenuCommandService mcs = GetService(typeof(IMenuCommandService)) as OleMenuCommandService;
    if ( null != mcs )
    // Create the command for the menu item.
    CommandID menuCommandID = new CommandID(GuidList.guidMenuOptionsCmdSet, (int)PkgCmdIDList.SWMenuGroup);
    OleMenuCommand menuItem = new OleMenuCommand(MenuItemCallback, menuCommandID );
    mcs.AddCommand( menuItem );
    #endregion
    private void MenuItemCallback(object sender, EventArgs e)
    // Here is where our UI (i.e. user control) will go to do all the settings.
    var window = new SettingsForm();
    window.Show();
    PackageConstants.cs
    // PkgCmdID.cs
    // MUST match PkgCmdID.h
    using System;
    namespace TemplatePack
    static class GuidList
    public const string guidTemplatePackPkgString = "e6e2a48e-387d-4af2-9072-86a5276da6d4";
    public const string guidTemplatePackCmdSetString = "a94bef1a-053e-4066-a851-16e5f6c915f1";
    public static readonly Guid guidTemplatePackCmdSet = new Guid(guidTemplatePackCmdSetString);
    // SideWaffle Remote Source Settings
    public const string guidMenuOptionsPkgString = "796B8CBC-3010-4A76-872B-56775129765F";
    public const string guidMenuOptionsCmdSetString = "13EE92AE-B8B5-4728-8AF6-F53D8DD9C391";
    public static readonly Guid guidMenuOptionsCmdSet = new Guid(guidMenuOptionsCmdSetString);
    static class PkgCmdIDList
    public const uint cmdidMyCommand = 0x100;
    public const uint SWMenuGroup = 0x100;
    I just can't seem to figure out what I might be doing wrong. Any suggestions?

    Already ahead of you on that one. Here's where I'm at
    VSCT File
    <?xml version="1.0" encoding="utf-8"?>
    <CommandTable xmlns="http://schemas.microsoft.com/VisualStudio/2005-10-18/CommandTable" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <Extern href="stdidcmd.h"/>
    <Extern href="vsshlids.h"/>
    <Commands package="guidTemplatePackPkg">
    <Groups>
    <Group guid="guidTemplatePackCmdSet" id="MyMenuGroup" priority="0x0600">
    <Parent guid="guidSHLMainMenu" id="IDM_VS_MENU_TOOLS"/>
    </Group>
    <Group guid="guidMenuOptionsCmdSet" id="SWMenuGroup" priority="0x0500">
    <Parent guid="guidSHLMainMenu" id="IDM_VS_MENU_TOOLS"/>
    </Group>
    </Groups>
    <Buttons>
    <Button guid="guidMenuOptionsCmdSet" id="cmdiSWCommand" priority="0x1000" type="Button">
    <Parent guid="guidMenuOptionsCmdSet" id="SWMenuGroup" />
    <Icon guid="guidImages" id="bmpPic1" />
    <Strings>
    <CommandName>cmdidSWCommand</CommandName>
    <ButtonText>SideWaffle Settings</ButtonText>
    </Strings>
    </Button>
    <Button guid="guidTemplatePackCmdSet" id="cmdidMyCommand" priority="0x2000" type="Button">
    <Parent guid="guidSHLMainMenu" id="IDG_VS_CTXT_PROJECT_ADD_REFERENCES" />
    <CommandFlag>DynamicVisibility</CommandFlag>
    <CommandFlag>DefaultInvisible</CommandFlag>
    <Strings>
    <CommandName>AddSideWaffleProject</CommandName>
    <ButtonText>Add Template Reference (SideWaffle project)</ButtonText>
    </Strings>
    </Button>
    </Buttons>
    <Bitmaps>
    <Bitmap guid="guidImages" href="Resources\Images.png" usedList="bmpPic1, bmpPic2, bmpPicSearch, bmpPicX, bmpPicArrows"/>
    </Bitmaps>
    </Commands>
    <Symbols>
    <GuidSymbol name="guidTemplatePackPkg" value="{e6e2a48e-387d-4af2-9072-86a5276da6d4}" />
    <GuidSymbol name="guidTemplatePackCmdSet" value="{a94bef1a-053e-4066-a851-16e5f6c915f1}">
    <IDSymbol name="MyMenuGroup" value="0x1020" />
    <IDSymbol name="cmdidMyCommand" value="0x0100" />
    </GuidSymbol>
    <GuidSymbol name="guidMenuOptionsCmdSet" value="{13EE92AE-B8B5-4728-8AF6-F53D8DD9C391}">
    <IDSymbol name="SWMenuGroup" value="0x1010" />
    <IDSymbol name="cmdidSWCommand" value="0x0090" />
    </GuidSymbol>
    <GuidSymbol name="guidImages" value="{900524C9-8677-4F84-AF97-3A1B5B45E3B2}" >
    <IDSymbol name="bmpPic1" value="1" />
    <IDSymbol name="bmpPic2" value="2" />
    <IDSymbol name="bmpPicSearch" value="3" />
    <IDSymbol name="bmpPicX" value="4" />
    <IDSymbol name="bmpPicArrows" value="5" />
    <IDSymbol name="bmpPicStrikethrough" value="6" />
    </GuidSymbol>
    </Symbols>
    </CommandTable>
    PackageConstants.cs
    // PkgCmdID.cs
    // MUST match PkgCmdID.h
    using System;
    namespace TemplatePack
    static class GuidList
    public const string guidTemplatePackPkgString = "e6e2a48e-387d-4af2-9072-86a5276da6d4";
    public const string guidTemplatePackCmdSetString = "a94bef1a-053e-4066-a851-16e5f6c915f1";
    public static readonly Guid guidTemplatePackCmdSet = new Guid(guidTemplatePackCmdSetString);
    // SideWaffle Remote Source Settings
    public const string guidMenuOptionsPkgString = "796B8CBC-3010-4A76-872B-56775129765F";
    public const string guidMenuOptionsCmdSetString = "13EE92AE-B8B5-4728-8AF6-F53D8DD9C391";
    public static readonly Guid guidMenuOptionsCmdSet = new Guid(guidMenuOptionsCmdSetString);
    static class PkgCmdIDList
    public const uint cmdidMyCommand = 0x100;
    public const uint cmdidSWCommand = 0x101;
    TemplatePackPackage.cs
    using System;
    using System.Linq;
    using System.Diagnostics;
    using System.Globalization;
    using System.Runtime.InteropServices;
    using System.ComponentModel.Design;
    using Microsoft.Win32;
    using Microsoft.VisualStudio;
    using Microsoft.VisualStudio.Shell.Interop;
    using Microsoft.VisualStudio.OLE.Interop;
    using Microsoft.VisualStudio.Shell;
    using System.Collections.Generic;
    using EnvDTE;
    using EnvDTE80;
    using LigerShark.Templates.DynamicBuilder;
    using TemplatePack.Tooling;
    namespace TemplatePack
    [PackageRegistration(UseManagedResourcesOnly = true)]
    [InstalledProductRegistration("#110", "#112", "1.0", IconResourceID = 400)]
    [ProvideMenuResource("Menus.ctmenu", 1)]
    [Guid(GuidList.guidTemplatePackPkgString)]
    [ProvideAutoLoad(UIContextGuids80.SolutionExists)]
    public sealed class TemplatePackPackage : Package
    private DTE2 _dte;
    protected override void Initialize()
    base.Initialize();
    _dte = GetService(typeof(DTE)) as DTE2;
    OleMenuCommandService mcs = GetService(typeof(IMenuCommandService)) as OleMenuCommandService;
    if (null != mcs)
    CommandID cmdId = new CommandID(GuidList.guidTemplatePackCmdSet, (int)PkgCmdIDList.cmdidMyCommand);
    OleMenuCommand button = new OleMenuCommand(ButtonClicked, cmdId);
    button.BeforeQueryStatus += button_BeforeQueryStatus;
    mcs.AddCommand(button);
    CommandID menuCommandID = new CommandID(GuidList.guidMenuOptionsCmdSet, (int)PkgCmdIDList.cmdidSWCommand);
    MenuCommand menuItem = new MenuCommand(MenuItemCallback, menuCommandID);
    mcs.AddCommand(menuItem);
    /*if(Environment.GetEnvironmentVariable("SideWaffleEnableDynamicTemplates") != null)*/{
    try {
    new DynamicTemplateBuilder().ProcessTemplates();
    catch (Exception ex) {
    // todo: replace with logging or something
    System.Windows.MessageBox.Show(ex.ToString());
    void button_BeforeQueryStatus(object sender, EventArgs e)
    var button = (OleMenuCommand)sender;
    var project = GetSelectedProjects().ElementAt(0);
    // TODO: We should only show this if the target project has the TemplateBuilder NuGet pkg installed
    // or something similar to that.
    button.Visible = true;
    // button.Visible = project.IsWebProject();
    private void ButtonClicked(object sender, EventArgs e)
    Project currentProject = GetSelectedProjects().ElementAt(0);
    var projects = _dte.Solution.GetAllProjects();
    var names = from p in projects
    where p != currentProject
    select p.Name;
    ProjectSelector selector = new ProjectSelector(names);
    bool? isSelected = selector.ShowDialog();
    if (isSelected.HasValue && isSelected.Value)
    // need to save everything because we will directly write to the project file in the creator
    _dte.ExecuteCommand("File.SaveAll");
    TemplateReferenceCreator creator = new TemplateReferenceCreator();
    var selectedProject = projects.First(p => p.Name == selector.SelectedProjectName);
    creator.AddTemplateReference(currentProject, selectedProject);
    public IEnumerable<Project> GetSelectedProjects()
    var items = (Array)_dte.ToolWindows.SolutionExplorer.SelectedItems;
    foreach (UIHierarchyItem selItem in items)
    var item = selItem.Object as Project;
    if (item != null)
    yield return item;
    private void MenuItemCallback(object sender, EventArgs e)
    // Here is where our UI (i.e. user control) will go to do all the settings.
    var window = new SettingsForm();
    window.Show();
    Once I removed the second package it no longer appeared multiple times in the Tools menu; however, when I click the button the SettingsForm is not being opened.

  • Muse 2014 -sub menu items appearing on roll-over etc.

    Hi, complete newbie, so sorry if this has already been covered elsewhere. Only started using Muse about 1 month ago and now using Muse 2014 - using horizontal menu widget and discovered how it now shows sub-menus when hovering over the main menu item- I find this great!
    I want a 'Contact Me' page with a basic form and this is not a problem, however, I want the sub-menus to appear when hovering over the other main menu items, but not the contact me page - might be completely off here, but created a 'Thank you' page as a child page of the contact me page and only want this displayed (not as a sub-menu choice when hovering over the contact me main menu item) when they have clicked the submit button on the form (I know how to set this re-direction in the forms options). Have tried playing with menu on the master page - switching off the edit together and changing settings on only the contact me menu item - without success- seems to apply to all main menu items.
    I would like to know how to achieve sub-menus on other menu items - but not on contact me item;  or whether I am going about trying to have a 'Thank you' response when someone submits the contact me form in the completely wrong way - can this be better achieved by other means?
    I would really appreciate your advice and help. My published site is 'onyerbikegeordie.uk' with the main menus - except not with a contact me page as yet, but would  give you an idea of what I am trying to achieve except for a contact me page.
    Sorry for the long post, but thanks for reading and in anticipation of your help!
    Joe
    Message was edited by: Joe Fitzpatrick

    Hi, managed to find the answer to this myself. In Plan, right-click on page and select Menu Options > Exclude Page from Menus. Job Done!
    Joe

  • Long text for line item appears twice in my PO form...

    Hello Experts,
    I am wondering why my long text for my 1st line item is appearing twice. In my PO, I only
    maintained a long text for my 1st PO line item appeards twice. below is my code:
    /E          ITEM_LINE_1
    IZ           &EKPO-EBELP&,,&EKPO-TXZ01&
    IZ           ,,&EKPO-EMATN&,,&EKPO-MENGE&,,&EKPO-MEINS&,,&EKPO-UMREZ&,,&EKPO-NETPR&,,
    =           &EKPO-NETWR&
    /:           DEFINE &LV_TEXTNAME& = ''
    /:           PERFORM GET_LONGTEXT_ITEM IN PROGRAM ZMMRP0008
    /:           USING &EKPO-EBELN&
    /:           USING &EKPO-EBELP&
    /:           CHANGING &LV_TEXTNAME&
    /:           ENDPERFORM
    /:           INCLUDE &LV_TEXTNAME& OBJECT 'EKPO' ID 'F01'
    The element 'ITEM_LINE_1' is called per line item. So in my case, 3 times. The INCLUDE statement
    at the end of the element is for the longtext. I am now confused as to why it appears twice for the 1st line item.
    Thank you guys and take care!

    Hi,
    You can debug and check whats happening there.
    Regards,
    Ram

Maybe you are looking for

  • Motorola SLVR L7 and iSync - or sync to an internet server...

    Just bought it yesterday, surprised that it is not supported by iSync. I've got the latest OS X version, iSync version. Worked great with my RAZR, what is the timing for SLVR? How long do I have to keep the phone in the box before it is useful to me?

  • SAP SmartForms (ABAP)

    hi, hope u r doing well, i am working on smartforms For first time.my doubt is :- 1) HOW TO USE STANDARD TEXT IN SMARTFORMS ? 2)How to display the contents of a standard text ? pls guide me with small example. i m waiting for ur reply , Thanx in Adv.

  • All the websites come up in a word document form

    The format of the websites is all wrong. it happens the most to youtube. all of the text goes into a word format instead of the way it is intended to. I have no clue how to fix it. some times it goes away but it always comes back.

  • How to find same values in 1 column???

    TITLE AUTHOR_NUM A Deepness in the Sky 3 Magic Terror 5 The Stranger 18 Venice 11 Second Wind 4 The Edge 4 Dreamcatcher: A Novel 6 Treasure Chests 23 Treasure Chests 25 Beloved 1 Harry Potter and the Prisoner of Azkaban 15 Van Gogh and Gauguin 9 Van

  • I can't download apps from adobe cc desktop

    when i want to download any apps from adobe cc desktop, it shows download error. unable to connect adobe server. check your internet connection or firewall settings, and try again later (12175). so what can i do now?