You have a SQL query result, an Excel sheet or a delimited text file, and someone wants it as a tidy PDF by end of day. Pulling in a full report designer for that is overkill. ExportToPDF is a .NET assembly that turns those data sources into PDF files from a few lines of VB.NET, C# or C++ code.
Quick facts
- Version: 1.2.81
- Type: .NET assembly (ExportToPDF.dll) for Visual Studio .NET projects
- Languages: VB.NET, C#, C++
- Requires: .NET framework 2.0 or later
- Price: $79.99
- Editions: Single User and Multiple Users
- Trial: a demo-trial package with sample projects is available
What it does
ExportToPDF gives you a single API class with many adjustable properties. You point it at a data source, set the output path, tweak the formatting and call Convert(). It can be used from Windows Forms applications, ASP.NET sites or command-line tools.
Key features
Turn CSV, Excel, Access, text and DataTable data into PDF
The supported sources are CSV files, Excel spreadsheets, Access .mdb databases, delimited text files and .NET DataTable objects. You choose the source with the SourceType property.
Export a SQL Server query result as a formatted PDF
Fill a DataTable from your query, assign it to the export object and run the conversion. ExportToPDF only has to convert the DataTable, so you don't write any layout code for the table itself.
Choose how a messy Excel sheet is converted
For Excel files you name the sheet to convert and pick a conversion mode. Fast suits columns with uniform data. Detailed is slower but keeps columns that mix numbers, dates and text. You can also decide whether the first row becomes the column headers in the PDF.
Control how the PDF looks
The sample code sets grid lines (width and color), body font, font size and text color. It also sets column header fonts and colors, headers repeated on each page, title and footer text, and page margins. Page orientation can be portrait or landscape.
Split delimited text your way
For text files, the DataSeparatorChar property sets the delimiter. The default is Tab.
Screenshot

Who it's for
It suits .NET developers who need PDF output from data they already hold in a DataTable, spreadsheet or text file. It fits a Windows Forms utility, an ASP.NET page that offers a PDF download, or a command-line job. It is a code library, so it is not for people who want to convert files by clicking through a program.
Pros and cons
Pros
- A small API: set properties, then call Convert().
- Handles five common data sources.
- Detailed formatting control over fonts, colors, grids, margins, headers and footers.
- The trial package includes VB.NET and C# samples, plus ASP.NET web sample projects.
Cons
- Excel conversion handles one spreadsheet at a time.
- The Fast Excel mode is a poor fit for columns with mixed data types.
- It targets the older .NET framework (2.0 or later), and Visual Studio 2005 or later is named for the web sample.
- You write code to use it. There is no standalone interface.
What users say
A testimonial on the Rustemsoft product page reads: "This is an awesome product".
FAQs
Which data sources can I convert?
CSV files, Excel spreadsheets, Access .mdb databases, text files and .NET DataTable objects.
Can I convert more than one Excel sheet at once?
No. You convert one spreadsheet per run and name it with the SourceTableSheetName property.
How do I add it to my project?
In Visual Studio .NET, choose Project, then Add Reference, then Browse to the assembly. Then add the Rustemsoft.ExportToPDF namespace to your code, with Imports in VB.NET or using in C#.
Can I try it before buying?
Yes. A trial package with sample converter projects is available. It uses a trial build of the assembly.
Does it work in web applications?
Yes. It can be used from ASP.NET sites as well as Windows Forms and command-line tools.
System requirements
- .NET framework 2.0 or later
- Visual Studio 2005 or later for the ASP.NET web sample
- Listed operating systems: WinXP, WinNT 4.x, Windows 2000