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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to create a graph and save it as a PDF file 2

Status
Not open for further replies.

ksbigfoot

Programmer
Apr 15, 2002
856
CA
I am not sure how to do this. Can someone point me in the right direction.

I have an ASP.NET page in which I want to do a line graph based on values out of a database. What I would like to do is make a graph and save it out to a PDF file.

The best scenario is call my VB.NET layer and create the graph and then save it to a pdf file.

Can this be done?
 
You can use GDI+ to create a graph. Here's an example:


You can then export a pdf based on the image by using something like iTextSharp.

However, all of this may be quite difficult to get completely right and it may be easier to use a ready made 3rd party control if you have the funds.


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
Look up something called ZedGraph.

It's free and very easy to use. I love it.
 
Howdy Mark and tperri,

Star to you both.
Thanks for the posts, that is a great starting point for me.

I checked out the graphs in ZedGraph, didn't see the graph I needed to use. I am willing to spend money on third party packages. Do you know of other ones besides ZedGraph?

Thanks again,
ksbigfoot
 
I have been using ChartDirector (out of Hong Kong) for several years - cost is low and their staff have always responded within hours anytime I have an issue. They also have a question/answer board up having broad coverage of many topics.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top