Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET itextsharp
Hello,

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 asp.net?
Posted 14-Dec-12 18:27pm

1 solution

Rate this: bad
good
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
https://www.youtube.com/watch?v=iPaMxhSmyCA[^]
 
Export Crystal Report to PDF:
http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-export-pdf.htm[^]
  Permalink  
Comments
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 OriginalGriff 587
1 Sergey Alexandrovich Kryukov 479
2 Maciej Los 305
3 Mathew Soji 195
4 Afzaal Ahmad Zeeshan 170
0 OriginalGriff 7,356
1 Sergey Alexandrovich Kryukov 6,777
2 DamithSL 5,461
3 Manas Bhardwaj 4,916
4 Maciej Los 4,475


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