Logo 
Search:

Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

Print contents of datagrid

  Asked By: Ira    Date: Jan 02    Category: Asp.net    Views: 1846
  

When i have already binded the datagrid with information. How can I
print the contents out. Is there a way in vb .net. Or can I export
the contents to excel for print.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Davi Costa     Answered On: Jan 02

I don't know if I understand your question, but if you want to print  the datagrid  you can launch the Print dialog with a javascript line of code [window.print();]
This works exactly as when you press print on the browser. Maybe you have some parts of the page you don't want to print (header, nav bar, etc). You can use css to hide that content in the time of printing

Here you have an article about css media type
http://www.webreview.com/style/2000/01_07_00.shtml

 
Didn't find what you were looking for? Find more on Print contents of datagrid Or get search suggestion and latest updates.




Tagged: