Delphi 2007 for Win32 Professional - ActiveX forms in web page

Posted on 2007-08-06
Last Modified: 2013-11-18
A few years/version ago Delphi had an option that allowed creating "Active Forms"; basically an ActiveX object that could be embedded in a web page. Can somebody provide a simple "Hello World" example for Delphi 2007 for Win32 Pro?

Question by:mtasking
    1 Comment
    LVL 21

    Accepted Solution

    File | New | Other - Delphi Projects | ActiveX - ActiveX Library
    File | New | Other - Delphi Projects | ActiveX - ActiveForm

    Then just place a label on the form with the text "HELLO WORLD!" on your active form.

    Displaying it on a web page
    use the following HTML (replacing the GUID with the one Delphi generates for you as CLASS_XXX in your type library file)

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

          <title> Delphi ActiveX Test Page </title>


          You should see your Delphi forms or controls embedded in the form





    You must register your active form (Run | Register ActiveX Server).

    In order to hit F9 to test you need to set internet explorer as the application and set the parameter to your HTML page.  You will also need to have popups allowed (my browser tried to block it.  I hit "Allow blocked content" and it worked fine).

    Let me know if you need more.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
    I made this because I wanted to get e-mail with a attached csv file so I'd would be able to import user input into a MS Excel template, but I also wanted to register/save all inputs from each day in a file on the server. 1st - It creates a temp C…
    The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now