Export Datatable to PDF by Easily Using C# Program
Posted in C#/.Net, Data Export, PDF Articles by stephenchy520
Sometimes we may have the requirements to export data from Datatable to PDF because PDF files have become as commonplace as MS office files. But when we export data from database, maybe we are not clear the exactly data information from the data source. If the data information is not right, the output exported data may become useless. Is there a way to check and modify information before data export? The answer is definitely YES. Days ago, i create a C# program under the help a free data export component. The c# program with the ability of exporting data from Datatable to PDF and enable users to check and modify information before data export. Below is the instructions:
Easiest/Fastest Method:
Download “Datatable to PDF” Tool (100% Free because I made it by myself) and do the following steps:
Step 1, Input data source and SQL command
In the Connection String and Command Text boxes, input your data source and SQL command
Step 2, Load data source and preview in dataGridView Area
Click “Load” button to load data source from Datatable and preview the data information in dataGridView area.
Step 3, Check and modify the data information at will
In the dataGridView Area, you can modify the information by double-clicking cell content. For example, we can change the cell (column gender, row 2) to female.
Step 4, Export datatable to PDF
After make sure the all data information is correct, click “Run” button to export data to Excel. Check what we get:
Do it by yourself:
It’s not difficult to create this kind of tool. If you don’t like my program, you can do it by yourself. Fast create by the following steps:
Step1, Download a Free Data Export Component. This can help you save tons of time on programming.
Step2, Create a WindowsFormsApplication via Visual Studio. Use Free Data Export Component (Spire.DataExport for .NET).
Step3, Design windows components by yourself
Step4, You can use this free data export component to create Datatable to PDF, Datatable to Excel, Datatable to HTML, Datatable to Word, Datatable to CSV, etc. Just Do It!
This Free Data Export Component is 100% Free. I tried!
Directly Download Datatble to PDF tool
- Export Multiple Data Tables to a Single PDF Page
- How to Transfer Data from Database to DBF?
- Fast Way for Exporting Large Amount Data Information to Excel
- Export Data to Excel through ASP.NET Solution 1
- The Safest Way to Export Datatable to HTML by Easily Using C#
- Database Export to HTML, PDF, Excel, Word, MS Access, Clipboard, XML, DBF, SQL Script, SYLK, DIF, Text and CSV
Related PDF Articles:
- The Safest Way to Export Datatable to PDF by Easily Using C#
- C# Solutions for Drawing Text in PDF
- How to Merge PDF Documents into 1
- How to Use C# Create PDF with Different Methods
- How to Use C# Convert HTML to PDF
- Why and How to Remove PDF Security
- How to Encrypt PDF Files
- Recommend Some free PDF Toolkits
- Solutions for You to Edit PDF Files
- How to Read PDF without the Help of Adobe Acrobat Reader
- Convert Doc to PDF with/without the Help of MS Word and Adobe Acrobat
- How to Use C# Create PDF Digital Signature
- PDF Document Settings – Security Setting














April 4, 2012 3:52 am
I really liked your article.Thanks Again. Really Cool.