I have a console application that should load in a *.doc file but when i do it, i get a error that Spire.Pdf could not be loaded.
i am using free spire.doc for .net 6.3(from the website).
- Code: Select all
Document document = new Document();
string original = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Sjabloon.doc");
document.LoadFromFile(original , FileFormat.Doc);
The above code generates the error below:
- Code: Select all
System.IO.FileNotFoundException: 'Could not load file or assembly 'Spire.Pdf, Version=4.3.5.2040, Culture=neutral, PublicKeyToken=663f351905198cb3' or one of its dependencies. The system cannot find the file specified.'
Why does it need spire.pdf when i am working with a microsoft doc file?
The doc file is in the attachements(Sjabloon.rar) and made by Microsoft Word.