C# - creating and emailing a PDF with graphics from code

I have a c# program I am working in that I did not originally create.  I need to add an email element that will create a PDF with graphics (like the attached) authenticate with an email server (like gmail, microsoft or similar) and send that email to a specified address.

I am not sure where to begin, especially on creating the data based graphic.

Adam DIT Solutions DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KimputerIT ManagerCommented:
This expert suggested creating a Gigs project.
The data based graphic will take you the most time. You didn't mention how it's calculated and where the date comes from (database)?
The other parts are the least of your problems right now.
So you're probably better off writing in a VERY detailed manner how the graphic has to be created (who what where how why), and create a gig to get you going.
Adam DIT Solutions DeveloperAuthor Commented:
Thank Kimputer, but where the data comes from doesn't really matter, does it?

It is coming from a database, but the data, for all intents and purposes, is already here, in the program (ie. I have already retrieved it) but, I am interested in knowing and learning how to create this graphic heavy PDF.

What I need to know, for example, is if I have say the 61% value, how do I create a circle graphic that fills in the circle line (like the picture) 61% around the circle or create a bar graph showing values over a period of x months.

Thanks. :)
Dustin SaundersDirector of OperationsCommented:
You can always put together HTML output with jQuery for nice looking charts.

Then use some commercial library like EVOPDF to convert that to your PDF.

Everything else you can do in code easily enough.
Adam DIT Solutions DeveloperAuthor Commented:
Thanks for your input Dustin.  Converting HTML to PDF is an idea.  But that "evopdf" option is a bit pricey, but I will do some more research on other methods.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.