p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 1.0 and 1.1 Basics (http://p2p.wrox.com/forumdisplay.php?f=60)
-   -   how to print (http://p2p.wrox.com/showthread.php?t=10480)

suzila March 13th, 2004 12:39 AM

how to print
 
hello,

i'm a new beginner...
i've search on the web - how to make a print function in my system, and luckily i've found it..

one of the statement:

1. Add a PrintDocument component..You can get from toolbox..


actually i dont know where it is..at my toolbox there is nothing similiar with that component...pls help me...(i'm using visual studio.net)
thank you


katsarosj March 14th, 2004 10:42 AM

This is for windows forms, not asp applications.

J

planoie March 15th, 2004 04:30 PM

To control browser printing you are left up to the devices of JavaScript and the browser document object model. The .NET print functionality won't work in the browser.

melvik March 16th, 2004 01:51 AM

Just to remind u
Code:

document.execCommand('Print');
in JavaScript.
Please keep in mind that it'll print entire page not only a spesial part, so if u need to print spesial part of ur page u'd better to open that part in a new window & ...
HTH.

Always:),
Hovik Melkomian.


All times are GMT -4. The time now is 02:02 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.