I wrote a small function in C# that manipulates pdf files using itextsharp. Is it possible to call this function from a classic asp page?
-Vivek
I wrote a small function in C# that manipulates pdf files using itextsharp. Is it possible to call this function from a classic asp page?
-Vivek
Yes.
You can either expose your C# class via COM to the Classic ASP page or create a .NET Web Service that you can call from the Classic ASP page.
Personally, I would suggest exposing your C# class via COM (follow the "Exposing C# to COM" section).
Yes, if you register the C# assembly as a COM+ component (using regsvcs.exe
). You can then do this:
Set myObject = Server.CreateObject("mynamespace.myobject.myclass")
myObject.MyMethod()
One option is to use the .NET utility TlbExp.exe to create the CCW for the .NET library. This CCW can definitely be called from classic ASP. You can instantiate it using Server.CreateObject ("...") http://msdn.microsoft.com/en-us/library/hfzzah2c(VS.80).aspx