tagged [ms-word]
Can't locate Microsoft.Office.Interop.Word in Reference List
Can't locate Microsoft.Office.Interop.Word in Reference List I was given this solution to a problem I had, since I didn't know how to integrate MS Word with C#: [http://www.dotnetperls.com/word](http:...
- Modified
- 30 Nov at 09:48
How do I create the .docx document with Microsoft.Office.Interop.Word?
How do I create the .docx document with Microsoft.Office.Interop.Word? How do I create the .docx document with Microsoft.Office.Interop.Word from List? or the best way is to add docx.dll? [http://www....
MS Word Office Automation - Filling Text Form Fields And Check Box Form Fields And Mail Merge
MS Word Office Automation - Filling Text Form Fields And Check Box Form Fields And Mail Merge Does anyone have any good advice or experience on how to create an engine using C# (VB.NET is okay too) th...
Add a row to an MS Word table using Microsoft.Office.Interop
Add a row to an MS Word table using Microsoft.Office.Interop I have a word template with a table that I am populating from a list of strings that I split using tab characters. I do not know how many l...
- Modified
- 4 Aug at 12:6
Excel VBA Macro: User Defined Type Not Defined
Excel VBA Macro: User Defined Type Not Defined I'm getting the above error when trying to execute this macros. I'm pretty new to Macros and coding in general so please forgive the ignorance. ``` Sub D...
Convert DOC / DOCX to PNG
Convert DOC / DOCX to PNG I am trying to create a web service that will convert a doc/docx to png format. The problem I seem to have is I can't find any library or something close to it that will do w...
- Modified
- 25 Jan at 10:47
Replace bookmark text in Word file using Open XML SDK
Replace bookmark text in Word file using Open XML SDK I assume v2.0 is better... they have some nice "how to:..." [examples](http://msdn.microsoft.com/en-us/library/cc850833.aspx) but bookmarks don't ...
- Modified
- 22 Jul at 11:27
Word macro cannot save filename > 255 characters
Word macro cannot save filename > 255 characters I have this in my Word Macro ``` ActiveDocument.SaveAs FileName:="D:\\GrooveAndRock\\GrooveAndRock\\GrooveAndRock\\GrooveAndRock\\GrooveAndRock\\Groove...
Get PID from MS-Word ApplicationClass?
Get PID from MS-Word ApplicationClass? Consider this code: Can I get the PID from the Winword.exe process that was launched by the _application? I need the PID because with corrupted files, I just can...
How do you stream an Excel 2007 or Word 2007 file using asp.net and c#
How do you stream an Excel 2007 or Word 2007 file using asp.net and c# I'm working on a web app and need to stream various files. I can do pdfs, images, and older Office documents. However, when I try...
c# word interop find and replace everything
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");...
- Modified
- 2 Mar at 22:32
Saving an OpenXML Document (Word) generated from a template
Saving an OpenXML Document (Word) generated from a template I have a bit of code that will open a Word 2007 (docx) document and update the appropriate CustomXmlPart (thus updating the Content Controls...
How to copy code from Visual Studio to MS Word with EVERY highlight exactly as it is?
How to copy code from Visual Studio to MS Word with EVERY highlight exactly as it is? I am making a report about my program and I need copy all the code to an MS document. The problem is that I need t...
- Modified
- 17 Mar at 16:43
Couldn't find Microsoft Word Document in DCOM Config
Couldn't find Microsoft Word Document in DCOM Config I am creating a simple asp.net web site that use office 2007/2010 automation .. when i published the website on the iis 7 on my local machine (wind...
Duplicating Word document using OpenXml and C#
Duplicating Word document using OpenXml and C# I am using Word and OpenXml to provide mail merge functionality in a C# ASP.NET web application: 1) A document is uploaded with a number of pre-defined s...
Is there a way to access a Ribbon (XML) at run time?
Is there a way to access a Ribbon (XML) at run time? I'm working on a Word 2007 app-level add-in. So far, I haven't experienced major obstacles except for converting the add-in's Ribbon interface to X...
How do you display code snippets in MS Word preserving format and syntax highlighting?
How do you display code snippets in MS Word preserving format and syntax highlighting? Does anyone know a way to display code in Microsoft Word documents that preserves coloring and formatting? Prefer...
- Modified
- 29 Nov at 07:17
How to keep xml from converting /r/n into 

How to keep xml from converting /r/n into 
 I have here a small code: ``` string attributeValue = "Hello" + Environment.NewLine + " Hello 2"; XElement element = new XElement("test"); XElement...
Open and modify Word Document
Open and modify Word Document I want to open a word file saved in my server using "Microsoft.Office.Interop.Word". This is my code: ``` object missing = System.Reflection.Missing.Value; object readO...
How to add section break next page using openxml?
How to add section break next page using openxml? I want to add a section break at the end of the document and add some text. My code is as below: ``` using System; using System.Collections.Generic; u...
How do you mail merge a word document in c#
How do you mail merge a word document in c# # What I'm trying to achieve In my c# application I would like to generate a report (word document) from data in my application, I figured that the best way...
Interop.Word Documents.Open is null
Interop.Word Documents.Open is null I am trying to open .docx file and convert to PDF using Interop.Word.Application. It works as console application but If I use the same in my web application it doe...
- Modified
- 6 Dec at 15:29
Read from word document line by line
Read from word document line by line I'm trying to read a word document using C#. I am able to get all text but I want to be able to read and . Currently my code returns a list of one item only with a...
- Modified
- 13 Mar at 07:20
Convert Word to HTML then render HTML on webpage
Convert Word to HTML then render HTML on webpage I have a tough project in my pipeline and I'm not sure where to begin. My boss wants the ability to display a Word Document in HTML and it look the sam...