Word, Ask- en REF velden, Sjabloon, VBA, macro
L.S., I work within a Word file with, among other things, Ask and Ref fields. By asking questions about this, I found out that saving the file as a Word template (.dotm) is not an option because the...
View ArticleHow to handle "Could not open macro storage." for Word 2013 in C# using File...
How to handle "Could not open macro storage." for Word 2013 in C# using File SetAttributes.I had tried File.SetAttributes(fileName, FileAttributes.Normal);I am unable to load documents like...
View ArticleExport each chapters (title1) as a separate pdf
I try to export each "title1" style paragraph into a pdf file with the title1 text as filename but I always get a "incorrect filename " even when the title is "text1"Sub ExportTitle1() ' ' ExportTitle1...
View ArticleHow to use 'pdf reflow' to convert pdf to word whit 'c#‘?
I want to convert pdf to word use 'pdf reflow ' with 'C#', not VB.
View ArticleTrying to drop the contents of one Word document into another
Hi all;This is in an IDTExtensibility2 (not VSTO) Word AddIn. I'm trying to do a drag drop where I programatically give the contents of one document to DoDragDrop(). The problem is instead of dropping...
View Articleautomatically add row to table
Hello,I have a table in my work document that contains a Drop-Down list content control.When the last cell of the table is filled in I would like word to prompt the user if they wish to add a new...
View ArticleMicrosoft.Office.Interop.Word BookFoldPrinting issue in a document with sections
I can print in booklet format fine when making the changes manually in Word 2016 but it does not work correctly programmatically.The document does not print correctly if the...
View ArticleHide the File Tab from Word 2016
How do i hide the File Tab on my ribbon on Microsoft Word 2016?
View ArticleHow to iterate on muliselected text in Word using VBA?
Using ctrl key and left mouse button I can select couple not connected parts of text in document. How in VBA iterate on those selected parts? I have to export each of them to different file. When I...
View ArticleGrid Styles in StyleGalleryClassic, How to Remove
I have a custom template with a custom ribbon containing the StyleGalleryClassic XML element.I've used the style manager to show only the styles I want used in the documents being with this template...
View ArticleOpen document event custom dialog
We need to implement a custom open file dialog when using Microsoft Word 2016. I am using a VSTO Addin and unfortunately the DocumentOpen event is triggered only after the document is selected. 1) Is...
View ArticleWindowBeforeDoubleClick doesn't work on Shapes in PowerPoint2016
According to the specification here, https://msdn.microsoft.com/en-us/VBA/PowerPoint-VBA/articles/application-windowbeforedoubleclick-event-powerpoint, I have been trying to add the...
View ArticleHighlight applied style in word document created using c# code.
Hi,I have created word document with " Microsoft.Office.Interop.Word" , i want to select style (Heading 1, title etc) on office style when we select paragraph.While selecting paragraph on generated...
View Articlehow to use C# tick the checkbox in word2007
how to use C# tick the checkbox in word2007
View ArticleHow to use Microsoft office view with web/rest api url
Hi All,As we know MS office online viewer is used to show office document in browser, we need to append client public document url into thesrc parameter of viewer url, may i use Web/Rest api in src...
View ArticleoleObject (embedded) DOCX in DOCX - AddIn events don't fire for embedded docx
Hi all;I open a DOCX file and my AddIn fires on all expected events. In that document I insert a new DOCX file - and no events fire. My AddIn is displayed in the ribbon, but...
View ArticleHow can I define an output directory and use the original filename when...
Currently I am using Office 2016 and C# and using the ExportAsFixedFormat method I was able to automatically export a directory of docx files to pdf files but I cannot figure out how to use the...
View ArticleWord cannot complete the save due to a file permission error
Hi,I am basically doing:protected void OnDocumentBeforeSave(Document wordDocument, ref bool saveAsUi, ref bool shallBeCancelled) { wordDocument.Save(); saveAsUi = false; }And always I get the a message...
View ArticleMacro that remove question marks from document
Hello Gurus - There is a word template that users uses. They modify the document created off of this template. Sometimes they copy and paste from internet content in the document. This document then...
View ArticleChange Property of a word document Programmatically
I have created a word vsto Add-ins where I open my document/templates from a server.I wish to customise the property/doctype for example the Title/Author programmatically using C#! I have gone through...
View Article