- Code: Select all
Document doc = new Document(filepath + ".docx", Spire.Doc.FileFormat.Docx);
Could not load type 'spr' from assembly 'Spire.Doc, Version=7.1.13.41046, Culture=neutral, PublicKeyToken=663f351905198cb3' because it attempts to implement a class as an interface.
Please check it and gives some advice. Thanks in advance
- Code: Select all
File.WriteAllText(filepath + ".rtf", fileText);
Document doc = new Document(filepath + ".docx", Spire.Doc.FileFormat.Docx);
//doc.LoadFromFile(filepath + ".docx",Spire.Doc.FileFormat.Docx);
doc.SaveToFile(filepath + ".pdf");