Questions tagged [novacode-docx]

DocX is a .NET library that allows developers to manipulate Word 2007/2010/2013 files.

DocX is a .NET library that allows developers to manipulate Word 2007/2010/2013 files, in an easy and intuitive manor.

DocX is fast, lightweight and best of all it does not require Microsoft Word or Office to be installed. All that you need to install in order to use DocX is the .NET framework 4.0 and Visual Studio 2010, both of which are free.

106 questions
1
vote
1 answer

.Doc file is not creating properly in asp.net coming with html tags

.doc is not creating properly . creating with complete html tags instead of words like below data in ms word document
user4762012
1
vote
1 answer

Error when trying to insert a table using Novacode DocX nuget package

I'm trying to create/manipulate Word .docx files using the DocX nuget package. In the documentation they provide the following example: // Place holder for a Table. Table t; // Load document a. using (DocX documentA =…
Richard West
  • 2,166
  • 4
  • 26
  • 40
1
vote
1 answer

Looping Through Each Word In Word Document Using Docx Library

I am trying to make a small program to apply autocorrect changes to an exiting document. I am using the docX library. My question is, how do you iterate (or loop) through each word in the document, using the docX library, to check if it needs to be…
user3150255
  • 121
  • 2
  • 7
1
vote
1 answer

Create document using docx library with HTML text

I want to create a document (*.docx) using docx library. I have HTML formatted text from a rich text editor, and I want to save it as it is. I am not able to find any place where I can get the help. My current code is very basic, and is copy paste…
PM.
  • 1,735
  • 1
  • 30
  • 38
1
vote
1 answer

How can I use the DocX library to change the font globally, remove superfluous spaces, and remove or add extra line breaks?

I want to, using the DocX library [https://docx.codeplex.com/], convert a .docx document to use a different font. Does anybody know how to do that? The samples projects are very spare, and the documentation is nonexistent. I find, too, that often…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
1
vote
1 answer

Set my paragrpah to be write right to left

I create a word document the DocX project. I need to set my paragrpah right-to-left but I don't know what should I do? string fileName = @"D:\Users\John\Documents\DocXExample.docx"; // Create a document in memory: var doc =…
user2796487
0
votes
0 answers

error message when we use the openstack dashboard

we received the following error when we use the openstack dashboard $sudo tail -f /var/log/httpd/horizon_error.log 2023-06-07 03:07:30.295091 Call to list supported extensions failed. This is likely due to a problem communicating with the Nova…
Ranya
  • 1
  • 1
0
votes
1 answer

.net New line and sapce character in docx?

My text from DB is like title &vbCr& "1. conetnt01" &vbCr& " 1.1 sub" &vbCr& "2. content02" &vbCr& " 2.2 sub" After replaced vbCr to vbCrLf In docx title 1. conetnt01 1.1 sub content 2. content02 2.2 sub But my expect is 1. conetnt01 1.1…
Kidd Wang
  • 13
  • 3
0
votes
0 answers

Error when inserting multiple documents into one main DocX generated word document

I'm creating a program that builds a main document for a list of sub-documents/pages that are also generated by the program. The individual documents generate fine, but when I merge them - final document is corrupted. This is a .net-core project,…
0
votes
1 answer

C# docx locating a word into Table

I have a word document with a huge two columns table, the first column contains a code, and the second one contains a word. In many rows the word of the second column is repeated so I need to locate all rows with repeated words. I'm using findAll()…
REDMAN
  • 91
  • 9
0
votes
1 answer

Xceed DocX How to create an index in a generated word document

I'm using Xceed in C# .Net I can't find any documentation on how to create an index with Xceed/DocX. Is it even possible to do in the first place? I'd like to create one from scratch, because I'm not using a template.
Carlove
  • 429
  • 1
  • 4
  • 15
0
votes
0 answers

Adding Table to Existed Word Document using DocX

I need to add table with some data to an existed Word template and I'm using novacode-docx Lib. However, there is an issue that I can't locate. For some templates, everything works fine but for others I'm getting an error. So here is my code…
SHADOW.NET
  • 555
  • 1
  • 5
  • 20
0
votes
1 answer

Novacode DocX - Inserting a Table in the right place

I have a document with a number of paragraphs, a table and then a few more paragraphs. Lets say the table has three columns and two rows where the first row is a header and the second row needs to be repeated for each item in a collection of data. …
0
votes
1 answer

Modify text of Footer of a docx (MS Word 2013) file

I am using DocX library to modify a word file. I replaced a text in this document as follow: using (DocX document = DocX.Load(@"E:\Test.docx")) { document.ReplaceText("text", "replaced"); document.Save(); } But, texts in Footer of the file…
OmG
  • 18,337
  • 10
  • 57
  • 90
0
votes
1 answer

Replace text with table

I am using C# Novacode Docx library to replace string with table in a section of word file but the table is inserting below paragraph. I want to replace text(#table1#) with table in word file. I have used this code but it doesn't replace on same…