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
0 answers

Export to word document Nested tables using DocX library in c#, can't open document

I have created word document (.doc and .docx) using DocX library in .net c#. I have used nested tables in this word document. Now the problem is that, whenever I try to open this generated document, it gives warning message like this : "We are…
Herin
  • 704
  • 3
  • 18
  • 34
1
vote
1 answer

C# Programming an ENTER into a document

I'm using NovaCode and trying to fill a list in a document at a specific paragraph. I am able to build the list but the numbering doesn't go further than 1. example: 1. Number one Number two Number three Number four I have tried \r, \n…
Carlove
  • 429
  • 1
  • 4
  • 15
1
vote
1 answer

Xceed Docx ReplaceText always throwing newValue cannot be null.

I've tried a number of different options, but no matter what I do it either won't do anything or always return newValue error. newValue cannot be null. It seems I'm not the only one but it's had updates since the link below. docX ReplaceText works…
Myzifer
  • 1,116
  • 1
  • 20
  • 56
1
vote
1 answer

novacode docx , create word table from datatable

I'm trying to loop over the datatable and create word table. So far if I have 3 rows in the datatable they are being inserted into the first row of my Microsoft Word table, instead I want every row from the datatable into a new row in Microsoft Word…
1
vote
1 answer

OpenXML SDK does not support Edit Data in Excel functionality in Chart in a fresh document

I am using OpenXML SDK to generate Word Documents in C#. When it comes to chart, it does not support Edit Data in Excel functionality. I found some sample code here to generate a chart. Please right-click the chart area and then choose Edit Data,…
1
vote
2 answers

C# DocX : add internal link

In the DocX library available at : https://github.com/WordDocX/DocX It is possible to add some hyperlink but i haven't found a way to add internal link. Does anyone know how to add a link to specific paragraph or to a bookmark ?
G.Dealmeida
  • 325
  • 3
  • 14
1
vote
2 answers

.Net C# DocX librairy : how to serialize a DocX document?

When using the DocX librairy, i am generating the docx document on server then download it. For that, i need to convert my document in an array of bytes. To do that, i was previousloy saving the document as a physical file like this : // Save all…
G.Dealmeida
  • 325
  • 3
  • 14
1
vote
1 answer

Novacode Docx Merge multiple word Documents

i'm using Novacode Docx for creating word document with c# but I have a problem with Merging two documents into one.As per my requirement i need to download two word documents without zipping them at once,However i didn't find a solution for that…
1
vote
1 answer

How can I insert a cross-reference page number in Novacode DocX

I am creating a Word document using Novacode DocX in which I want to insert a piece of text, and then later on in the document insert a reference to it in the form of '(see page X)' where X is dynamically generated by Word. In Word itself, I can…
ChrisFox
  • 346
  • 4
  • 11
1
vote
1 answer

create table of content docx library

I am using novacode docx library from c# for generating document, I want to know how to add headings in document and link them in Table of content.
SameerK
  • 21
  • 3
1
vote
1 answer

Custom Headers and footers for novacode DocX

I'm trying to create a docx document that has header and footer for all pages. For the header i want the image to ocuppy all of the header. Like the image below: For the footer i want it to be on the left and at the right i want to have the number…
Nmaster88
  • 1,405
  • 2
  • 23
  • 65
1
vote
2 answers

'DocX' does not contain a constructor that takes 0 arguments

I want to inherit from DocX, to integrate InterOp printing of Word documents: public class WordDoc : DocX { static private Microsoft.Office.Interop.Word.Application wordApp; static WordDoc() { } } but when I try that, I get this…
Bart Friederichs
  • 33,050
  • 15
  • 95
  • 195
1
vote
0 answers

Novacode DocX How to add elements to numbered list which is in the middle of text?

I would like to ask, how to programaticaly add items to list, which is in the middle of text.
1
vote
2 answers

Novacode DocX with SaveFileDialogue C#

Good Day! I want to know if it's possible to show SaveFileDialogue when saving .docx file using Novacode DocX? Sample: string fileName = @"D:\Users\John\Documents\DocXExample.docx"; var doc = DocX.Create(fileName); doc.InsertParagraph("This is my…
1
vote
1 answer

Novacode LineChart type

I have a code that implements a Novacode.LineChart. And the LineChart type which is shown by default is this one: But I dont want this type of chart, I want it without points, like this: This is the code where I create the chart: LineChart c…
dbz
  • 411
  • 7
  • 22