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, PublicKeyToken=663f351905198cb3' because it attempts to implement a class as an interface.
Please check it and gives some advice. Thanks in advance
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");