Click here to Skip to main content
13,049,814 members (71,416 online)
Rate this:
Please Sign up or sign in to vote.

I am creating pdf file using ItextSharp. and now i have to add horizontal bar chart in pdf how we can create chart ?
what is the best way do this work with
Posted 14-Dec-12 17:27pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

One of the easiest way is to create it with Crystal Report and export/save as PDF.

Watch this video:
Learn how to Work with Charts and Graphs in Mastering Crystal Reports 2008[^]

Export Crystal Report to PDF:[^]
ssoni346 15-Dec-12 1:14am
thanks for the reply actually i want to create chart from code behind
adriancs 15-Dec-12 1:23am
You create a template in Crystal Report.
then, you'll declare an instance of crystal report in code, fill in the values dynamically and export the PDF dynamically in c#.
All of this is done in code behind. Only the design time is done in visual studio's CR editor.
You can even generate the template in code behind too.
ssoni346 15-Dec-12 11:17am
Thank you for you are valuable response
i have done that task using MS Chart - System.Web.UI.DataVisualization.Charting.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 14 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100