Click here to Skip to main content
15,919,613 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
respected sir, my name is amit kumar srivastava i am a student, what is the code for print the document, anyone , plz help me
Posted

Try this [^]like which will lead you to such links:
Printing Using C#[^]
Printing in C#[^]
 
Share this answer
 
Hi Amit,

You can use below code on button click event to call java script function print()

<pre><script language="javascript" >

function print()
{
window.print();
}

</script>


 
Share this answer
 
Comments
Toli Cuturicu 23-Jul-10 4:49am    
Reason for my vote of 2
c# please (see tags)
Rajesh Sajjanar 27-Jul-10 2:07am    
Hi Toli , let me knoe what is wrong with the tag, as the question is not specific to use C# or Javascript, hence used javascript

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900