How to print details view details?(pdf)
can i print detailsview details in pdf format? Example:in Details view i have user details,my requirement is print the userdetails.(just like printout)
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Dorababu MekaRank #457 · 5.5K reputationPosted May 31, 2011, 2:30 AM EDT
http://forums.asp.net/t/1611812.aspx
Posted May 31, 2011, 3:33 AM EDT
Step 2 : Put the Detailsview inside a Div.
Step 3 : From javascript, call the div and do window.print by using the below code.
var dv= document.getElementById('<%= Div1.ClientID %>');
var printWin = window.open('', '', 'width=500,height=500,toolbar=0,scrollbars=1,status=0,resizable=1');
printWin.document.write(dv.outerHTML);
printWin.document.close();
printWin.focus();
printWin.print();
printWin.close();
Step 4: Select your PDF printer and to print it.
hope this helps you.