473,396 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Implement a Print button on ASP.NET webpage.

I would like to implement a button which will, upon click, print the current
webpage.

I have no idea where to begin, I think I need some sort of client scripting
but I suppose there's a simple solution for this...
Kind regards,
Jurjen de Groot
Netherlands.
Nov 17 '05 #1
2 8153
hi

you can use basic javascript command "window.print" but that is just like
calling print from the browser print command.

if you want some more advanced printing functionality(Like predefining print
type/ landscape or portrait etc.) then you have to use some activex control
on your web page

HTH
Vaibhav
"Jurjen de Groot" <in**@gits-online.nl> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I would like to implement a button which will, upon click, print the current webpage.

I have no idea where to begin, I think I need some sort of client scripting but I suppose there's a simple solution for this...
Kind regards,
Jurjen de Groot
Netherlands.

Nov 17 '05 #2

<input type="button" id="btnPrint" onclick="window.print
()" value="Print">
-----Original Message-----
I would like to implement a button which will, upon click, print the currentwebpage.

I have no idea where to begin, I think I need some sort of client scriptingbut I suppose there's a simple solution for this...
Kind regards,
Jurjen de Groot
Netherlands.
.

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: John | last post by:
I am having a problem with window.print in a popup window. I am creating 2 popup windows both with a print button in them, 1 works the other doesn't. Code runs in a javascript function on a...
3
by: Mariame | last post by:
Hi All, How to add a print button to a crystal report??? Thx & Regards
22
by: stephen | last post by:
I have created an order form that users javascript to create a new html document when the customers clicks the "print page" button. Once the new document has been created it then prints the...
1
by: kumar | last post by:
Hello every one, Can any one help me how can i print values of my webpage with just a button in the webpage. From http://www.developmentnow.com/g/8_0_0_0_0_0/dotnet-framework-aspnet.htm ...
3
by: nektir | last post by:
i've never used a root link like this with a button, so perhaps this is why i've never encountered a problem.. but how would one fix this: <input name="Go to this webpage" type="button" value="Go...
2
by: DhanyaSandeep | last post by:
I have a customer biling page in Asp.net.I want to print that webpage on a button click.How can I do that? I tried with Print Document, but the result is that when i clicked the button the printer...
1
by: chaitanya02 | last post by:
Hi, Do anyone know how to add an print or scan button on a webpage-asp. I have a webpage like a agreement page, which when an user clicks should agree to download something. How can I add a...
3
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
I have a asp.net page, it uses js to print in IE. It always has the prompting user window appear. I have tried: <input onclick="document.all.WebBrowser.ExecWB(6,6)" type="button"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.