ActiveX Web Control <--> ASP.Net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Weston Fryatt

    ActiveX Web Control <--> ASP.Net

    Simple question I hope....


    How do I send data to and from an ASP.Net (server side) web page to a
    ActiveX Control (client side) embedded in a web browser???

    What I need to do, is I have image data (mostly TIFF format) that need to be
    sent to our custom Image Viewer (ActiveX control). So far I can get the
    TIFF image data loaded into a Byte Array in C# on my ASP.Net web page, But
    how do I send this data now to my ActiveX control on the client side? The
    ActiveX control is written in VC++ .Net 2003 using MFC so its unmanaged.
    Also I need to do the reverse too, I need to be able to send Image data from
    the ActiveX control back to the ASP.Net web page.

    Thanks,
    Weston Fryatt




  • Kevin Spencer

    #2
    Re: ActiveX Web Control &lt;--&gt; ASP.Net

    How the client-side ActiveX Control gets it's image data depends on how the
    client-side ActiveX Control was developed to work. Generally, this sort of
    client-side component fetches its own data from a server in some way, but I
    couldn't tell you specifically in this case.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    If you push something hard enough,
    it will fall over.
    - Fudd's First Law of Opposition

    "Weston Fryatt" <wfryatt "at" mlinks.net> wrote in message
    news:uhdlM5b9FH A.1224@TK2MSFTN GP12.phx.gbl...[color=blue]
    > Simple question I hope....
    >
    >
    > How do I send data to and from an ASP.Net (server side) web page to a
    > ActiveX Control (client side) embedded in a web browser???
    >
    > What I need to do, is I have image data (mostly TIFF format) that need to
    > be
    > sent to our custom Image Viewer (ActiveX control). So far I can get the
    > TIFF image data loaded into a Byte Array in C# on my ASP.Net web page, But
    > how do I send this data now to my ActiveX control on the client side? The
    > ActiveX control is written in VC++ .Net 2003 using MFC so its unmanaged.
    > Also I need to do the reverse too, I need to be able to send Image data
    > from
    > the ActiveX control back to the ASP.Net web page.
    >
    > Thanks,
    > Weston Fryatt
    >
    >
    >
    >[/color]


    Comment

    • Weston Fryatt

      #3
      Re: ActiveX Web Control &lt;--&gt; ASP.Net

      Right now the ActiveX Control has a method to load an image from a memory
      pointer:

      BOOL CCDMS_ViewerCtr l::LoadDocument (CLeadBitmap * ltbm);

      The actual data from the server side is being sent as a LeadTools Bitmap.
      At least this is how its written now.. But I can rewrite the control to work
      anyway I need it to work.

      If I'm understanding you right, The ActiveX Control itself is going to have
      to send a request to the web server for the data? Would this have to be a
      WebService?

      Thanks,
      Weston Fryatt


      "Kevin Spencer" <kevin@DIESPAMM ERSDIEtakempis. com> wrote in message
      news:uE4njKc9FH A.600@tk2msftng p13.phx.gbl...[color=blue]
      > How the client-side ActiveX Control gets it's image data depends on how[/color]
      the[color=blue]
      > client-side ActiveX Control was developed to work. Generally, this sort of
      > client-side component fetches its own data from a server in some way, but[/color]
      I[color=blue]
      > couldn't tell you specifically in this case.
      >
      > --
      > HTH,
      >
      > Kevin Spencer
      > Microsoft MVP
      > .Net Developer
      > If you push something hard enough,
      > it will fall over.
      > - Fudd's First Law of Opposition
      >
      > "Weston Fryatt" <wfryatt "at" mlinks.net> wrote in message
      > news:uhdlM5b9FH A.1224@TK2MSFTN GP12.phx.gbl...[color=green]
      > > Simple question I hope....
      > >
      > >
      > > How do I send data to and from an ASP.Net (server side) web page to a
      > > ActiveX Control (client side) embedded in a web browser???
      > >
      > > What I need to do, is I have image data (mostly TIFF format) that need[/color][/color]
      to[color=blue][color=green]
      > > be
      > > sent to our custom Image Viewer (ActiveX control). So far I can get the
      > > TIFF image data loaded into a Byte Array in C# on my ASP.Net web page,[/color][/color]
      But[color=blue][color=green]
      > > how do I send this data now to my ActiveX control on the client side?[/color][/color]
      The[color=blue][color=green]
      > > ActiveX control is written in VC++ .Net 2003 using MFC so its unmanaged.
      > > Also I need to do the reverse too, I need to be able to send Image data
      > > from
      > > the ActiveX control back to the ASP.Net web page.
      > >
      > > Thanks,
      > > Weston Fryatt
      > >
      > >
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Bruce Barker

        #4
        Re: ActiveX Web Control &lt;--&gt; ASP.Net

        no, you can use any protocol you want. the simplest would just a HTTP GET of
        the image. to upload just do a HTTP POST of base64encode of the image. see
        the wininet api for using the http protocol from your active/x control.


        -- bruce (sqlwork.com)


        "Weston Fryatt" <wfryatt "at" mlinks.net> wrote in message
        news:%234wM1kc9 FHA.2616@TK2MSF TNGP15.phx.gbl. ..[color=blue]
        > Right now the ActiveX Control has a method to load an image from a memory
        > pointer:
        >
        > BOOL CCDMS_ViewerCtr l::LoadDocument (CLeadBitmap * ltbm);
        >
        > The actual data from the server side is being sent as a LeadTools Bitmap.
        > At least this is how its written now.. But I can rewrite the control to
        > work
        > anyway I need it to work.
        >
        > If I'm understanding you right, The ActiveX Control itself is going to
        > have
        > to send a request to the web server for the data? Would this have to be a
        > WebService?
        >
        > Thanks,
        > Weston Fryatt
        >
        >
        > "Kevin Spencer" <kevin@DIESPAMM ERSDIEtakempis. com> wrote in message
        > news:uE4njKc9FH A.600@tk2msftng p13.phx.gbl...[color=green]
        >> How the client-side ActiveX Control gets it's image data depends on how[/color]
        > the[color=green]
        >> client-side ActiveX Control was developed to work. Generally, this sort
        >> of
        >> client-side component fetches its own data from a server in some way, but[/color]
        > I[color=green]
        >> couldn't tell you specifically in this case.
        >>
        >> --
        >> HTH,
        >>
        >> Kevin Spencer
        >> Microsoft MVP
        >> .Net Developer
        >> If you push something hard enough,
        >> it will fall over.
        >> - Fudd's First Law of Opposition
        >>
        >> "Weston Fryatt" <wfryatt "at" mlinks.net> wrote in message
        >> news:uhdlM5b9FH A.1224@TK2MSFTN GP12.phx.gbl...[color=darkred]
        >> > Simple question I hope....
        >> >
        >> >
        >> > How do I send data to and from an ASP.Net (server side) web page to a
        >> > ActiveX Control (client side) embedded in a web browser???
        >> >
        >> > What I need to do, is I have image data (mostly TIFF format) that need[/color][/color]
        > to[color=green][color=darkred]
        >> > be
        >> > sent to our custom Image Viewer (ActiveX control). So far I can get
        >> > the
        >> > TIFF image data loaded into a Byte Array in C# on my ASP.Net web page,[/color][/color]
        > But[color=green][color=darkred]
        >> > how do I send this data now to my ActiveX control on the client side?[/color][/color]
        > The[color=green][color=darkred]
        >> > ActiveX control is written in VC++ .Net 2003 using MFC so its
        >> > unmanaged.
        >> > Also I need to do the reverse too, I need to be able to send Image data
        >> > from
        >> > the ActiveX control back to the ASP.Net web page.
        >> >
        >> > Thanks,
        >> > Weston Fryatt
        >> >
        >> >
        >> >
        >> >[/color]
        >>
        >>[/color]
        >
        >[/color]


        Comment

        Working...