Independent .NET class library which allows user to directly operate Word document, format and style and insert content to Word document without Microsoft Office.
Questions tagged [spire.doc]
55 questions
10
votes
1 answer
Value of a string for file's location is nil but a stored value says it isn't
I'm trying to convert secured PDFs to XPS and back to PDF using FreeSpire and then combine them using iTextSharp. Below is my code snippet for converting various files.
char[] delimiter = { '\\' };
string WorkDir =…

LampPost
- 856
- 11
- 30
4
votes
1 answer
Changing font style and size of entire word document using spire.doc
Can anyone tell how can change font size of entire word application using spire.doc?
How to select the entire text range and change the font size and style?
Can anyone please help me??

pavan betageri
- 123
- 1
- 1
- 9
3
votes
4 answers
A generic error occurred in GDI+. on Azure Webapp
I am using spire lib to create pdf files for the user.
string userId = User.Identity.GetUserId();
User trainee = _userDAL.GetUserByIdentityId(userId);
// Get the Employee scores
string fileNameTemplate =…

wandos
- 1,581
- 2
- 20
- 39
3
votes
1 answer
Reference multiple versions of the same DLL
I have a project which needs to indirectly use three different versions of a third-party library. These versions are incompatible with each other, so I can't use a binding redirect - it has to be the exact .dll file. (The libraries are Spire.Doc,…

Alex
- 7,639
- 3
- 45
- 58
3
votes
2 answers
how to change font size of word document using .net
I am working on a application using C# and Spire.Doc which saves the word document to specified format which includes logo at the header and specified font size and style.
Now I can paste logo at the header using spire.doc but I'm not able to change…

pavan betageri
- 123
- 1
- 1
- 9
2
votes
0 answers
how to convert a docx into html
So I have a program that can create a docx file and now I want to implement a code that takes the docx file and converts it into html.
I have somewhat made it functional but the problem I'm having is that the converter does not detect the…

apo
- 43
- 4
2
votes
1 answer
Close Browser tab if PDF has expired
It works fine when document is opened in Acrobat, but does not work properly when the same PDF document is opened in web browser such as Google Chrome. this.closeDoc() is not getting executed in the Browser.
string path2 = @"D:\test\input.pdf";
…

DevChamps
- 33
- 1
- 11
2
votes
2 answers
Downloading Spire.doc document from controller to view
I am using Spire.doc for creating a Word file, and I followed their example like this
public class WordController : Controller
{
public void Download()
{
Document doc = new Document();
Paragraph test =…

Christian Caspovich
- 169
- 3
- 9
2
votes
2 answers
How can I insert image and text into a Microsoft Word template?
Below code with spire.doc
var doc = new Document();
doc.LoadFromFile(@"E:\test.docx", FileFormat.Doc);
var image = Image.FromFile(@"E:\nice.jpg");
var picture1 = doc.Sections[0].Paragraphs[0].AppendPicture(image);
picture1.VerticalAlignment =…

Hossein Hagh
- 127
- 2
- 3
- 15
1
vote
1 answer
Unresolved dependency when using iceblue spire appi
I want to compare two docx files and for this reason I am using Ice blue spire api which compare two documents, and checks whether the two documents are identical or not. I am using the following gradle dependency to my gradle project.It is saying…

Furqan Ahmed
- 9
- 3
1
vote
1 answer
Spire Doc Free 3.9.0 not running in headless server
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.spire.doc.packages.sprDGC
at com.spire.doc.formatting.CharacterFormat.spr (Unknown Source)
at com.spire.doc.formatting.CharacterFormat.spr (Unknown Source)
…

deon lobo
- 23
- 2
1
vote
1 answer
Gujarati language While Generating PDF Not support on hosted AWS Server ASP.NET
In My Code, I am doing Find and Replacing some specific Words in Word File Using Spire.Doc and Exporting in PDF File using Microsoft.Office.Interop.Word Packages its Working fine for me on local Server but not working on AWS hosted Server in…
user11469175
1
vote
0 answers
How to download an edited word document using .NET web API and Angular
What I'm Trying To Do
I inherited an angular project and am new to the framework. I am trying to open a macro enabled word document using Spire.Doc (free version) and edit the file, then send the edited file to the client. I am calling a. Net Core…

Thomas G
- 63
- 5
1
vote
1 answer
Getting XPS FixedDocumentSequence from a MemoryStream
I'm using the Spire library to convert a DocX file to an XPS file so that I can display a preview of the document in my Windows Desktop (WPF, C#) application.
The conversion is fine - and I can save the resulting XPS file to a temporary file…

AJ.
- 1,621
- 1
- 10
- 23
1
vote
2 answers
spire.doc can not convert data from doc/rtf file to pdf
I am using spire.office. It is converting data from excel to pdf successfully but not from the document or RTF file. It is showing the following error
Could not load type 'spr' from assembly 'Spire.Doc, Version=7.1.13.41046, Culture=neutral,…

Sudip Bhattacharya
- 73
- 7