Hello colleagues!
I have a task to show the System Manual (PDF document) in graphic form.
I first tried using AcroPDF.dll because there are many examples on the internet and it has good reviews as well, but when I tried to add this dll to the toolBox in MapsDesigner nothing happened.
After that I thought it would be nice to create my own control in VisualStudio with this AcroPDF.dll.
It works fine in VisualStudio WinForms, but when I tried to add this custom control to a graphical form in MapsDesigner, I got the error
" System.IO.FileNotFoundException: Could not load file or assembly “AxInerop.AcroPDFLib, Version=1.0.0.0, Culture = neutral, PublicKeyToken = null”"
After 20 minutes, I discovered that AcroPDF.dll is an interop assembly and when you add it to a form in VisualStudio, it automatically adds references to Interop.AcroPDFLib and AxInterop.AcroPDFLib.
Knowing this fact, I added links to these dlls on GraphicFrom in MapsDesigner and managed to add my own control, but after a few seconds later MapsDesigner just shut down itself. And it happened again when I opened this GraphicForm.
Can some one explaine why does this happen ?
p.s. Excuse me please for my English. I’m not good at it