Embed word document in C# winforms, Have to disable/hide Quick access toolbar.

Hi Team,
Currently i am embedding a word document in winforms. I need to disble/hide/remove the quick access toolbar from the word, i was tried in different ways like below ways in C#  but it's not working .
With oDocument.Application.CommandBars("Standard")'disable the standard toolbar
      .Enabled = False
      .Visible = False
 End With
WebBrowser1.ExecWB OLECMDID_HIDETOOLBARS, OLECMDEXECOPT_DONTPROMPTUSER'toggle between "reviewing" and "standard"
toolbar
End Sub
Any help would be highly appreciate.Thanks.

Hi Ravindra
The code you're trying to use is for the old "toolbar" GUI that was discontinued in the Office applications starting with version 2007. CommandBars is still present in the object model and does interact with the new "Ribbon" interface
to a certain extent, but it's NOT used to affect visibility.
The Ribbon GUI, introduced in Office 2007, is defined by "Ribbon XML" and cannot be affected by code running from outside the application interface, nor by code running in-process that's not part of the same "container" as defines the
Ribbon XML.
From the screen shot you provide, it looks like you want to work with a specific type of document ("Custom Letter")? If yes, then it would be best for you to create a template that contains the Ribbon definition you want to provide for that type
of document. In order to suppress the QAT you need to use the "startFromScratch" command for the customUI which also means that the Ribbon XML must define the ENTIRE Ribbon interface you want to provide to your users.
You'll find the basics about customizing the Ribbon in the three-part article "for developers". You can find links to that, as well as to other information concerning the Ribbon,here:
https://social.msdn.microsoft.com/Forums/office/en-US/ba8c9d0b-7312-4503-8167-f2ef86f17435/information-on-the-office-fluent-ui-ribbon-for-developers?forum=officegeneral
Cindy Meister, VSTO/Word MVP,
my blog

