Dynamic creation of OWC Controls in VB6

Z

ZurcioS

Hello,
I've written VB6 application using OWC controls. I'm using OWC.PivotTable
and OWC.ChartSpace. Now I want to reset all formatting options to deafault
on these obejects. I't impossible to do it "prop by prop" ;-)) and I can't
find any methods to do this (even Clear on ChartSpace does not work as I
need).
So I tried to create controls in runtime using
Controls.Add("OWC10.PivotTable","OWC_Pivot"), but this work well only on my
developement machine - on others machines Controls.Add causes runtime error
731 - "in order to use OWC.PivotTable you must specify a license string for
this control.... ".

At this moment I have no idea, what to do. Can anybody help Me ?

Thanks in advance
Slawek
 
A

Alvin Bruney [MVP - ASP.NET]

to create owc objects on the fly, you should embed the control in the
response stream. something like
response.write("<object clasid=asf/>

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
 
Z

ZurcioS

But i need to recreate controls in windows appliaction (OWC pivot table an
chartspace are placed as activex controls on standard VB6 form). I want to
recreate controls, because after feeding object via XMLData property some
of properties are not cleared - the problem is that XMLData does not
contains values for all possible properties, but only for these used in
specific report - then when next report does not provide value for such a
property the old value is used. And it is impossible to clear all properties
via code .....
Slawek
PS: sorry for my english, i hope You could understand my problem

User "Alvin Bruney said:
to create owc objects on the fly, you should embed the control in the
response stream. something like
response.write("<object clasid=asf/>

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
ZurcioS said:
Hello,
I've written VB6 application using OWC controls. I'm using OWC.PivotTable
and OWC.ChartSpace. Now I want to reset all formatting options to
deafault on these obejects. I't impossible to do it "prop by prop" ;-))
and I can't find any methods to do this (even Clear on ChartSpace does
not work as I need).
So I tried to create controls in runtime using
Controls.Add("OWC10.PivotTable","OWC_Pivot"), but this work well only on
my developement machine - on others machines Controls.Add causes runtime
error 731 - "in order to use OWC.PivotTable you must specify a license
string for this control.... ".

At this moment I have no idea, what to do. Can anybody help Me ?

Thanks in advance
Slawek
 

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