I use next code for insert image in my document (.docx)
- Code: Select all
Pic = document.Sections[0].Paragraphs[0].AppendPicture(Image.FromFile(@"QR\Essay.jpg"));
It works great, and after i need the generate report in .xls.
For this, I connected the Spire.Xls library (Just connected, no code has not yet written), and this code started to give me the next exceptions:
TypeInitializationException in Spire.Doc.dll
Inner exception:
Could not load type "sprỽ" from "Spire.Pdf, Version=5.2.8.19041, Culture=neutral, PublicKeyToken=663f351905198cb3".
If I rebuild a project several times and start it again, then the exact same exception is already issued in another code:
- Code: Select all
document.LoadFromFile(tempPath);
All file paths are correct, all files open. If I work exclusively with one library (any of them), everything works fine, but as soon as I connect the second to the project, nothing works.
In exception written about "Spire.Pdf", but I do not use Spire.pdf and did not even connect it. What could be the problem? How do I use both libraries (Spire.Doc and Spire.Xls) in the same project?
Thank you in advance