How to convert datagrid to pdf in c#




















Find centralized, trusted content and collaborate around the technologies you use most. Connect and share knowledge within a single location that is structured and easy to search.

How do I do it? I searched online and found some codes but it seems like the website I found missed out on a lot of things. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more.

Ask Question. Asked 4 years, 4 months ago. Active 1 year, 11 months ago. Viewed 5k times. Amit Mohanty Updated date Aug 02, In this code example, we will learn how to export DataGridView data to a pdf file and save that in a folder using C code. In this program, first, we have to get connected to the database and fetch data from the DB and show it in the Data GridView like the below image.

To do that, right-click on the project and select "Manage NuGet Package" menu. After that go to the "Browse" tab and search for iTextSharp and install it. Now, go to the page load event, fetch employee data and bind to the data GridView. Fill dtData ; dataGridView1.

How to convert datagridview to pdf in c. Please Sign up or sign in to vote. See more: C. I would like to convert datagridview to pdf using c. Posted Aug am Anand Arul K. Add a Solution. But all Links are related to web application.

Member Nov am. Top Rated Most Recent. Accept Solution Reject Solution. Posted Aug am codeBegin. Do you ever tried something? Posted Aug pm ridoy. Add your solution here. OK Paste as. Treat my content as plain text, not as HTML. Existing Members Sign in to your account. This email is in use. Do you need your password? Submit your solution! When answering a question please: Read the question carefully.

Understand that English isn't everyone's first language so be lenient of bad spelling and grammar. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem.

Insults are not welcome.



0コメント

  • 1000 / 1000