Questions tagged [spire.doc]

Independent .NET class library which allows user to directly operate Word document, format and style and insert content to Word document without Microsoft Office.

55 questions
1
vote
1 answer

Insert HTML instead of key from Template.docx in the Spire.Doc

I want to create a Word document from Template.docx with Spire.Doc. For this, I coded like this: //sample file path string samplePath = Application.StartupPath + Path.DirectorySeparatorChar + "Template.docx"; //result docs paths string docxPath =…
user1372430
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
1 answer

Copy Content from one Word Document to another in C# (MVC)

I am new here in the forum and I just start to work in a new web application on Visual studio 2013. I need to create an application that copy all the content from one Word Document to another. I had found this plugin that should make the job but I…
Daniel
  • 15
  • 1
  • 5
1
vote
2 answers

Could not load file or assembly 'Spire.License, Version=1.3.2.40, Culture=neutral, PublicKeyToken=b1144360237c8b3f' or one of its dependencies

I am using Spire.Xls in my web project to create an excel sheet on the fly.In local every thing is working fine but once i deployed it on the Server , it is throwing exception as System.IO.FileNotFoundException: Could not load file or assembly…
Dharmendra Kumar Singh
  • 2,979
  • 10
  • 46
  • 63
0
votes
1 answer

How to convert a Docx file (held in a Stream) to a PDF file (as a Stream) using Spire.Doc

I need a NuGet which is able to convert .docx files to .pdfs, for free. I stumbled accross FreeSpire.Doc but I am having trouble using it. Here's my code: using mediere_API.Processors.Interfaces; using Spire.Doc; namespace…
Octavian Niculescu
  • 1,177
  • 1
  • 3
  • 24
0
votes
1 answer

I am trying to change font style of a specific word from word document using Spire.Doc. But code is not giving me the expected result

I am trying to change font of a specific word to Italic from word document using Spire.Doc. But code is not giving me the expected result. Exaample - Albia A et al [l0] and Jain M et al [3] also observed predominance of non-neoplastic lesions with…
0
votes
0 answers

SpirePDF: I can't new PdfCertificate() because I don't know how to generate .pfx file correctly

I want to use SpirePDF to help me make a digital signature for PDF file. However, when I use OpenSSL generate a pfx file and try in a demo, I got an error like java.lang.NullPointerException: Cannot invoke "com.spire.pdf.packages.spreyb.spr (int)"…
1PPi
  • 1
0
votes
1 answer

How to choose specific table with specific page in Spire documents?

iam useing Spire Doc library to create word templete SO, in the below example , 1st table in page-1 has been chosen to make find and replace operation ,,, i created word documents like these but i need to choose 1st table in Page-2 ,,, Thanks in…
shady
  • 9
  • 1
  • 4
0
votes
1 answer

Merge document word in order that i want with spire.doc

i'm trying to merge multiple word document into one document using spire.doc, but I would like the order to be my choice. Document doc = new Document(); //document1 doc.LoadFromFile(sourcefile1,…
0
votes
1 answer

Jpackage command not adding libraries in exe installer

I'm trying to use Spire.Doc / Aspose.word to manipulate word files in a JavaFx application. When executed in eclipse or using a jar , it works very well but when I make an exe using jpackage command, the app throws java.lang.NoClassDefFoundError:…
Atomos
  • 1
  • 1
0
votes
1 answer

Include doc (word) file that my program uses

I wrote a program with Java and doc.spire.jar that uses a doc file and then generate a new one, after compiling it into the jar file my program needs that doc file in the same directory where the jar file is located. How do I insert that doc file so…
0
votes
1 answer

Issue in opening a word document(.doc- Microsoft word 97- 2003 document) which is trying to connect with some network drive while opening

We are trying to convert a .doc file to .docx using c# code. Now, while opening the MS word application, the .doc file is taking more than 20 mins to open as it trying to connect to some network path to find some template. Is there any way we can…
0
votes
1 answer

hebrew characters from txt file does not display on word after compile to JAR file using spire.doc.jar

I write in java code with spire.doc.jar that use BufferedReader to take some words from txt file and display it on word document at the end, this is how it read the txt file: BufferedReader abc = new BufferedReader(new…
michaelwed
  • 33
  • 3
0
votes
1 answer

Empty Word Document ASP.Net MVC Spire.Doc

I'm trying to generate a Word document using Spire.Doc and download it. I can download the document, but it is empty. Does anyone have any idea why that is and can help me? This is my code: Document doc = new Document(); Paragraph paragraph…
0
votes
1 answer

I was trying to convert my word document to PDF using Spire.Doc and always running into an exception "A generic error occurred in GDI+"

I was trying to fetch a word from different sources via url/shared link/shared drives and save it to memory stream. My memory stream gets the data everytime but while converting it to PDF via Spire.Doc it gives an error saying "A generic error…
Aryan
  • 15
  • 3