convert the contents of word file to JPEG in c#

I want to convert the contents of word file [single page] into JPEG file in C#. Follwing is the code I have tried. But the Clipboard.GetImage() returns a null. Please help me...

Opening MSWord from MSAccess using VBA - 429 Error

I have a really simple bit of code that I'm trying to in Ms Access 2010. I want a control on a form to open a word document. I've tried several things but the simplest piece of code I've cobbled...

Microsoft Interop saveAs command failed

I have this simple console app that converts Word documents to PDF using Microsoft Office Interop API. For some reason, this one document always fails and I have attached it and removed all...

c# word interop find and replace everything

I have some code to replace text inside a word 2010 docx. object fileName = Path.Combine(System.Windows.Forms.Application.StartupPath, "document.docx"); ...

error "string parameter too long". at microsoft.office.interop.word.find.execute

I want to create a world document using C#. So this is my code for replace word document variables. private void FindAndReplace(Microsoft.Office.Interop.Word.Application WordApp, object...

Method not found: 'System.Type System.Runtime.InteropServices.Marshal.GetTypeFromCLSID(System.Guid)'

I spent a good deal of time writing this program on my dev box, after moving it to our production boxes I get the error below. Just an FYI I don't have any control over what is installed and what...

How to get the PID of a PyWin32 process

I'm using the PyWin32 extensions to do some Microsoft Office calculations through my Python code. This is how I start Word: import win32com.client wordApp =...

How do I unhighlight text I just highlighted in Word

The error occurs as described in below steps: If i search a keyword then the searched keyword is higlighted. 2.The next time i search something the previous search results that were highlighted...

VBA ActiveDocument Concerns / Alternatives?

I'm using VBA in access to open up a protected word template, fill in the data, and then re-protect it.... this way, if the database system goes down, the word template can still be used manually...

Interop.Powerpoint equivalent of Interop.Word.Application.Visiblity = off

If I want to create a word document in C# using Interop.Word, I can create the document without ever opening the program: Microsoft.Office.Interop.Word.Application wordApp = new...

Can't set field name when creating word document

I'm using Office 365. My Access VBA code is creating a Word document. I can add a field onto a table within the document. But when I try to set the Name of the field or the text within the field,...

Access 2013 VBA,bad filling Word 2013 forms with data from Access 2013

I have a problem with filling Word 2013 forms with data from Access 2013. References: Visual Basic for application MS Access 15 Office Library Ole automation MS Access 15 database engine object MS...

inlineShape = inlineShapes.AddPicture() ; referring to any word file, not to my created Interop.Word.Application

My task is to open a word file, on a button1 click, and add an image to that word file at cursor position on button2 click so on button_click events I write: private void button1_Click(object...

Inserting text in a embedded Word template, at a bookmark, from excel. "error 13 Type mismatch" error

I am currently working on a project that have one word template embedded in one excel template. A button in excel was created for opening the embedded word template, exporting the data from excel...

Set Word Content Control from Access

I have a word template that I use for documentation. I would like to set the content controls in the word document from MS Access. I figured out how to set the items in...

VBA Access object code for DropDownList ContentControls

I am coding an Access database that will collect user input, then open a Word document and fill out various parts of the document. The problem I am having is it will only work once for Drop Down...

Word Automation - Text, then table, then more text

I need your help, I am trying to have text, followed by a table then more text however, the current output is table, text, then more text. The problem: The desired output: The code in...

MailItem.GetInspector.WordEditor in Office 2016 generates Application-defined or object defined error

I wrote an Excel macro to send email from a spreadsheet. It works on Office 2013, but not Office 2016. I looked at the VBA differences between Office 2013 and 2016, but couldn't see anything about...

Interop Word - Show splash screen

I need to open Word document through Interop with following code: Microsoft.Office.Interop.Word.Application wordApp = new...

Check if Word document is already open before opening it in C#

I'm doing several things with a Word document in the background and sometimes, if the app fails, an instance of MS Word is left running in the background. Upon restart, it tries to open the same...

Copying from Excel to Word. Word creates a lot of blank pages

I have some code that is supposed to copy a range of cells with data in excel and then paste it into a word document. The code works well, but the problem is that when it paste the data into word...

Setting table AutoFit via VBA gives different result than clicking UI button

I'm trying to set AutoFitBehavior of a Word table to fit both content and window - clicking 'AutoFit Contents' button, then 'AutoFit Window' gives the result I want to get. The problem is, when I...

Creating Word Docs w/ Excel VBA- Insert Images? Copy and Paste Text from 3rd Doc

I am trying to write some VBA code in excel to automate my task of building 100+ .pdf word documents, each following the set template. I originally copied a code from a youtube tutorial showing...

Pasting Text From Excel to Word in Specific Locations VBA

I am trying to place variables that I have already established (In this case the variable is QN_number) into a word document in specific locations, I have done this in the past except I placed an...

Checking if word file is already open vba

Before opening a Word file, I want to check if this file is already open. (More word files are open at the same time) The main sub calls this function to tell me if it's open or not. Function...

How to add images with figure captions to a word document

import win32com.client as win32 import os #creating a word application object wordApp = win32.gencache.EnsureDispatch('Word.Application') #create a word application object wordApp.Visible = True...

Inserting image content from Rest API to currently opened document in Microsoft Word

Edit: This question's text has been changed to reflect utilizing open xml code and interop. I'm trying to insert a base 64 encoded image to a Word document via a ribbon. The following code is for...

How to fix the exception, when I call new Microsoft.Office.Interop.Word.Application()

When I call new Microsoft.Office.Interop.Word.Application() to initialize, an error occurred. The message is as follows: Unable to cast COM object of type...

The trackrevisions method or property is not available because this command is not available for reading

I hope someone can help me. I am a programing it in C#. When I use this track revisions funcion, I meet a exception message whose content is the trackrevisions method or property is not available...

I want to set the page orientation to landscape on word using vba from excel

I think this would be an easy soultion, but I can't find the way..... So the problem is this, I have an excel document with different sheets, but in just one sheet I want to create a table, after...