In this article I will explain how to export DataGridView data to PDF file in Windows Forms (WinForms) Applications using iTextSharp PDF. Hi! I have a datagrid that I want to transfer to a PDF Im using iTextSharp and VB How?!? J.O. hi all i have successfully created a PDF button, but the problem is that when i export my data grid to PDF format it doesn’t show all my data.

Author: Dut Vudozil
Country: Sao Tome and Principe
Language: English (Spanish)
Genre: Sex
Published (Last): 9 November 2004
Pages: 62
PDF File Size: 10.88 Mb
ePub File Size: 12.56 Mb
ISBN: 637-7-79386-646-2
Downloads: 46835
Price: Free* [*Free Regsitration Required]
Uploader: Vugore

Export datagridview data to pdf C. You can now see what you’re doing wrong in one glimpse. Color,,,,,pdfTable. Erduan 1 1 1.

Export datagridview data to pdf C# – CodeProject

Please refer Privacy Policy for more details. I agree, here is the link: If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. AddCell cid ; t1. I tried to go through each row and in every row through each column.


This site makes use of Cookies. That’s the point of the datagridview.

Add 1, “John Hammond””United States”. NET without using iTextsharp. Here’s my current code Don’t tell someone to read the manual.

Forums – C# Corner

This question does not have replies marked as Answer. Dim dt As New DataTable. The content posted here is free for public and is the content of its poster.

AddCell c1 ; t1. So you can use the for statement instead of foreach to exclude the last line: What our readers say.

C#, datagridview and iTextsharp

You can add your comment about this article using the form below. How to export datagridview data in pdf in C. Articles Quick Answers Messages Use my saved content filters. I have fixed the indentation in your code snippet. It is highlighting the following line: Let’s work to help developers, not make them feel stupid.

I agree to the above terms. Do you need your password? Provide an answer or move on to the next question.


Sign in to vote. Add 4, “Robert Schidner””Russia”.

GetInstance pdfDoc, stream. The code samples and API available at www. Add pdfTable ; cb.