Print?

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: May 2009
Posts: 40
Reputation: phoenix_dwarf is an unknown quantity at this point 
Solved Threads: 0
phoenix_dwarf phoenix_dwarf is offline Offline
Light Poster

Print?

 
0
  #1
32 Days Ago
Hi i'm almost done with my project for our C# ASP.NET class but have just one thing left to do, and that is to print my datagrid view as is, with header included. Now i have absolutely no idea how to do this. I tried some javascript codes etc. but i'm getting nowhere. I'm filling my datagrid with a DataTable (coded myself). Any one have some suggestions?

Thnx in advanced!

Note: I'm using a master page for all my pages!
Last edited by phoenix_dwarf; 32 Days Ago at 2:20 pm. Reason: Master Page...
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 40
Reputation: phoenix_dwarf is an unknown quantity at this point 
Solved Threads: 0
phoenix_dwarf phoenix_dwarf is offline Offline
Light Poster
 
0
  #2
32 Days Ago
I'm currently using this piece of code but would really like it to work with a button:

  1. <a href="javascript:window.print()">Print Page(s)</a><br />
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 40
Reputation: phoenix_dwarf is an unknown quantity at this point 
Solved Threads: 0
phoenix_dwarf phoenix_dwarf is offline Offline
Light Poster
 
0
  #3
32 Days Ago
Well, got this solution:

http://www.dotnetcurry.com/(X(1)S(gw...ookieSupport=1

Tnx anyway!
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 2
Reputation: ashtej is an unknown quantity at this point 
Solved Threads: 0
ashtej ashtej is offline Offline
Newbie Poster
 
0
  #4
31 Days Ago
Hi..
PLZ check this

<a href="#" onclick="window.print()" style="border: 0;">
<img src="../images/printer-icon.jpg" style="border: 0;" width="83" height="70" alt="" /></a>
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC