Click here to Skip to main content
11,921,898 members (38,373 online)
Rate this:
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 18: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
0 OriginalGriff 493
1 Dave Kreskowiak 285
2 Sergey Alexandrovich Kryukov 243
3 Richard MacCutchan 155
4 ppolymorphe 135
0 OriginalGriff 7,231
1 KrunalRohit 4,530
2 Sergey Alexandrovich Kryukov 3,356
3 George Jonsson 2,865
4 Suvendu Shekhar Giri 2,216

Advertise | Privacy | Mobile
Web03 | 2.8.151120.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