Rank: Member Groups: Member
Joined: 2/26/2009 Posts: 17
|
Hello, We've been using EO.Pdf for many years to successfully produce reports from .Net web applications/websites. We now have a request to produce PDFs from our 'unmanaged' C++ application (that has been around for >15 years), and would like to use EO.Pdf to produce similar reports.
I have questions: 1) Do you have knowledge of anyone successfully calling EO.Pdf's HtmlToPdf methods from an unmanaged C++ application (using appropriate marshaling)? 2) Do you have examples of C++ solution where this is done or do you know that there would be some fundamental issue that makes it impossible? 3) Would this usage comply with the license agreement?
I've been trying, but I'm getting vague exceptions.
Thanks.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
The typical way to do this is to create a separate .NET DLL project that wraps whatever functionality that you need (for example, you might just need a single CreateReport function) as a class in your DLL project, then expose that class as a COM object. Once it's a COM object, you can call it in your C++ code the same way as you call any other COM object. Exposing .NET class as COM object itself is a generic .NET interop topic, so we won't provide support on that. However you should be able to find plenty of information about this topic online since it's the most common way to call into .NET from C++.
This does not have any issue with license. So there is no problem there.
Thanks!
|