Category "ms-word"

Write docm files using Python win32com and python-docx

Win32com only works on Windows operating systems and can process docm files. However, python-docx works on all operating systems and cannot process docm files.

Search entire document for String and Select all instances at once

I am new to VBA. I want to search a Word document for all occurrences of the string "the", and select all the occurrences at once. Currently, I have this code,

Disable Macros Automatically Microsoft Word Interop

I have a addin in word that on startup tries to use some macros (I presume that's what it's trying to do anyway), and pops up a window that looks similar to I

Populate word tables from an Excel table

From our audit database I derive an Excel table like this one below. What I need to do is populate a table in a word template document with the content of the f

OfficeJs - How to display modal dialog

I am using OfficeJs to create word add-in. In that i want to show modal dialog on click on ribbon button. I have used below API Office.context.ui.displayDialogA

VBA Word - InsertFile changes the style (font, size...) of the bookmark and adds a new line

I'm trying to fill a Word document with plain text files in VBA. Here is what I have : The Word document has bookmarks with default text inside (this helps me t

Remove Empty from word document using Open XMl in >net Core

Removing the empty line from the word document the using Open Xml in .Net core

How can I set the complete page background for a Word page with Apache POI?

I have already searched all day today, but without success. First I created a new Word document and tried to set the background with //Blank Document XWPFD

Save InlineShape picture to file in Word VBA

I am trying to extract a picture from a Word document and save it in a file, using vba. I don't really care about the output format, as long as it is readable.

Create and download Word file in Blazor

I am trying to create a Word file and download the created file in clients browser. The creation part seems to work fine and I can open the file manually from i

Export textbox and datagridview data to a WORD document. All to the same document

I got a Windows Forms application using C# and struggling now for over a week trying to export some textboxes and a datagridview data to a word document. I'v ma

Convert Latex to Word using Rmarkdown

I have a latex file called mylatex.tex, and I am trying to convert it to a word document. Does anyone know the step by step process to do this using Rmarkdonw?

Bookdown:: word_document2 knits outdated word document

my manuscript output is no longer converted into an updated word document using bookdown or regular md. After knitting my .Rmd, I get an outdated version of the

Apply code to active document not document opened with Documents.Add

I got a VBA project from colleague who is retired. I have to change a function: Documents.Add Template:= _ "c:\word\Link.dot", _ NewTemplate:=False, Doc

Importing Graphs from external simulating software to Word Document

I looking to automate the process where I am supposed to the run the simulation to study around 100 different charts, and then exporting them to the word file.

Rename Word mailmerge fields in VBA

I want to rename mergefields in a Word document. I use the following script (based on Change value of Word MailMerge field using VBA). I run the script and I se

Set the width of regulartable() when exported in word document

Im trying to export a dataframe to word using knitr and regulartable() but my table does not fit in the word page. --- title: "Correlation table" author: "mk" d

Microsoft.Office.Interop.Word in .NET 6.0 - Change builtin document property

Using the Microsoft.Office.Interop.Word.Document interface in C# you can get/set the document's built-in properties (Author, Title, Subject, Creation date,...)

When a call made to Word.run function, I am getting 'Word' is undefined in word 2016

Issue: Here I am using an word add-in in word 2016. When a call a function which uses Word.run is giving an error as 'Word' is undefined. The add-in file is wor

Php not updating word document

I had created an automation system with php which takes information straight from a contact form on my website and fills in the information into a word template