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

Try it with javascript


i dnt knw javascript
can u provide me some code

Search Google.
I found this among many others.

function print()

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

It will print the current document contents.

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

Read post #4 again, click on the blue word : this

Have a look through this I've just done the same function and it helped alot.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.