OWC in VS2005 toolbox

S

Seb

Hello!
I am working with VS 2005 and i want to do a web page in the web project. So
i need a chart from microsoft office 2003 web components. Here is what i do:
1. I add a reference from menu bar website>add reference and i add microsoft
office web components 11
2. in toolbox i do right click and i checked "show all" contest menu. In the
Toolbox General section the components are present but greyed and not useble
for drag and drop in the page. When i do it for a window application it works
but for the web application it does't work. Doew anyone know what happen and
how can i use show the OWC into my web pages?
 
A

Antoine Prevot

Hi Seb,

Try addin directly the followin code in your asp page :

<OBJECT id="CS" style="HEIGHT: 300px"
classid="clsid:0002E55d-0000-0000-C000-000000000046" VIEWASTEXT>
<PARAM NAME="ScreenUpdating" VALUE="-1">
<PARAM NAME="EnableEvents" VALUE="-1">
</OBJECT>

This code will declare a chart space object by his class id (clsid). Here
are the different ids you can use :

ChartSpace (11) 0002E55d-0000-0000-C000-000000000046
PivotTable (11) 0002E55a-0000-0000-C000-000000000046
ChartSpace (10) 0002E556-0000-0000-C000-000000000046
PivotTable (10) 0002E542-0000-0000-C000-000000000046

Hope this helps,
 

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