Run ActiveX methods on server side in ASP.NET

Discussions about image processing and document imaging.
Post Reply
blagoye
Posts: 14
Joined: Sat Oct 31, 2009 11:24 pm

Run ActiveX methods on server side in ASP.NET

Post by blagoye » Tue Jan 22, 2013 8:30 pm

Hello,

We have purchased GdPicturePro5 a while ago. I was wondering if it is possible to load gdPicturePro5.ocx file as a library on the server side, and use its functions without embedding it into the web page? I added a reference to gdPicturePro5.ocx to my ASP.NET project and it was imported as Interop.GdPicturePro5, but I cannot generate a new instance of a class GdPicturePro5.Imaging() since it has a private constructor. What are my options?

Thank you for your response

blagoye
Posts: 14
Joined: Sat Oct 31, 2009 11:24 pm

Re: Run ActiveX methods on server side in ASP.NET

Post by blagoye » Thu Jan 24, 2013 10:17 am

I would very appreciate a response, because I am in a big rush!

Thank you in advance!

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Run ActiveX methods on server side in ASP.NET

Post by Loïc » Thu Jan 24, 2013 11:31 pm

Hello,

Could you clarify what you meant by "since it has a private constructor" ?

Using GdPicture Pro in server side is like using it in any environment that support COM/ActiveX controls. There is no particularity.

Kind regards,

Loic

blagoye
Posts: 14
Joined: Sat Oct 31, 2009 11:24 pm

Re: Run ActiveX methods on server side in ASP.NET

Post by blagoye » Fri Jan 25, 2013 1:48 pm

Hello,

Thanks for your reply.
GdPicturePro5.Imaging is an interface not a class, and I don't know how to instantiate a new Imaging class in ASP.NET on the server side i.e. without using web-page ActiveX embedding. Anyway this is my code:

Dim gdpImage As GdPicturePro5.Imaging = New GdPicturePro5.Imaging()

after that line VS reports compiler error: "GdPicturePro5.ImagingClass.Private Sub New()' is not accessible in this context because it is 'Private'".

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Run ActiveX methods on server side in ASP.NET

Post by Loïc » Wed Jan 30, 2013 7:33 pm

Hello,

You have to use the cImaging class:

Dim gdpImage As GdPicturePro5.cImaging = New GdPicturePro5.cImaging()

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest