Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

1 solution

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[^]
 
Share this answer
 
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900