I implemented a framework around microsoft excel (i know this isn't
shareware but most people already have excel) that allows you to create
the chart using excel and easily add it as a user control in an Asp.net
page. Its far better looking and easy to create than using a charting
component that you have to code to get working well. If you are
interested I'd be happy to send you some chunks of code, but heres a
snippet...it basically is a save as html of the excel chart....
Excel.ApplicationClass
xl=new Excel.ApplicationClass();
Excel.Workbook wkbook=null;
try
{
xl.AutomationSecurity=Microsoft.Office.Core.MsoAut omationSecurity.msoAutomationSecurityForceDisable;
wkbook=xl.Workbooks.Open(server.MapPath(request.Ap plicationPath+xlfiledirectorybaseuri+xlfilename),
3,false,1,Missing.Value,Missing.Value,true,
Missing.Value,9,false,false,Missing.Value,false,tr ue,Missing.Value);
wkbook.RefreshAll();
try
{
System.IO.Directory.Delete(server.MapPath(request. ApplicationPath+imageuri),true);
System.IO.File.Delete(server.MapPath(request.Appli cationPath+imagesavefileuri+htmlsavefilename));
}
catch
{
;
}
Excel.PublishObject
obj=wkbook.PublishObjects[xlchartobjectname];
obj.HtmlType=Excel.XlHtmlType.xlHtmlStatic;//xlHtmlChart;
obj.Filename=server.MapPath(request.ApplicationPat h+imagesavefileuri+htmlsavefilename);
obj.Publish(0);
this.sChartImageURI=request.ApplicationPath+imageu ri+imagefilename;
}
finally
{
wkbook.Close(false,Missing.Value,Missing.Value);
wkbook=null;
xl.Workbooks.Close();
xl.Quit();
xl=null;
}
Vai2000 wrote:
looking for a shareware charting tool which plugs into asp.net 2.0 apps?
TIA