OWC <object> in client side

N

nickless

Hello Alvin,

i followed the steps you listed in another post - to use OWC on the
client side.
Although i have a few things that are unclear to me.

First register the ActiveX object on the client where it will run:
I downloaded OWC11.exe and installed on my PC.

embed the object in the aspx page using the object tag :
<object id='myID' CLSID="id goes here"></object>.

I did, is CLSID unique and universal ?
Q1:Is CodeBase value necessary for this object ?
Q2:Is it necessary to provide CodeBase value by including the
owc11.exe in my project and
setting the value of CodeBase to it?

The activeX object will expose a programming interface to allow data
manipulation. You have a
reference id that you can use to call methods on the object:
Q3:On adding the Object is the programming interface immediately
accessible on the page to Javascript/VBScript, or is it a DOM object
now that can be accessed using getElementById()?

I am having trouble getting through this stage, so i just wanted to
make sure i know what i am doing.

Thanks in advance.
 
A

Alvin Bruney [ASP.NET MVP]

I did, is CLSID unique and universal ?
Yes, it's a COM thing
Q1:Is CodeBase value necessary for this object ?
No, it isn't. The IE will use it if the components can't be found on the
target machine
Q2:Is it necessary to provide CodeBase value by including the
owc11.exe in my project and
setting the value of CodeBase to it?
<object id='myID' CLSID="id goes here"></object>.
so you can use either myID.SetData()
or
document.all.myID.SomeMethod depending on where you have the object
declared.

To figure out the methods available, either use the help by downloading the
owc toolkit or open a windows form and drop the owc on the designer and use
intellisense to figure out the correct methods to call. Then you can use
those methods in the web page.

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Download OWC Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $15.00
Need a free copy of VSTS 2008 w/ MSDN Premium?
http://msmvps.com/blogs/alvin/Default.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top