Close





 
Monday, 05 March 2012 07:29

Export PDF Document to images

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

Download PDFViewer.pdf

Tuesday, 30 August 2011 09:21

XLS Report Silverlight

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

Download template xls file.

Download data table file.

Download merged result file.

Monday, 25 July 2011 09:12

XLS to PDF for C#, VB.NET

The sample demonstrates how to convert Excel workbook to PDF file via Spire.XLS.

Get XLS-to-PDF.pdf.

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.

 

[C#]
	
        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.

 

[C#]
        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

 

More about Spire.DataExport

Download Spire.DataExport

Purchase Spire.DataExport

Tuesday, 12 July 2011 06:48

Doc MailMerge Silverlight

The sample demonstrates how to work with MailMerge in Silverlight via Spire.Doc.

Download template doc file.

Download merged result file.

Spire PDF Converter enables users to encrypt PDF documents when converting to PDF. Users can set own password and user password. Also, users can set individual security permissions, for example, print, edit and so on.

How to Encrypt PDF Document

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

2. Choose a Document.

Click Add files, select the document you want to convert and encrypt.

3. Encrypt PDF Document

Click Encryption button and then set password and permissions.
Set Own Password
Set User Password
Permissions

4. Convert Document

Click Encryption to confirm. Save the document in a specific path by clicking browse. Then, Click Convert.
Now, the document has been converted to PDF and encrypted.
Wednesday, 18 May 2011 09:59

How to Convert HTML to PDF

Why Convert HTML to PDF?

PDF (Portable Document Format), which often used for printing document is an open standard for creating and sharing document. It is one of the most popular file formats because it retains the same format no matter what browser is used to view it and without any loss when transfer from one system to another. So, we usually convert different format files such as Doc, Text, CSV, XML and HTML to PDF. Here is one of the easiest and fastest solutions.

How to Convert HTML to PDF?

Only 3 simple steps, you can finish a whole process of HTML to PDF conversion by using Spire PDF Converter.
Spire Free PDF Converter can help you finish conversion
Spire PDF Converter Pro can help you finish conversion and encrypt & Watermark

Step 1, Install and Run Spire PDF Converter

Step 2, Add HTML files

Spire PDF Converter enables user add single HTML file or multiple HTML files. And support add file folder.

Step 3, Choose output file folder and Run conversion process

Spire PDF Converter is one of the fastest HTML to PDF converting solutions. By using Spire PDF Converter, you can encrypt or add watermark to output PDF files.

Free Download Spire PDF Converter(Free/Pro) Right Now!
Monday, 16 May 2011 10:04

How to Convert Doc to PDF

Why Convert Doc to PDF?

PDF documents are not good for designing and editing content but without any information and appearance loss, they are very safe and easy to transfer from one system to another. On the other hand, Microsoft Word document (.doc file) is the most suitable document for designing and editing. So, the most popular way to create PDF documents is to design and create content in MS Word document and then convert the file from Doc to PDF.

How to Convert Doc to PDF?

Only 3 simple steps, you can finish a whole process of Doc to PDF conversion by using Spire PDF Converter.

Step 1, Install and Run Spire PDF Converter

Step 2, Choose Doc file

Click button “Add files” to select Doc files which you want to convert. Spire PDF Converter supports batch conversion which means you can add multiple Doc files.

Step 3, Start Converting

Choose output file folder and click button "Convert"
Free Download Spire PDF Converter Right Now!
Friday, 13 May 2011 10:24

How to Use Spire PDF Converter

Spire PDF Converter is a PDF conversion program which can convert office files such as Doc, Excel, HTML, Text and XML to PDF format. Below is a simple instruction of 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

Spire PDF Converter allows user to add single file, multiple files, whole file folder into conversion list. Spire PDF Converter offers powerful functions which enable uses to add watermark and encrypt output PDF document.

Step 4, Start conversion process

Spire PDF Converter enables user to set output address for output files. And once the conversion process finished, user can click “Open Folder” button to check the status.
Free Download Spire PDF Converter Right Now!
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>
Page 1 of 17