Assuming that you want something related to asp.net(from tags), if you want to print data in gridview then you can do like this:
Add the following java script in the head section of the page:
<script>
function doPrint()
{
var prtContent = document.getElementById('<%= GridView1.ClientID %>');
prtContent.border = 0; //set no border here
var WinPrint = window.open('','','left=100,top=100,width=1000,height=1000,toolbar=0,scrollbars=1,status=0,resizable=1');
WinPrint.document.write(prtContent.outerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
WinPrint.close();
}
</script>
Add the asp.net button control like the following:
<asp:button id="btnPrint" runat="server" text="Print" onclientclick="doPrint()" xmlns:asp="#unknown">
for more info refer this:
http://www.aspsnippets.com/Articles/Print-functionality-in-ASP.Net-GridView-control.aspx[
^]
help this helps :)