DataTableToPDF is a DLL library that can be distributed with your own software projects and used to export any DataTable to a PDF file. It enables you to customize the document's title, as well as include an image logo and totals.
After downloading and unpacking the archive, you need to add a reference to the DataTableToPDF.dll library in your Visual Studio project, an operation that any programmer should be familiar with. It is worth noting that you also need to target .NET Framework 4.0 or above.
DataTableToPDF allows you to set the output document's title and export path, apply a logo by linking to a local or web-hosted image file, as well as include totals and exclude certain columns.
The bundled documentation is meant to showcase how the library can be used to your advantage, as explanations are provided for all the supported input parameters.
In addition, a couple of code examples are included, which can help programmers avoid a trial and error approach when attempting to implement the library. For testing purposes, you can create a dummy DataTable and use it to make sure you understand how to extract data and insert various elements into the generated report.
The first code example enables you to extract data, set the name and location of the output PDF file, as well as provide a title. If an empty string is returned, the operation has been successful.
The second sample demonstrates how to generate a document that includes a logo and totals, and instructions are provided for excluding certain total columns
||Free to try
Windows Server 2008