Groups | Blog | Home
all groups > asp.net > january 2008 >

asp.net : ASP.NET ActiveX Object Windows API Access



StinkyDuck
1/16/2008 11:24:33 PM
I'm trying to determine if it is possible to create a ActiveX control which
would be deployed through IE that would provide access to the client
resources to control devices like barcode readers, printers, scales, mag
stripe readers etc. If the user is prompted to download and install the
ActiveX object that is ok.

Is this possible through .NET and ActiveX delivered via ASP.NET through a
browser? Do I need to look at some other technology to make this happen?
Any suggestions would be great.

-StinkyDuck

zzzxtreme@gmail.com
1/17/2008 12:21:10 AM
It doesnt matter if the delivery ASP.NET or PHP or HTML

to "execute" activeX dll (or .cab - compressed dll), u use <object>
tag in the HTML code

of course it can access barcode readers, printers, etcccc... , assume
activeX dll in the browser just like any other EXE application.

so, you'll need to write the DLL. I'm not sure if you could with .net,
but i've written some in the past with VB and Delphi. U need to lookup
how to write "ActiveX form" with .net

then, you may need to get digital signature for your dll. if not, by
default, IE will block the installation. Verisign digital signature is
about $400 (in the past) annually. I'm sure you can get cheaper from
others. it's something like ssl.

then when u have the dll, normally you must compress it as .cab. just
put on the webserver, and embed using <object> tag.

[quoted text, click to view]
bruce barker
1/17/2008 8:56:11 AM
for most other browsers you create a plugin based on the netscape plugin api.

firefox:

http://www.mozilla.org/projects/plugins/

safari (webkit):

http://developer.apple.com/documentation/InternetWeb/Conceptual/WebKit_PluginProgTopic/WebKitPluginTopics.html

-- bruce (sqlwork.com)


[quoted text, click to view]
StinkyDuck
1/17/2008 9:23:38 AM
Is there a different alternative to ActiveX. I understand that ActiveX is
only supported in IE. Is there a technology other than ActiveX that
supports a great variety of browsers?

-StinkyDuck

[quoted text, click to view]
It doesnt matter if the delivery ASP.NET or PHP or HTML

to "execute" activeX dll (or .cab - compressed dll), u use <object>
tag in the HTML code

of course it can access barcode readers, printers, etcccc... , assume
activeX dll in the browser just like any other EXE application.

so, you'll need to write the DLL. I'm not sure if you could with .net,
but i've written some in the past with VB and Delphi. U need to lookup
how to write "ActiveX form" with .net

then, you may need to get digital signature for your dll. if not, by
default, IE will block the installation. Verisign digital signature is
about $400 (in the past) annually. I'm sure you can get cheaper from
others. it's something like ssl.

then when u have the dll, normally you must compress it as .cab. just
put on the webserver, and embed using <object> tag.

[quoted text, click to view]
Alvin Bruney [ASP.NET MVP]
1/17/2008 6:47:33 PM
Here is a walkthrough:
http://support.microsoft.com/kb/555685

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
-------------------------------------------------------



[quoted text, click to view]
AddThis Social Bookmark Button