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
0
votes
1 answer

C# .NET DocX Librairy : resize an image

I havent found anything in this librairy to resize an image. In the object Novacode.Image there is very few methods / properties and none of them seem to be usefull to resize an image. If anyone has a clue on how to do it, it will be very…
G.Dealmeida
  • 325
  • 3
  • 14
0
votes
1 answer

Unable to load file from URL using DocX.Load

This code is working nicely with local files, but getting error when i refer fileName from URL using DocX library of Novacode. Kindly provide some way to resolve this. Thank you. try { string fileName =…
Qaiser Mehmood
  • 202
  • 2
  • 10
0
votes
1 answer

DocX [Novacode] :: read paragraph magic text, identify font styles correctly

Locals window shows no font styles for grouped magic texts although magic texts are grouped correctly. The word document contains strike-though font styling that I can not identify with Novacode DocX.. Any Ideas?
0
votes
1 answer

How to make Some text bold in a paragraph while generating from novacode docx library in c#

I want to make some text bold like that.. • Basic – There are no Cybersecurity
user3424829
  • 121
  • 1
  • 3
  • 10
0
votes
1 answer

Novacode docx bookmarks does not render

I am using Novacode docx to read bookmarks and replace them with my data. Looking at my docx file, I have a bookmark called 'UserID' and I try and replace it in my c# code as below using (DocX doc = DocX.Load(oTemplate)) { …
user2837961
  • 1,505
  • 3
  • 27
  • 67
0
votes
1 answer

how to get Styles from existing word document by using Novacode.Docx?

This is the Example code using OpenXML SDK 2.5 void AddStylesPart() { StyleDefinitionsPart styleDefinitionsPart = mainPart.StyleDefinitionsPart; styleDefinitionsPart = mainPart.AddNewPart(); …
Pavithran R
  • 56
  • 2
  • 11
0
votes
2 answers

Nested Bulleted lists in Novacode docx

How can i create nested bulleted/Ordered lists with Novacode for docx? I've done some research but couldn't find anything, any help is appreciated.
KARIMA
  • 69
  • 1
  • 9
0
votes
1 answer

novacode docx find page number

I'm using Novacode DocX to generate a Word (DocX) document in C#. At some point in the code, I have a reference to a paragraph object, and I'd like to know what page that paragraph is on. Unfortunately, there is no Pargraph.PageNumber option, or…
Wouter
  • 100
  • 1
  • 7
0
votes
0 answers

Print a word document using a template in C#

I am trying print a scorecard for a game in a c# application. The approach that I am trying to follow is - Use a template word file and perform string replacements and additions where needed to add team names, player info and scores. Here is the…
yashdosi
  • 1,186
  • 1
  • 18
  • 40
0
votes
1 answer

How to create tab stops using Novacode-Docx library?

I am trying to achieve something like this: Using String.Format("{0, -80}", "User Representative" + "Date")doesn't work because symbols of word document have different sizes. Best way to implement this would be using tab stops. My question is is it…
Evaldas B
  • 2,464
  • 3
  • 17
  • 25
0
votes
2 answers

NovaCode DocX - Line Spacing

I am working with Novacode DocX and using this same code over 2 different projects products 2 different results. Dim customerAddress = doc.InsertParagraph(SetCustomerAddress(recipient)) customerAddress.Alignment =…
Simon Price
  • 3,011
  • 3
  • 34
  • 98
0
votes
0 answers

Removing repeated tables

I have developed a WinForms application which utilises the DocX Library for editing .docx files in memory I have several samples with data. I would like to print each sample in separate page. I am inserting three tables in one table using the code…
verendra
  • 223
  • 3
  • 18
0
votes
1 answer

Novacode DocX Library, Argument Exception when saving a document

What my program does is it takes some text from one document and replaces a tag in another document (.docx). With most documents this works absolutely flawlessly, but sometimes I run into an Argument Exception: '♂' hexadecimal value 0x0b is not a…
gerildIr
  • 1
  • 2
0
votes
4 answers

How to use external library in c# script having different namespace and dll

I want to use novacode-docx in cs-script. how can I give correct reference to the assembly. I tried following but didn't work around the assembly reference missing. //css_reference D:\lib\DocX.dll; using System; using System.Diagnostics; using…
Rahul
  • 10,830
  • 4
  • 53
  • 88
0
votes
1 answer

How to align 2 paragraphs side by side using Novacode DocX?

Using DocX I need to do something like this: A long text description. Except I need the "1." to be a paragraph and the "A long text description" to be a paragraph. I cannot use a list for this.
JRene
  • 27
  • 5