Have you ever tried to do something like this in .NET? You could write a simple console application that outputs the results as CSV files (comma separated files). you can then open those directly in Excel and create the charts etc.