Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I use Excel macros with ASP code?

Status
Not open for further replies.

pdevteam

Programmer
Joined
Jun 5, 2001
Messages
6
Location
FI
Hi!

I'm developing an application with ASP, which should retrieve data from database to Microsoft Excel (2000).

This works fine, but the customer wants that the ASP script also produces basic-graph for him.

There comes always only two columns of data so I thought that will I be able to use the following Excel macro with the script:

-----
Range("A:A,B:B").Select
Range("B1").Activate
Charts.Add
ActiveChart.ChartType = xlColumnClustered
ActiveChart.SetSourceData Source:=Sheets("Table1").Range("A1:B7"), PlotBy:= _
xlColumns
ActiveChart.Location Where:=xlLocationAsObject, Name:="Taul1"
With ActiveChart
.HasTitle = False
.Axes(xlCategory, xlPrimary).HasTitle = False
.Axes(xlValue, xlPrimary).HasTitle = False
End With
---

This works in Excel, but how can I embed it to ASP script.

If you have any suggestions or examples, I would be happy.

Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top