print page in c# .net

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2009
Posts: 26
Reputation: kool.net is an unknown quantity at this point 
Solved Threads: 0
kool.net kool.net is offline Offline
Light Poster

print page in c# .net

 
0
  #1
Oct 15th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 45
Reputation: chandru7 is an unknown quantity at this point 
Solved Threads: 8
chandru7 chandru7 is offline Offline
Light Poster
 
-2
  #2
Oct 15th, 2009
Try it with javascript

window.print();
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 26
Reputation: kool.net is an unknown quantity at this point 
Solved Threads: 0
kool.net kool.net is offline Offline
Light Poster
 
0
  #3
Oct 15th, 2009
i dnt knw javascript
can u provide me some code
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 1,922
Reputation: ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of 
Solved Threads: 275
ddanbe's Avatar
ddanbe ddanbe is online now Online
Posting Virtuoso
 
0
  #4
Oct 15th, 2009
Search Google.
I found this among many others.
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 45
Reputation: chandru7 is an unknown quantity at this point 
Solved Threads: 8
chandru7 chandru7 is offline Offline
Light Poster
 
-2
  #5
Oct 15th, 2009
function print()
{
window.print();
}

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

It will print the current document contents.
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 26
Reputation: kool.net is an unknown quantity at this point 
Solved Threads: 0
kool.net kool.net is offline Offline
Light Poster
 
0
  #6
Oct 15th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 1,922
Reputation: ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of 
Solved Threads: 275
ddanbe's Avatar
ddanbe ddanbe is online now Online
Posting Virtuoso
 
1
  #7
Oct 15th, 2009
Read post #4 again, click on the blue word : this
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Reply With Quote Quick reply to this message  
Reply

Tags
.net, c#, print

Message:


Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC