views:

48

answers:

3

Hi,

I have a Visualforce page through which I am trying to access a SDK. It is done using ActiveX control. The VB + JS script that I have runs fine when it is a normal HTML page residing on my desktop. However the same code when incorporated in Visualforce does not work. Does running ActiveX control require uploading any kind of files to Static Resource? My code need not be a Visualforce. If there is any other way I could integrate ActiveX with Salesforce, even that would be fine.

Thanks in Advance.

A: 

What browser are you using to test? If IE6 it may need you to enable the ActiveX controls.

If you go to Tools->Internet Options->Security Tab. Click ‘Custom’ and OK any message. Then scroll down to ‘Script Active X Controls ….’. This should be enabled.'

jon3laze
+1  A: 

If you need somewhere to host the .cab (or .ocx) file, then you can put that in a static resource, and reference that from your VF code.

superfell
A: 

@jon3laze - Yes That's enabled. @superfell - There's no ocx/cab file related to that software. There's a dll file which is preregistered using regsvr32 on local machine.

To add to my question statement,VF page when saved in html and ran from desktop, the page loads properly and displays Active-X Yes/No dialog. on Yes the active-x gets successfully activated. On other side, when i run the same page from any web domain whether its salesforce(visualforce) or any other web host it doesn't prompts you with Active-X Yes/No dialog.

Chirag Mehta
I'd imagine this is related to the security settings for the internet zone on the browser. it probably disallows activeX controls, or possibly just controls that aren't marked safe for scripting.
superfell
All the settings on my IE browser related to ActiveX are either in Enable or Prompt mode, none of them is in disabled state. Even the setting which says unsafe Active-X, there too i selected prompt option. Still it doesn't work. Any other option?
Chirag Mehta
I don't know that anyone can help anymore unless you can provide specific details like a reproducible case that people can try.
superfell
The app I am trying to build is one which scans business card and calls VF page with scanned data, which in turn searches the information in salesforce. Access the cardscan html page at http://amila.bplaced.net/cardscan/index.html. Intially you have to get the cardscanSDK + cardscan SW installed on your machine. Also you need to register the dll using regsvr32. Even after doing all these steps, the html page says "cardscan" undefined
Chirag Mehta
@superfell - Let me know if you need any more informatiom, this small piece had almost put my project on hold. Are you availble for chat?
Chirag Mehta