Blog 42
  • Home
  • About
Sign in Subscribe

Office

A collection of 3 posts
E_ACCESSDENIED with Office Interop
Office

E_ACCESSDENIED with Office Interop

Once upon a time, I had a nice little function which would open an Word-Document via Microsoft-Interop, export all bookmarks as a Dictionary<BookmarkName, StringBookmarkValue>. I would modify this dictionary and by pass it on to another little function, which would afterwards set all the values of the
26 Feb 2013 1 min read
Handling Bookmarks in OpenXML Word-Documents
C#

Handling Bookmarks in OpenXML Word-Documents

I needed to re-implement my function of exporting all bookmarks of a word-document into a dictionary and than setting them based on the changes in the dictionary from Word-Interop to OpenXML SDK. I've found a very helpful answer on StackOverflow suggesting the following solution: IDictionary<string, BookmarkStart&
26 Feb 2013 4 min read
Problem Adding Ribbon-Control to Office AddIn Projects
C#

Problem Adding Ribbon-Control to Office AddIn Projects

ThisRibbonCollection' does not contain a definition for 'GetRibbon'.... If you see this error, don't panic, the solution is rather simple. To make matters easier for you, Office AddIns have a partial class "ThisRibbonCollection" which is automatically used to define your Ribbon Control as
07 Jan 2013 1 min read
Page 1 of 1
Blog 42 © 2025
Powered by Ghost