Click here to Skip to main content
11,796,774 members (80,088 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET itextsharp

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 at 15-Dec-12 1:14am
thanks for the reply actually i want to create chart from code behind
adriancs at 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 at 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
0 Abhinav S 379
1 OriginalGriff 360
2 Maciej Los 360
3 CPallini 295
4 KrunalRohit 280
0 OriginalGriff 2,032
1 Maciej Los 1,725
2 KrunalRohit 1,310
3 CPallini 1,055
4 ppolymorphe 883

Advertise | Privacy | Mobile
Web01 | 2.8.151002.1 | Last Updated 14 Dec 2012
Copyright © CodeProject, 1999-2015
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