I need to do the following task in C#.Net. Can anyone tell me which is the best method to follow? Is there any in build features available in .net? Or do we need to use some external libraries.
* Import grid view data to pdf and save it in local disc (create pdf file in runtime)
* Read content from pdf file and convert it into grid view
Thanks in advance!
This external library enables you to create PDF from C# very easily. Just create create document model table populated with data from grid view and export it to PDF.
Here is a C# code:
// Create a new empty document. DocumentModel document = new DocumentModel(); var table = new Table(document); // Call method that creates rows and cells with data from GridView and adds them to Table. PopulateTable(gridView, table); // Add document content. document.Sections.Add( new Section(document, table)); // Save the document to a PDF file. document.Save("Document.pdf");
You can use pdfsharp library for generating pdf file from c# applications check this one .. Create PDF file from C# is explain the simple step by step methods to generate pdf file from c#.
- Edited by liam_web Friday, October 18, 2013 6:04 AM spell