GridView Printing

ASP.Net 2.0 GridView Printing Solution

GridView Printing
GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing
GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing GridView Printing
GridView Printing
 

Print GridView From ASP.Net 2.0

Gridview Printing Code


The GridView Printing tool works with Microsoft SQL or Access data sources, with data source parameters being passed as Character, Integer or DateTime values.

To Use The GridView Printing Tool

GView.Print(SqlDataSource1, GridView1, "Reports\GridViewReport.rdlc",
"GridViewDataset_Products", "Reports.pdf")

Where:  
SqlDataSource The name of the Data Source control that GridView takes its data from. SQLDataSource or AccessDataSource.
GridView1 The name of the GridView control.
Reports\GridViewReport.rdlc The pathname of the Report Viewer for displaying the GridView.
GridViewDataset_Products The DataSet name used for displaying the fields. Taken from the rdlc file.
Report.pdf/Report.xls The name and type of report you want. If the suffix is ".pdf" and Adobe pdf report is produced. If the suffix is ".xls" a Microsoft Excel spreadsheet is produced.

LIVE DEMO


Order your copy of The GridView printing tool now here

GridView Print


'GridViewPrint.dll has enabled the development of the printed reports our technologists require in the format they choose.'

Richard Steventon - Head of Medical Engineering, Royal Shrewsbury Hospital, UK


'Fantastic Product simple implementation'

Michael Sonntag - CEO, Ashbrooke Quality Assurance Ltd, Canada



GridView Printing

Live Demonstration

Click here for Live Demo

The following is the code behind file for the default page of the live demonstration.


Visual Basic

Imports GridViewPrint GridView Printing Partial Class _Default
  Inherits System.Web.UI.Page GridView Printing Protected Sub Button1_Click(ByVal sender As Object,
ByVal e As System.EventArgs) Handles Button1.Click   GView.Print(SqlDataSource2,GridView1,
"Reports/GridViewReport.rdlc", "GridViewDataset_Products", "Report.pdf")
End Sub

GridView Printing

Protected Sub Button2_Click(ByVal sender As Object,
ByVal e As System.EventArgs) Handles Button2.Click   GView.Print(SqlDataSource2,GridView1,
"Reports/GridViewReport.rdlc", "GridViewDataset_Products", "Report.xls")
End Sub



C#


using GridViewPrint;

public partial class _Default : System.Web.UI.Page
 {
   protected void Button1_Click(object sender,
EventArgs e)
   {
   GView.Print(SqlDataSource2, GridView1,    "Reports/GridViewReport.rdlc",    "GridViewDataset_Products", "Report.pdf");
 }
}

GridView Printing


Structure of demonstration website

Click here to view the demonstration website.

Valid HTML 4.01 Transitional

Valid CSS!

GridView Printing, 1st Floor, 14 The Square, Shrewsbury, Shropshire. SY1 1LH
2007 © Copyright All rights reserved.