944,031 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Marked Solved
  • Views: 497
  • ASP.NET RSS
Nov 3rd, 2009
0

Print?

Expand Post »
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; Nov 3rd, 2009 at 2:20 pm. Reason: Master Page...
Similar Threads
Reputation Points: 11
Solved Threads: 0
Junior Poster in Training
phoenix_dwarf is offline Offline
57 posts
since May 2009
Nov 3rd, 2009
0
Re: Print?
I'm currently using this piece of code but would really like it to work with a button:

ASP.NET Syntax (Toggle Plain Text)
  1. <a href="javascript:window.print()">Print Page(s)</a><br />
Reputation Points: 11
Solved Threads: 0
Junior Poster in Training
phoenix_dwarf is offline Offline
57 posts
since May 2009
Nov 3rd, 2009
0
Re: Print?
Well, got this solution:

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

Tnx anyway!
Reputation Points: 11
Solved Threads: 0
Junior Poster in Training
phoenix_dwarf is offline Offline
57 posts
since May 2009
Nov 4th, 2009
0
Re: Print?
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>
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ashtej is offline Offline
2 posts
since Nov 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: databinding one webform with another
Next Thread in ASP.NET Forum Timeline: Update.......





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC