S
scott
After many hours I have finnaly got this to work, I still
have not found a good solution on the web so I will post
mine
MSScriptControl.ScriptControlClass sc = new
MSScriptControl.ScriptControlClass();
sc.Language
= "javascript";
string script
= "cs.Clear();cs.DataSource = pvt;";
OWC10.ChartSpaceClass cs = new ChartSpaceClass();
sc.AddObject
("pvt",pTable,true);
sc.AddObject
("cs",cs,true);
sc.Eval(script);
Simple. I create a script language object, Bind the
chartspace source to pivotTable and thats it
When I call ExportPicture, I actually get a populated
chart :>
have not found a good solution on the web so I will post
mine
MSScriptControl.ScriptControlClass sc = new
MSScriptControl.ScriptControlClass();
sc.Language
= "javascript";
string script
= "cs.Clear();cs.DataSource = pvt;";
OWC10.ChartSpaceClass cs = new ChartSpaceClass();
sc.AddObject
("pvt",pTable,true);
sc.AddObject
("cs",cs,true);
sc.Eval(script);
Simple. I create a script language object, Bind the
chartspace source to pivotTable and thats it
When I call ExportPicture, I actually get a populated
chart :>