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

Regarding Novacode Docx: How do I add soft returns within paragraphs

I am using the Novacode DocX c# library to create word documents and have run into a problem. I want my paragraphs to 'keep together' at page breaks. But, I also want to use soft returns to force my pictures to display vertically between lines of…
5
votes
1 answer

Vertical table in novacode docx without border

Heyy i am new to novacode docx webapi i want to print a vertical type table without borders, i am have these line of codes through which i be able to print a vertical table i have screen shots also which maybe helpful to u to save my…
Ali Raza
  • 981
  • 1
  • 8
  • 17
5
votes
1 answer

How to go to the next page in Novacode Docx

I am using Novacode DocX in C#. Using method InsertSectionPageBreak(). But it does not save the parameters of the default page. For example page should be in landscape format. When using InsertSectionPageBreak() the format changes to the book. I…
Магжан Куан
  • 964
  • 2
  • 11
  • 20
5
votes
1 answer

Novacode DocX Different page orientations within the same document

Using the following code, I'm trying to create a document in which pages 2 and 3 are landscape while the others are portrait. All should be 8.5" x 11". using (System.IO.MemoryStream ms = new System.IO.MemoryStream()) { using (DocX document =…
Delford Chaffin
  • 623
  • 7
  • 23
5
votes
1 answer

DocX clone table and insert at index

I am using C# to make a simple Windows app using Novacode to manipulate a Word document. I have a source table in my Word document that I want to clone. I am able to find the source table okay using this code: Table sourceTable =…
Brian Stanley
  • 123
  • 2
  • 8
4
votes
0 answers

English words get reverted when inserted into RTL language

I am creating a program in c# which automatically writes and formats paragraphs in a certain way to form a document for medical use in Office Word. For that, I am using "Novacode". The problem is, the document is written in RTL which sometimes…
Niv.R.
  • 63
  • 1
  • 4
4
votes
0 answers

Novacode DocX - How to insert a separator line after the title?

How can a separator line be inserted following the title, as shown below?
4
votes
1 answer

C# DocX: Inserting new numbered list continues numbering

I am trying to insert several numbered lists into a Word document using Novacode DocX. Something like this: var doc = DocX.Create("somedoc.docx"); var list = doc.AddList(listType: ListItemType.Numbered, startNumber: 1); doc.AddListItem(list,…
4
votes
1 answer

How can I replace line breaks with nothing/an empty string using the DocX Library?

I need to retain paragraph breaks in a .docx file, but get rid of linebreaks which are often in the wrong place when copying from one file to another (due to different page sizes, and when the font is changed). Using the DocX Library, I'm trying…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
3
votes
0 answers

Changing bullet styles using DocX

Does anybody know how to change bullet style using DocX ? I can add bullet lists, but can't figure out how to change the style to square bullets. I searched both the documentation and the source code on Github, to no avails. Thanks in advance
3
votes
1 answer

How to change line spacing in DocX (docx.codeplex.com)

I have a Paragraph object from the C# library DocX and am trying in vain to set the LineSpacing property but it has no effect? internal static Paragraph StandardFormat(this Paragraph p) { p = p.FontSize(12); p.LineSpacing = 1.5f; …
fiat
  • 15,501
  • 9
  • 81
  • 103
3
votes
0 answers

DocX.dll - Break page if there is not enough space on page

Im using docX.dll from: https://docx.codeplex.com/ I have template docx with tokens, and im replacing it with text, tables, images. Is it possible to get paragraph position on page ? I have tokens to breakpage before every title token. Now i want to…
Dawid PR
  • 117
  • 9
3
votes
4 answers

How can I control table column width in Word documents using DocX?

I am trying to recreate a table like this: I am using the DocX library to manipulate Word files, but I'm having trouble getting the widths right. Trying to set the widths of cells only seems to work when it's not set to the window autofit mode, and…
ssb
  • 1,352
  • 3
  • 18
  • 40
2
votes
0 answers

Nova Code is not converting data to numeric order instead converting to alphabetical order in word document in c#

if (item.Name == "ol") { int bulletposition = 1; List UDFList1 = doc.AddList("", 0, NV.ListItemType.Numbered , 1); foreach (var innerItem in item.ChildNodes) { string bal =…
2
votes
3 answers

MIssing Novacode namespace

I just started in my position (3 weeks), and this is my first developer job. I had 8 days with the previous developer before he left, I am now the only developer here (yay me, talk about sink or swim). I have a program that is getting a missing…
Andy Reagan
  • 35
  • 1
  • 9
1
2 3 4 5 6 7 8