0

I'm developing an ASP.Net MVC2 project. What I need is that I want to print the view when user clicks a link.

2 Answers 2

1

You could use Javascript on a link

<a href="javascript:window.print();">Print</a>
Sign up to request clarification or add additional context in comments.

Comments

0

In combination with the answer from @M.Shuwaiee you can also take advantage of creating a style sheet specifically for the printer so your view can render more accurately for a paper layout.

http://www.webcredible.co.uk/user-friendly-resources/css/print-stylesheet.shtml has some information on this.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.