473,608 Members | 2,074 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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


Nov 30 '05 #1
3 2289
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:uh******** ******@TK2MSFTN GP12.phx.gbl...
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

Nov 30 '05 #2
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" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:uE******** *****@tk2msftng p13.phx.gbl...
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:uh******** ******@TK2MSFTN GP12.phx.gbl...
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


Nov 30 '05 #3
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:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
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" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:uE******** *****@tk2msftng p13.phx.gbl...
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:uh******** ******@TK2MSFTN GP12.phx.gbl...
> 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
>
>
>
>



Nov 30 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1633
by: loveneesh bansal | last post by:
Hi Experts, I want to write an activex control. This actiovex comntrol will be a simple drop down and when i select a value from this drop down the value in another drop down will be fill up based on this value with page refreshing. I have no idea how to develop such type of activex control. Can anyone help me for that.
0
7119
by: Ike | last post by:
I have an Activex Control created in VB6, which, displays no problem on any machine I have, but, on some machines of others, it does not. All machines are running either XP or Windows 2000, and all are running MSIE6.x, woth security settings set to display this control. For the life of me, I cannot figure out how such a simple control can be so sporadic in it;s showing on a page. It always downloads - it just doesn't always show. I'm...
5
8764
by: andy.g.ward | last post by:
I keep getting this when trying to create an MFC activex control in a c# windows service - anyone got any ideas what the missing module could be??? Exception thrown : System.IO.FileNotFoundException: The specified module could not be found. at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid) at System.Windows.Forms.AxHost.CreateWithoutLicense() at...
3
2317
by: fumihiko | last post by:
Hi, I created an activex control (C++), and it uses another COM dll (C++). This COM dll links with a static library that dose some calculation. (both are debug multithreaded dll) I created a C# client having activex control embedded at the very beginning (added in the design window); then, I created another same activex control at the runtime. After the 2nd activex control is created, I start to get errors on the function calls to the...
1
1176
by: Vinay Chopra | last post by:
Hi, I have created an ActiveX control using MFC activeX control wizard and added a dialog to it. Now on that Dialog I dragged a Button control and gave a "hello world" message on it click. When I run the control in an activex container it works fine. Now I want to a Datagrid in place of this button. I have inserted datagrid and build it I dont get any error. but when I try to open it in ActiveX container to see the display. Im getting...
3
22844
by: EJ1003 | last post by:
Hello I would like to create Activex Control uisng C# and use it in ASP.Net webform. User Control is not solving my requirement so I am going for Activex Control. Please guide me on this, how to do it, if any sample is provided will be of great help Thanks EJ
2
1996
by: Shawn | last post by:
Hi. I've never created an ActiveX control before, so I know little about what it is capable of and what its limitations are. My problem is this: I have to create a way to send multiple documents from the web server to a printer on the user's network. The way it works today the user has to manually download each document and send it to his printer, but now they want me to create an automated process. Will I be able to download documents...
4
23360
by: fniles | last post by:
I have an ActiveX control in my web page that I tried to access using intranet. I have implemented IObjectSafety in the ActiveX control, and when I created the CAB file using VB Pakage and Deployment Wizard, under "Safety Settings" I selected "Yes" for "Safe for Scripting" and "Yes" for "Safe for Initialization". I also have signed the CAB file. In IE, the option 'Script ActiveX controls marked Safe for Scripting' is already set to...
1
2222
by: Jayender | last post by:
Hi, I have an ActiveX control (to display the Images),I have added the reference of that in my web based applicaton .and added the ocx in my tool bar , but the viewer (activex component- ocx ) is disabled , but i tried this in Window based application, and it works great , but i need to do it in Web based applicaion , is there anything i need to add for making that to enable so that i can drag and place it in my web form ? waiting for...
7
5805
by: Artie | last post by:
Hi, Our team have a web project which includes some C# ActiveX DLLs. On some developers' PCs, the code which calls methods in the ActiveX dll is succesful - no exceptions. On other PCs, the ActiveX control doesn't even seem to get loaded. (On the failing machines, if we try and debug down to where the ActiveX DLL method is invoked, both Visual Studio and IE hang.)
0
8493
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8179
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8365
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5499
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3993
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4053
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2493
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1620
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.