I was using the free version, but our docs were breaking to 100 para limit, so the company bought the Spire.Doc Standard Edition licence.
Since I was using the Spire.Doc Free (5.1) installed via nuget, I uninstalled this and installed Spire.Doc for .NET (5.4) from nuget. I copied the licence.elic.xml file to \bin folder and thought we were good to go.
I tested it be saving a doc that used more than 100 paragraphs and this seemed to work, but on opening the file I got the "Evaluation Warning..." text at the top of the document.
I've also tried explicitly loading the file but with the same outcome.
Project is a C# MVC web app.
Thanks
Dan
Code:
- Code: Select all
document.SaveToStream(aStream, FileFormat.Docx);
string filename = user.Fullname + " Profile " + DateTime.Now.ToString("dd-MMM-yyyy");
Response.Clear();
Response.ContentType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
Response.AddHeader("Content-Disposition",
"attachment; filename=" + filename + ".docx");
Response.AppendHeader("Content-Length", aStream.Length.ToString());
Response.BinaryWrite(aStream.ToArray());
Response.Flush();
Response.End();
return new FileStreamResult(Response.OutputStream, "application/vnd.openxmlformats-officedocument.wordprocessingml.document");
Spire.Doc runtime version: v4.0.30319, version: 5.4.0.3040