I am testing FreeSpire.DOC with example code from this site:
- Code: Select all
using Spire.Doc;
using Spire.Doc.Documents;
//Create word document
Document document = new Document();
//Create a new paragraph
Paragraph paragraph = document.AddSection().AddParagraph();
//Append Text
paragraph.AppendText("Hello World!");
//Save doc file
document.SaveToFile("Sample.doc", FileFormat.Doc);
When I run this code, I get an exception:
Cannot find any fonts in specified font sources.
Please let me know what I did wrong.
Some additional info:
- Version of product: Free for .NET Core 7.0.4;
- Environment: OS;
- Application type: Web API
Kind regards,
Sonia