Welcome Guest Search | Active Topics | Sign In | Register

Calling from Unmanaged Options
Janice
Posted: Friday, December 9, 2016 7:46:04 AM
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.
eo_support
Posted: Friday, December 9, 2016 8:13:59 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.