944,047 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 4795
  • C# RSS
Oct 15th, 2009
0

print page in c# .net

Expand Post »
hi,
can any one tell me how to i print a page in c#.net.
actually i need it to print receipt in my project.
Help me.
Thanx in advance
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
kool.net is offline Offline
28 posts
since Oct 2009
Oct 15th, 2009
-2
Re: print page in c# .net
Try it with javascript

window.print();
Reputation Points: 9
Solved Threads: 13
Junior Poster in Training
chandru7 is offline Offline
72 posts
since Sep 2009
Oct 15th, 2009
0
Re: print page in c# .net
i dnt knw javascript
can u provide me some code
Reputation Points: 10
Solved Threads: 0
Light Poster
kool.net is offline Offline
28 posts
since Oct 2009
Oct 15th, 2009
0
Re: print page in c# .net
Search Google.
I found this among many others.
Reputation Points: 2035
Solved Threads: 645
Senior Poster
ddanbe is offline Offline
3,740 posts
since Oct 2008
Oct 15th, 2009
-2
Re: print page in c# .net
function print()
{
window.print();
}

<input type=button id=printscreen onclick="print();">

It will print the current document contents.
Reputation Points: 9
Solved Threads: 13
Junior Poster in Training
chandru7 is offline Offline
72 posts
since Sep 2009
Oct 15th, 2009
0
Re: print page in c# .net
i m working on windows application , then where is the code of button.
i think its print the full document of page including buttons, but i dnt want to print buttons of page. pls. help
Reputation Points: 10
Solved Threads: 0
Light Poster
kool.net is offline Offline
28 posts
since Oct 2009
Oct 15th, 2009
2
Re: print page in c# .net
Read post #4 again, click on the blue word : this
Reputation Points: 2035
Solved Threads: 645
Senior Poster
ddanbe is offline Offline
3,740 posts
since Oct 2008
Apr 20th, 2011
0
Re: print page in c# .net
Have a look through this I've just done the same function and it helped alot.
Reputation Points: 8
Solved Threads: 19
Junior Poster
ChrisHunter is online now Online
191 posts
since Feb 2011

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 C# Forum Timeline: RichtextBox changing selected text's font only
Next Thread in C# Forum Timeline: Summing values in a list





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


Follow us on Twitter


© 2011 DaniWeb® LLC