ComInterop - Create Object using Javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • L Gopi
    New Member
    • Sep 2006
    • 5

    ComInterop - Create Object using Javascript

    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!
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    What do the machines that it does and does not work on have in common? Does it give you a line number?

    Comment

    • L Gopi
      New Member
      • Sep 2006
      • 5

      #3
      Hi Dear!

      Thanks for your interest!

      A object is being created using javascript.
      var*Prn*=*new*A ctiveXObject('P rinterCom.ComCl ass');

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

      Comment

      Working...