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

Replacing a text tag in a word document with an image using Novacode

I have several dozen different types of documents that require a signature. Where the signature should go, there is a [[Signature]] tag. I'd like to find that tag and replace it with an image of the signature. What I currently have takes a…
1
vote
1 answer

NovaCode DocX document page count

Is there any way to get number of pages from Novacode Docx document? So far I found a lot of properties none of which is page count.
meta4
  • 788
  • 1
  • 10
  • 24
1
vote
0 answers

Converting docx document from a MemoryStream to a PDF using ABCpdf.Net in C#

I'm using Novacode DocX to take some data and convert this to a docx document. This is then put into a memory stream. Now, I want to take this memorystream, using ABCpdf.NET, and convert it to a PDF document. Is this possible? I can't figure out…
Mikkel Larsen
  • 876
  • 2
  • 14
  • 26
1
vote
0 answers

Setting default language culture for proofing while creating a word document programmatically using Novacode.DocX

I have created a word document using Novacode.docX. I want to set its default language culture to English US so that whenever its gets downloaded from the application should be open in default language that has been setup programmatically using…
Rahul Tagore
  • 101
  • 9
1
vote
1 answer

Hyperlink to location within document DocX dll C#

I am currently generating Word documents with the Novacode DocX dll and C# from an asp.Net website, what I try to achieve is to create hyperlinks inside the document that point to elements within it (Click a paragraph and go to first page for…
JCO9
  • 960
  • 1
  • 15
  • 24
1
vote
1 answer

c# Novacode.Picture to System.Drawing.Image

I'm reading in a .docx file using the Novacode API, and am unable to create or display any images within the file to a WinForm app due to not being able to convert from a Novacode Picture (pic) or Image to a system image. I've noticed that there's…
DCOPTimDowd
  • 231
  • 1
  • 11
1
vote
0 answers

How to find the type of a list using Novacode DocX?

I'm parsing a .docx document using Novacode DocX, and so far I can detect if a paragraph is part of a list with Paragraph.IsListItem. However, I want to distinguish between lists numbered with Arabic numbers (1. 2. 3.), Roman numbers (I. II. III.)…
Arturo Torres Sánchez
  • 2,751
  • 4
  • 20
  • 33
1
vote
1 answer

Set docx properties using library .docx

How to set properties like title, author, subject for a file created with docx library for .net ? docx
POIR
  • 3,110
  • 9
  • 32
  • 48
1
vote
1 answer

Novacode Docx Equation

I use Novacode.Docx class for Word files generation. I want insert equation but default method made equation with string. How i can write sqrt block, for example? Thanks. using System; using Novacode; namespace Program1 { class MyClass { …
Serogriff
  • 11
  • 2
1
vote
1 answer

Image lost from header when converting docX to PDF using Spire.doc library

I have created a docX using the docX library and have added an image in the header. However when I convert the docX to PDF using the Spire.doc library, the image is lost. Any idea why? Below is my code: var doc = DocX.Create(fileName); string url…
refresh
  • 1,319
  • 2
  • 20
  • 71
1
vote
0 answers

Optimize Novacode? - Progressive slowdown on large text files creating DOCX

NOTE: From 2000 lines every 1 second to 2000 lines every 15 minutes on large txt file processing. When using novacode docx on large files I notice building a docx using paragraph adding gets progressively slower as time goes on. Opening file a 2.2MB…
1
vote
1 answer

Page Layout of Sections with Novacode DocX

I am creating a document using Novacode DocX. I would like the entire document to be in landscape orienation, however I would also like to have several section breaks in the document. My code is laid out like this: DocX doc =…
yammerade
  • 629
  • 8
  • 20
1
vote
2 answers

More than 15 columns in Novacode DocX Table

Is there a way to create a word table with more than 15 columns using Novacode DocX? If I create a new table with greater than 14 columns, the table doesn't appear. I can get around this by doing something like this: int addCols =…
yammerade
  • 629
  • 8
  • 20
1
vote
1 answer

Does NovaCode.DocX contain any textbox controls?

I am trying to create a single page website using c# MVC 4 that has input fields and when the button is clicked it will create a word document. I am using DocX and can at least make a word document with some text right now. I wanted to know if there…
user1314413
  • 103
  • 2
  • 14
1
vote
1 answer

How to assign all table properties of table1 to table2 using Novacode DocX?

After creating table2 and inserting it after table1, how would u give table2 properties of another table that exists in the document? Properties I am speaking of include Keep with next, Keep lines together, Allow rows to break across pages,…
Phillip
  • 255
  • 1
  • 12