OWC Example that uses the ActiveX control on the client

J

Jason Madison

I've found plenty of examples of how to use the Office Web Components with
asp.net to generate an image of the chart to send through to the client, but
what I would also like to be able to do is work with the activex controls on
the web page sent to the client.

I've tried just dropping the activex control on the web page and setting a
data source. This displays data in design mode but when I run it nothing is
displayed. I would also like to be able to dynamically set the properties of
the controls on the server at run time, but there doesn't seem anything
available to wrap the control to work with it in asp.net.

Ideally I would like the example to be in C#, but obviously that is less
important than getting the example!

Thanks
 
J

Jason Madison

Well I ordered your book a few days ago, so I think I will have to wait for
it to arrive. I'm not really clear what you have said below so it isn't
enough to get me started. Are you saying just add in the object reference?

<OBJECT style="Z-INDEX: 101; LEFT: 112px; WIDTH: 552px; POSITION:
absolute; TOP: 144px; HEIGHT: 328px"
classid="clsid:0002E559-0000-0000-C000-000000000046" VIEWASTEXT>
<PARAM NAME="DataType" VALUE="XMLDATA">
....
etc etc

Whenever I do this I get a huge page full of xml data being assigned to the

<PARAM NAME="XMLData" VALUE=

parameter which I don't understand and would hate to have to generate from
some external data.

Also this is exactly the data that displays at design time and not at run
time.

Thanks

Alvin Bruney said:
I've detailed a few approaches in the new OWC black book (link below).
In your case, you actually want to create a chart thru the live object
stream approach. basically, you will want to do something like:

Response.Write("<script>CLSID for OWC goes here</script>");
Response.Write("<script>automation instructions go here</script>");
roughly

There's obviously a lot more involved but that is enough to get you
started.

--
Regards,
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at www.lulu.com/owc
_________________________


Jason Madison said:
I've found plenty of examples of how to use the Office Web Components
with asp.net to generate an image of the chart to send through to the
client, but what I would also like to be able to do is work with the
activex controls on the web page sent to the client.

I've tried just dropping the activex control on the web page and setting
a data source. This displays data in design mode but when I run it
nothing is displayed. I would also like to be able to dynamically set the
properties of the controls on the server at run time, but there doesn't
seem anything available to wrap the control to work with it in asp.net.

Ideally I would like the example to be in C#, but obviously that is less
important than getting the example!

Thanks
 

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

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top