Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hello friends...

i m developing application in ASP.NET that will generate excel file and export data from Database to that excel file. i did it but i stuck on developing graphs in that excel file without storing data into excel sheet. for graph data comes from SQL server directly, i don't want to show and store data into excel sheet.
Please help
Posted
Comments
Andreas Gieriet 9-Dec-14 4:53am    
What is the problem with showing the data? The graph is data too.
If you do not want to show *absolute* data, you must at least show *relative* data, otherwise the graph can not be drawn...
Cheers
Andi
TAUSEEF KALDANE 9-Dec-14 5:00am    
i wanted to get data in graph from SQL Database directly. i don't want to display source table values into excel. is it possible?
Andreas Gieriet 9-Dec-14 5:18am    
If you want Excel to draw the graph, you need data for it in Excel. E.g. do it manually - you always have a data set to produce the graph.
Use other means/tools or produce a PDF or an image of the graph to present to the user.
Cheers
Andi
Zephire 9-Dec-14 5:18am    
I think the following link might be what you're looking for.
http://clear-lines.com/blog/post/Create-an-Excel-chart-in-C-without-worksheet-data.aspx
Durrett 22-Aug-17 4:16am    
To do this you can take advantage of an Excel library for C# / VB.NET, like this:
- First you need to create an Excel file in C# / VB.NET.
- Second you need to export a DataTable to an Excel file in C# / VB.NET.
- Third you need to create an Excel chart in C# / VB.NET.
I hope this helps.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900