Question
“How can I deploy the WebTier to ASP.NET?”
Solution
This solution has two parts.
- Use Delphi to build the RB WebTier into a COM object.
- Use ASP.NET to build a report.aspx page that calls the RB WebTier COM object.
Any version of ASP.NET can be used.
Download: AspDotNetWebTier.zip
WebTier COM Server
- Use Delphi to open the WebTierCOMServer project.
- Configure the WebTier as desired. (or configur the WebTier.IniSettings to load a configuration at run-time).
- Build the project. This will generate WebtierCOMServer.ocx
- Select the Run | Register ActiveX Server to register the COM library with your machine.
ASP .NET
The included zip file contains a simple ASP.NET project that we created.
To use the WebtierCOMServer.ocx in your custom ASP.NET project
- Use any version of ASP.NET.
- Add a project reference to WebtierCOMServer.ocx. (Use the Visual Studio or RAD Stdio add References dialog to browse to the WebtierCOMServer.ocx file.)
- Add the report.aspx web page included in the zip file to your ASP.NET project. (or build a similar custom page that calls the WebtierCOMServer.ocx.)