Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing a web page
Message
 
À
08/12/2006 10:39:02
Bill Oeftering
Mainstreet Computers, Inc.
Belleville, Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01176074
Message ID:
01176213
Vues:
7
>Sorry for the newbie question. After searching dotnet help, websites etc…, I can’t seem to find out how to put a button on the web page that simply prints the page like the user chose the option in the browser.
>Thanks.

You basically have to use JavaScript to do this.

Something like this should work:
<input type="button" value="Print" onClick="window.Print();">
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform