• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 329
  • Last Modified:

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.


0
daveyeo
Asked:
daveyeo
1 Solution
 
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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now