Similar Messages

  • Access Outlook Shared/Delegated contacts in Word 2010's Quick Access Toolbar (QAT)

    Hello Nerds,
    Is there any way to access Outlook Shared/Delegated contacts in Word 2010's Quick Access Toolbar (QAT).
    I am able to see shared/delegated contacts in Outlook by clicking "Open Shared Contacts" but Word's 2010 QAT does not have any option to add/open shared contacts.
    Thanks much

    Hi,
    Do you mean add Delegated Access or Shared Contact command to QAT in Word 2010?
    These two commands only belong to Outlook, so we can’t add them to QAT in Word 2010.
    More reference about Add commands to Quick Access Toolbar:
    http://office.microsoft.com/en-001/support/add-commands-to-the-quick-access-toolbar-HA102814964.aspx
    Hope it can be helpful.
    Regards,

  • How can I make word document window bigger. Have tried dragging bottom corner out & clicking on '+' sign but this does nothing?

    How can I make word document window bigger. Have tried dragging bottom corner out & clicking on '+' sign but this does nothing?

    Word - Microsoft Support

  • On Pages 09, my word documents I've been saving it to iCloud, to access anywhere, but I would like to keep my docs organized in files on my finder as usual, and saving to iCloud, I lose my local one.How can I fix it and not desorganize my files?

    On Pages 09, my word documents I've been saving it to iCloud, to access anywhere, but I would like to keep my docs organized in files on my finder as usual, and saving to iCloud, I lose my local one.How can I fix it and not desorganize my files?

    It's either in local folders, as it seem you had been doing, or in icloud.  If you go into the mac's Pages and view the icloud files, you can drag on onto another to create a folder.  But you can only have folder one level deep, so you can't organize your files/folders like you can on a mac, using nested folder several levels deep.

  • Word 2013 - Publish as PDF or XPS button causes excessive registry queries / high CPU when added to quick access toolbar

    After installing Office 2013 Pro Plus on our XenApp 6.5 environment we noticed a drop in performance. Using taskmanager we could see winword.exe hit 20+% CPU usage when filling just 1 line with the same letter.
    Some investigating lead us to the "Publish as PDF or XPS button", when it is added to the quick access toolbar the cpu usage doubles during keystrokes. Using procmon I noticed excessive registry reading, up to 150,000 lines in 10 seconds.
    It seems to be a constant loop of the same queries to approx. 100 components in HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\
    I reproduced this in 3 different setups:
    Win2008R2 + Office2013 Pro Plus 32-bit + Office 2013 updates until 12-nov 2014
    Win 8.1 Laptop + Office2013 Pro Plus 32-bit + Office 2013 updates until 05-jan 2015
    Win 8.1 Desktop + Office2013 Pro Plus 64-bit + Office 2013 updates until 17-dec 2014
    Can anyone verify this behaviour? For now we've removed the shortcut from the quick access toolbar in our environment.
    Here's a small portion of the queries.
    19:22:49,7117781 WINWORD.EXE 1484 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
    19:22:49,7117861 WINWORD.EXE 1484 RegOpenKey HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\1A89310DF62F54544A1465F790A7757D SUCCESS Desired Access: Read
    19:22:49,7117969 WINWORD.EXE 1484 RegQueryValue HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\1A89310DF62F54544A1465F790A7757D\00005109110000000100000000F01FEC SUCCESS Type: REG_SZ, Length: 130, Data: C:\?Program Files\Common
    Files\Microsoft Shared\OFFICE15\MSO.DLL
    19:22:49,7118058 WINWORD.EXE 1484 RegCloseKey HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\1A89310DF62F54544A1465F790A7757D SUCCESS
    19:22:49,7118154 WINWORD.EXE 1484 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
    19:22:49,7118232 WINWORD.EXE 1484 RegOpenKey HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\837CF31208764B643868B58117357D20 SUCCESS Desired Access: Read
    19:22:49,7118332 WINWORD.EXE 1484 RegQueryValue HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\837CF31208764B643868B58117357D20\00005109110000000100000000F01FEC SUCCESS Type: REG_SZ, Length: 112, Data: C:\Program Files\Microsoft
    Office\Office15\OUTLFLTR.DLL
    19:22:49,7118415 WINWORD.EXE 1484 RegCloseKey HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\837CF31208764B643868B58117357D20 SUCCESS
    19:22:49,7118511 WINWORD.EXE 1484 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
    19:22:49,7118586 WINWORD.EXE 1484 RegOpenKey HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\FDFFB7C3B3B7DA048B21B3A72D1BF855 SUCCESS Desired Access: Read
    19:22:49,7118694 WINWORD.EXE 1484 RegQueryValue HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\FDFFB7C3B3B7DA048B21B3A72D1BF855\00005109110000000100000000F01FEC BUFFER OVERFLOW Length: 144
    19:22:49,7118769 WINWORD.EXE 1484 RegQueryValue HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\FDFFB7C3B3B7DA048B21B3A72D1BF855\00005109110000000100000000F01FEC SUCCESS Type: REG_SZ, Length: 134, Data: C:\Program Files\Common
    Files\Microsoft Shared\OFFICE15\FLTLDR.EXE
    19:22:49,7118849 WINWORD.EXE 1484 RegCloseKey HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\FDFFB7C3B3B7DA048B21B3A72D1BF855 SUCCESS
    19:22:49,7118949 WINWORD.EXE 1484 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
    19:22:49,7119023 WINWORD.EXE 1484 RegOpenKey HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\BF574A30F66E6D54186C7F15B116E7A3 SUCCESS Desired Access: Read
    19:22:49,7119123 WINWORD.EXE 1484 RegQueryValue HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\BF574A30F66E6D54186C7F15B116E7A3\00005109110000000100000000F01FEC SUCCESS Type: REG_SZ, Length: 100, Data: 20:\CLSID\{000C0126-0000-0000-C000-000000000046}\
    19:22:49,7119203 WINWORD.EXE 1484 RegCloseKey HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\BF574A30F66E6D54186C7F15B116E7A3 SUCCESS
    19:22:49,7119295 WINWORD.EXE 1484 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
    19:22:49,7119369 WINWORD.EXE 1484 RegOpenKey HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\017CCC9DE12773C4FAD559D2951B14C6 SUCCESS Desired Access: Read
    19:22:49,7119466 WINWORD.EXE 1484 RegQueryValue HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\017CCC9DE12773C4FAD559D2951B14C6\00005109110000000100000000F01FEC SUCCESS Type: REG_SZ, Length: 128, Data: 22:\Software\Microsoft\Office\15.0\User
    Settings\Mso_Core\Count
    19:22:49,7119544 WINWORD.EXE 1484 RegCloseKey HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\017CCC9DE12773C4FAD559D2951B14C6 SUCCESS

    I'll do that, I'm however still interested if somebody can confirm the excessive registry queries.
    As a brief test, I captured winword.exe (2013) registry-reads on my Win8.1 pc (64bit Windows), with ProcMon.
    this is over a capture period of less than one second
    2092 of 2352 contain "component" in the reg path
    this is when I have winword open and whilst "File, Export" is displayed (this is what offers the export-to-PDF option)
    vs.  168 registry operations in an interval of 10 seconds, by winword.exe, if word is simply "running in background with an open blank document"
    I'm not sure if that is useful, but it seems an awful lot of registry reads/writes from an application which isn't apparently doing anything at the time..
    EDIT: similar registry read/write rate, when save-as-pdf is added to QAT (again sitting idle on a blank document). the registry read/write rate drops back down to 160 if the save-as-pdf feature is then removed from QAT.
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Embed word documents in adobe form

    Hi,
    Is it possible to embedd a word document in Adobe PDF forms.
    We have a requrirement where we have to embedd more than one word documents into adobe forms.
    I want to read the contents of word document and display them in PDF document.
    There are methods to attach different documents in pdf but did not find any method to embedd the document.
    Please let me know if there is any element in adobe forms or a class method which is used to embedd the word documents.
    Thanks,
    Amit

    Hi Amit,
    As far as i know the only way to solve your issue is to convert your form as an image ( JPEG file ) , store it into a network place that ADS can acces and then you can add it in the forms dinamycally.
    It's not possible to had the word document content dinamycally in the form.
    Hope this help you
    Regards

  • I have existing excel and word documents how do i get theminto the cloud for access from my ipad

    I have just brought an ipad air and want to set up the cloud so i can access all my excel files, how do i get all my documents onto the cloud so i can access them ? from my ipad remotly

    Using Pages (for word files) and Numbers (for excel files), you can buy both from the Mac App Store

  • Can open a SharePoint Word document but do not have option to save back to SharePoint.

    Office 2013. I create documents in Word and save them to a folder in SharePoint. Certain users can click on the file in SharePoint, and open/edit the contents. But when they save the document by clicking the Save icon, the document is saved to the \temp
    directory. When they select Save As and then select SharePoint, they have to browse to/find the directory (it is one of hundreds), and when they finally try to save it to the correct directory they over-write the document that is there, erasing all changes
    from other editors.
    I have 6 people contributing to my documents on SharePoint, and 2 of them have this problem. All other users are fine.
    I checked the Trusted settings on their computer but it seems they are carried over from the document I created...so I am stuck.

    Hi Kokiafan,
    According to your description, my understanding is that some users could not save documents back to SharePoint by default.
    You mentioned that you have checked the Trusted settings, where was the Trusted settings? Was it from IE or Office?
    Please uncheck “Enable Protected View for files located in potentially unsafe location” in the Trust Center of Office, compare the result.
    More information, please refer to the link:
    http://blogs.interfacett.com/word-2010-not-saving-back-to-sharepoint-2010-by-default
    Another similar post for your reference:
    http://isharepoint.wordpress.com/2011/05/26/can-not-save-document-back-into-document-library/
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • I cannot choose to open Word documents, I always have to save them first.

    With most applications like Excel and pdf downloads I can choose whether to open the document or save it, but with Word documents I don't have the option, I have to save them.

    See "File handling in Firefox 3 and SeaMonkey 2":
    * http://kb.mozillazine.org/File_types_and_download_actions

  • Opening word document with linked PPT inside

    Hi everybody,
    this is an error occuring using KM functionality, which could also be cause by the local Microsoft environment, but perhaps anybody knows this ...
    We are using EP 6.0.2.4.8 with CM 6.0.2.4.6
    In several KM navigation iviews we have linked folders from a file system repository with word documents inside. Users have problems opening the word documents which have powerpoint files linked inside the document. The powerpoint files are not embedded, but linked and shown as object (not as symbol or hyperlink).
    This means: word document is openened via http://<portal>/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/<folder>/<file>.doc
    The PPT linked inside leads to
    <fileserver>\<share>\<file>.ppt
    In some user environments (depending on local security policies(?) and local user/word options) word tries to automatically refresh the linked objects and then word crashes with an exception.
    So far, a Microsoft problem, but:
    when I copy the same word document to a simple IIS webserver an open it, the file is opened properly ...
    Is this problem known somewhere? As it is a local application error, I do not get any error in the portal logs ...
    Best regards,
    Martin

    Hello,
    Thanks for your answer. Since I work at a customer's office, I couldn't reply before because it took me some times to perform the tests.
    I tried to embed the images in Word before importing the document into Robohelp 8. The problem remains. RH creates the images into a new folder (and names the images "image001", "image002", and so on). Therefore, the link with the original images is lost.
    So, if we modify the image linked to the Word document, we are obliged to apply the same changes in the images created by RH.
    The idea would be to have only one image folders used both by RH and Word so that if we change our images, the changes apply in all our files.
    This option was available in RH x5.
    Best Regards,
    Isabelle

  • Got errors when trying to open word document with Office Web App Server and customized WOPI host

    I am configuring the Office Web App Server with our ASP.NET MVC WOPI host based on this example. https://code.msdn.microsoft.com/office/Building-an-Office-Web-f98650d6. While both the OWA server and WOPI server has been set up and I can use Excel and PowerPoint
    app to open and edit xls and ppt file now, there are problems opening word documents no matter I enable or disable the editing function of OWA server.
    When I open a word document while enabling editing I got this error:
    If I disable editing I got this message:
    I have tried several file so I thought it is not the files' problem. Also I didn't find any exception in the log of OWA server. 

    Hi Gary Jiang,
    Thanks for posting in MSDN forum.
    This forum is for developers discussing issues about
    apps for Office.
    Based on the description, it seems that you got an issue when you deploy the code sample. If I understood clearly, I suggest that you contact the author of the code sample from the "Q and A" tab.
    Also if you have the question about WOPI, I suggest that you get more effective response from
    Office
    Protocols forum.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Field codes in Word document

    Hi,
    This issue keeps occuring when I generate a printed document
    from RoboHelp.
    I am not choosing the Word template in the final setting
    page, but just letting robohelp use the css template.
    Does anyone have any ideas what is causing this & how to
    resolve it?
    many thanks

    If I understand your issue correctly, you're seeing paragraph
    marks, space marks, and fields in the final Word document. If so,
    click the
    Show/Hide button in Word to turn this feature off. When you
    next generate your Help file, it'll look just fine from the get-go
    (I hope).

  • Opening a Word document in a form layout html region

    Hi all,
    In an Interactive Report I use
    select '<img src="#WORKSPACE_IMAGES#'||package.f_get_document_type ( doc.id )||'" title="Document" width=20 height=20>'
    ) document
    from table
    to show an icon that eventually downloads (and shows) a word document.
    Now I have a form layout html region and I want to have the same icon\link to show a document.The document however is not in the same table as the rest of the page is based on.
    How can I show the document on this page?
    Kind Regards,
    Maurice
    Environment = Apex 4.0 database 11G
    Edited by: maurice.niezen on Aug 31, 2010 2:10 AM

    One way, create a hidden item, and return the value into it from your package (by having a computation that calls the function package.f_get_document_type(:P1_DOC_ID) . Let's say it's called :P1_DOC_TYPE
    There's a new item type in Apex 4, which is Display Image.
    When you get to settings in the item creation wizard, specify what the image is based on. From there, you can set it to be 'Image URL stored in Page item Value. Then on the source page, you can just specify the URL, #WORKSPACE_IMAGES#&P1_DOC_TYPE.

  • Opening Word document templates from the New Document drop down does not open Word

    I have a document library with a number of Content Types attached to it.  Each one has a different Word document attached.  We have an intermittent problem where when you click to open one of these templates from the 'New Document' drop
    down list that nothing happens. The workaround appears to be either open Word first or re-boot the computer.  I think there is a problem with SharePoint not linking in with Word correctly.  Does anyone have any suggestions on how to fix this?
    Thanks
    Julie
    J Sykes

    Hi J,
    Can you please check in your internet explorer whether MS office Add ons enable or not.
    If not enable that and restart your browser and try again.
    Also try to repair MS Office if issue still persist.
    Regards
    Soni K

  • How to create a link to open an Internet explorer or a word document

    Hi,
    I have requirement to create help button in WEB UI and when clicking the help it should open my custom html page..
    Currently i have the word document. Should i have to create a BSP application and if so how will i copy all the contents to the htm page.
    How will i call this page?
    Thanks in Advance
    Pandiyan.

    Hello Pandiyan,
    You will get better response from this forum:
    Easwar Ram
    http://www.parxlns.com

Maybe you are looking for

  • Urgent: AP Payment report

    Hi, I want Items cleared between a range of posting date, and that were open as of key date (from start till key date) What should be the selection for it? Thank you, sam

  • [REQUEST]Advanced weather software (With radar tracking)

    Hey community, I am a big weather enthusiast and enjoy watching and tracking storms. Over the years I have searched the web for weather software advanced enough to meet my needs. I am interested in tracking storms individually by cell number and view

  • Full screen contact pic troubles

    full screen contact pic not possible even after 1.reset my iphone 2. take photo from phone camera in Edit Contact 3.Change Camera to HDR and interestingly, after saving pic in contact it reverts back to small pic again after a while though a couple o

  • Is it possible share the geotags of images in a shared photostream?

    When sharing an image in a shared photostream the geotag seems to be removed. Is it possible to change this behaviour to share the locations of images?

  • TS3899 Having trouble getting email from my blue yonder account.

    ipad says searching for mail and then times out with error message, "server not working check settings". have checked settings and deleted account and re installed but still having trouble. Also tried power on off. Can send mail ok. Any help would be