Export PDF Document to images
The sample demonstrates how to export PDF pages as images by PdfDocumentViewer Component.

XLS Report Silverlight
The sample demonstrates how to work with MarkerDesign in Silverlight via Spire.XLS.

XLS to PDF for C#, VB.NET
The sample demonstrates how to convert Excel workbook to PDF file via Spire.XLS.

How to Export Datatable to Excel through DataGridView
How to Export DataTable to Excel through DataGridView
Export DataTable to Excel can be very easy through Spire.DataExport (or Spire.Office). Furthermore, Spire.DataExport enables user to Export data to Excel through DataGridView. Through DataGridView users can preview and modify data information before exporting.
Download Spire.DataExport (or Spire.Office) with .NET Framework together. Only 2 Simple steps you can finish the whole datatable to Excel exporting process.
Step 1, Load Data Information
In this step, Spire.DataExport will help you load Data information from your datatable. After you put in your data source and SQL command, you can preview and modify data information in DataGridView area.
private void btnLoad_Click(object sender, EventArgs e)
{
using(OleDbConnection oleDbConnection = new OleDbConnection())
{
oleDbConnection.ConnectionString = this.textBox1.Text;
OleDbCommand oleDbCommand = new OleDbCommand();
oleDbCommand.CommandText = this.textBox2.Text;
oleDbCommand.Connection = oleDbConnection;
using(OleDbDataAdapter da = new OleDbDataAdapter(oleDbCommand))
{
DataTable dt = new DataTable();
da.Fill(dt);
dataGridView1.DataSource = dt;
}
}
}
Effect Screenshot

Step 2, Set Export into Excel
Spire.DataExport allows user to export data into most popular file formats including MS Excel, MS Word, HTML, PDF, XML, CSV, DBF, DIF, etc. Now, in this step you should give an order to Export Data into Excel file format. Spire.DataExport will create a new MS Excel Worksheet for storing Data which exported out. You can rename the excel file in this step either.
private void btnRun_Click(object sender, EventArgs e)
{
Spire.DataExport.XLS.CellExport cellExport = new Spire.DataExport.XLS.CellExport();
Spire.DataExport.XLS.WorkSheet worksheet1 = new Spire.DataExport.XLS.WorkSheet();
worksheet1.DataSource = Spire.DataExport.Common.ExportSource.DataTable;
worksheet1.DataTable = this.dataGridView1.DataSource as DataTable;
worksheet1.StartDataCol = ((System.Byte)(0));
cellExport.Sheets.Add(worksheet1);
cellExport.ActionAfterExport = Spire.DataExport.Common.ActionType.OpenView;
cellExport.SaveToFile("20110223.xls");
}
Effect Screenshot


Spire.DataExport Program Guide Content
- How to Export DataTable to Excel
- How to Export DataTable to HTML
- How to Export Datatable to PDF
- How to Export Datatable to DBF
- How to Export Datatable to CSV
- How to Export Datatable to RTF
- How to Export Data from Listview to Excel with C#/VB.NET
- How to Export Data from Listview to PDF with C#/VB.NET
- How to Export Data from Listview to HTML with C#/VB.NET
- How to Export Data from Listview to RTF with C#/VB.NET
- How to Export Data from Listview to XML with C#/VB.NET
- How to Export Data from Listview to CSV with C#/VB.NET
Doc MailMerge Silverlight
The sample demonstrates how to work with MailMerge in Silverlight via Spire.Doc.

How to Use PDF Converter to Encrypt PDF Document
How to Encrypt PDF Document
1. Register to Download Spire PDF Converter (Free Beta Version) and Run it.

2. Choose a Document.

3. Encrypt PDF Document



4. Convert Document

How to Convert HTML to PDF
Why Convert HTML to PDF?
How to Convert HTML to PDF?
Step 1, Install and Run Spire PDF Converter

Step 2, Add HTML files

Step 3, Choose output file folder and Run conversion process



How to Convert Doc to PDF
Why Convert Doc to PDF?
How to Convert Doc to PDF?
Step 1, Install and Run Spire PDF Converter

Step 2, Choose Doc file


Step 3, Start Converting

How to Use Spire PDF Converter
Step 1, Download Spire PDF Converter here and install
Step 2, Run Spire PDF Converter

Step 3, Add Files to Converter

Step 4, Start conversion process

