开发者

Print ASP.NET Web Form [closed]

开发者 https://www.devze.com 2023-01-05 16:26 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this
Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 2 years ago.

Improve this question

I have a Web form, which just needs to be filled out and pri开发者_如何转开发nted. Can anyone help me with the Print button coding, please?


A client-side button should do the trick:

<input type="button" value="Print Form" onclick="window.print()" />


A quick search finds that there is a simple way to do this: window.print().


All you need is a clientside print button.

Something like:

<button onclick="window.print();">Print!</button>

This will do much the same as a user clicking file print on their browser.

0

精彩评论

暂无评论...
验证码 换一张
取 消