Print Datagrid directly to Printer

Hi guys,

I have this datagrid displaying the results on the browser. I need to have a print function to print this datagrid directly to the printer.

Is this possible? Does anyone has any examples or existing components for me?

Thanks.


daveyeoAsked:
Who is Participating?
 
SystemExpertCommented:
Hi daveyeo

I found some good link for code to print datagrid

http://www.codeproject.com/aspnet/RussprintTemplates.asp

http://www.devx.com/tips/Tip/27626

second link's lgic is nice

put your datagrid in DIV tag and through javascript print it

thanks
0
 
bsdotnetCommented:
Use but you will see a print dialog box
    <script language=javascript>
        print();
    </script>
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.