hi friends, please help me with a c# code to print a contents of a gridview and along with header and footer. please help me out .
check this
http://www.aspsnippets.com/Articles/Print-functionality-in-ASP.Net-GridView-control.aspx
And let me know if it works for you
i got this exception
htmlexception was unhandled by usercode
Control 'GridView1' of type 'GridView' must be placed inside a form tag with runat=server
Refer here
http://www.aspsnippets.com/Articles/Exception---Control-GridView1-of-type-GridView-must-be-placed-inside-a-form-tag-with-runatserver.aspx
now i got this
Microsoft JScript runtime error: Unable to get value of the property 'document': object is null or undefined
Rebind the GridView with data in the print event
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.