Hello,
I’m trying to use Aspose.Email.dll for .NET into my Delphi Tokyo IDE (version 10.2 update 1):
- I have installed the last version of Aspose using the MSI
- As it is written in the
[online help here ](https://docs.aspose.com/display/emailnet/Using+Aspose.Email+for+.NET+via+COM+Interop)
, I have used the regasm tool (I’ve found it in the following folderC:\Windows\Microsoft.NET\Framework\v4.0.30319
because Visual Studio is not installed on my computer) with the Aspose.Email.dll library and the /codebase parameter. As a result, I have a message telling that the library is well registered. - Then I have launched the Microsoft OleView.exe tool to have a look at the available classes and the problem is that only Exception classes are available. If I do the same thing with Aspose.Pdf.dll, Aspose.Words.dll or Aspose.Slides.dll, I can see all the classes from these libraries.
aspose_oleview.png (16.9 KB) - In my Delphi project, I have an error when I try to create an email license object like that
lic2 := CreateOleObject(‘Aspose.Email.License’); //where lic2 is an OleVariant type
The error message is: “Incorrect class, ProgID: Aspose.Email.License”
When I do the same thing with the Aspose.Words.License, I have no error.
Can you tell me if the Aspose.Email.dll library can still be used as COM with Delphi ? If it is still possible, can you help me using it ?
Thank you very much,
Andre