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

Missing class from package within Netbeans when using Spire.Doc.jar for docx files

I downloaded and installed the free Spire.Doc.jar file to work with .docx files. When I run it within Netbeans the functionality works fine however when I attempt to build the program I am getting the following error: warning: Supported source…
0
votes
0 answers

Snapshot testing PDFs

The Problem I'm trying to do some really quick snapshot testing of PDFs. Our system generates them using Spire.PDF and sends them to DocuSign encoded in base64. My snapshots take the generated base64 and compare it against "known good" to see if…
rythos42
  • 1,217
  • 2
  • 11
  • 27
0
votes
1 answer

I have added Spire.Doc from NuGet, but now getting run-time error?

i am try to implement Spire.Doc, but getting run-time error: Could not load file or assembly 'Spire.Doc' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT:…
Maksud
  • 305
  • 1
  • 13
0
votes
1 answer

Is there a better way to load a docx file from embedded resource?

I'm recreating an old abandoned program that i created when i was learning c# which outputs a word file with the information from a form. The program extract the embedded resource which is template.docx located in Res folder to…
J M R
  • 3
  • 2
0
votes
1 answer

Spire doc loses formatting when converting from docx to pdf

I'm writing a system that modifies a template letter (via OpenXml Wordprocessing) for different individuals and then converts them into pdfs for printing. However upon the conversion to pdf the address is losing it's spacing switching from a normal…
Bomie
  • 317
  • 3
  • 8
0
votes
1 answer

C# Spire Document.SaveToStream not working

I have the following code but it is just creating a 0kb empty file. using (var stream1 = new MemoryStream()) { MemoryStream txtStream = new MemoryStream(); Document document = new Document(); fileInformation.Stream.CopyTo(stream1); …
Justin Braham
  • 133
  • 4
  • 12
0
votes
1 answer

Converting doc to txt and also convert the entities using c#?

How do I convert a doc file with UTF-8 entity characters and automatically convert the the entities to its proper hexadecimal NCR sequence (e.x. ꯍ) Below is a sample text from a doc file: Isto é um teste. Eu não me importo com o que você…
Tamal Banerjee
  • 503
  • 3
  • 20
0
votes
2 answers

How to print a word document using spire.doc?

I'm creating a WPF application and I want print a word document using spire.doc. I read some tutorials and they say that I should use this code. //Create Word document. Document document = new…
omid naghipoor
  • 178
  • 1
  • 2
  • 12
0
votes
1 answer

How to convert Multiple HTML Pages to Single Doc in c#

I am converting a single HTML page to Doc using spire doc. I need to convert multiple html pages from single folder to single Doc. How this can be done. Can anyone give some idea or any library available to achieve this? Please find my code to…
Shubashree Ravi
  • 261
  • 1
  • 16
0
votes
1 answer

Upload a streamable in-memory document (.docx) to FTP with C#?

I am trying to upload a .docx file which is in MemoryStream to FTP But when upload is completed, the file is empty. MemoryStream mms = new MemoryStream(); document2.SaveToStream(mms, Spire.Doc.FileFormat.Docx); string ftpAddress = "example"; string…
Ediz Nezir
  • 71
  • 8
0
votes
1 answer

Spire.Doc, saving input overwrites previous input, windows forms

I have a form that asks questions and you write an answer in a text box. When you hit 'next' or 'add' it should save the input and cycle like this until you hit save. For whatever reason, it only saves the one line and not the subsequent lines.…
TomG103
  • 311
  • 2
  • 26
0
votes
1 answer

Mail merge html formatted text from database to word document

I am doing a mail merge using a dataset that is coming from a SQL database. The data that I am retrieving is stored in the database with some HTML markups in it, example: One of my merge fields contains this text:
  • Bullet Title…
0
votes
1 answer

Adding textBoxes (two or more) on same word page on specific location (x,y) using spire.doc

I am trying to create word document with few text boxes (more will be added later) on specific location (x and y) on same page using Spire.doc. But this code is generating two pages. Any help with this? If the a any other way it is not necessary to…
Peca
  • 1
  • 2
0
votes
1 answer

Set Title for Image in MS Word in order for Spire .NET to identify (locate) the image to replace it with a new one

I want to use Spire .NET to replace an image in a template and save as the output docx file. I use the code below to replace it. My problem is I don't know how to set the image title for the image in MS Word so that Spire knows where my image is to…
Quan
  • 473
  • 7
  • 16
0
votes
1 answer

How to save and load a PDF into memory stream using Spire PDF C#

public MemoryStream PdfGeneration(Model model) { string path = HttpContext.Current.Server.MapPath("test.pdf"); path = path.Replace("\\api", ""); FileStream fs = new FileStream(path, FileMode.Create); doc.SaveToStream(fs); …
surya
  • 1
  • 1
  • 1