Results 1 to 3 of 3

Thread: OCX Problem[RESOLVED]

  1. #1

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    OCX Problem[RESOLVED]

    Hi,

    I have made a simple ActiveX Control (.ocx) and now I want to put it on my web page, but I don't know how to put it on the web page.

    Can anyone tell me ??

    Thankx
    Last edited by usamaalam; Feb 15th, 2003 at 04:24 PM.

  2. #2
    Fanatic Member
    Join Date
    Feb 2003
    Location
    Los Angeles, CA
    Posts
    681
    in interdev, right click on your project and choose 'add > item', then select your ocx. on an asp page you can either create an instance of your control by using
    set myObject = Server.CreateObject("MyProject.ObjectName")
    or using soemthing like
    <OBJECT runat="server" ...>
    (please check for the complete <OBJECT> tag syntax on msdn, i dont know it from the top of my head).

  3. #3
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803
    Easyest way is to use the Package and Deployment Wizard on the ActiveX project. It will make you a cab file that can be opened by the user's browser and it will also make you a default html file.

    So, just open that html file, and copy and paste the contents of the body into your own html file, don't forget to have a propper reference to the cab file...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width