By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,526 Members | 1,888 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,526 IT Pros & Developers. It's quick & easy.

ComInterop - Create Object using Javascript

P: 5
Hi!

I have created a com component using framework 1.1. This component will be installed on the users machine. This component will be used by my 2.0 web application. A javascript call is made to create a instance of the component. The purpose of the component is collect the printers installed on the users machine and return the values to javascript.

This works fine on some machines and does not work on few machines.

Javascript is unable create the instance of the component.

Any sugesstions to fix this issue is welcome!
Apr 2 '07 #1
Share this Question
Share on Google+
2 Replies


kenobewan
Expert 2.5K+
P: 4,871
What do the machines that it does and does not work on have in common? Does it give you a line number?
Apr 3 '07 #2

P: 5
Hi Dear!

Thanks for your interest!

A object is being created using javascript.
var*Prn*=*new*ActiveXObject('PrinterCom.ComClass') ;

On some machines the above line throws error, "Can't create object". I have installed the required files.
Apr 3 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.