Run ActiveX methods on server side in ASP.NET
Run ActiveX methods on server side in ASP.NET
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
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
Re: Run ActiveX methods on server side in ASP.NET
I would very appreciate a response, because I am in a big rush!
Thank you in advance!
Thank you in advance!
Re: Run ActiveX methods on server side in ASP.NET
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
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
Re: Run ActiveX methods on server side in ASP.NET
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'".
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'".
Re: Run ActiveX methods on server side in ASP.NET
Hello,
You have to use the cImaging class:
Dim gdpImage As GdPicturePro5.cImaging = New GdPicturePro5.cImaging()
Kind regards,
Loïc
You have to use the cImaging class:
Dim gdpImage As GdPicturePro5.cImaging = New GdPicturePro5.cImaging()
Kind regards,
Loïc
Who is online
Users browsing this forum: Bing [Bot] and 1 guest