|
-
Mar 4th, 2004, 03:26 AM
#1
Thread Starter
Junior Member
Printing the current page using a Print button
Hi, im a newbie in .NET Technology, I would like to know how can I program a certain page to print its current page by using a Print button. Also I would like to hide the Print button on the print-out. Thanks, pls help me.
-
Mar 4th, 2004, 04:13 AM
#2
Are you taking about taking a picture of the screen or printing a ASP.Net page?
You need to be more clear on what you want to get a decent answer...
Tips:
- Google is your friend! Search before posting!
- Name your thread appropriately... "I Need Help" doesn't cut it!
- Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
- Allways Include the Name and Line of the Exception (if one is occuring!)
- If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)
If you think I was helpful, rate my post  IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous
-
Mar 4th, 2004, 04:56 AM
#3
Thread Starter
Junior Member
Yes, that's abolutely I would like to do. Actually I have done it using this code in javascript:
if (window.print)
window.print();
Now what I would like to do is hide the buttons on the page, set its margin on the print-out and other settings as well.
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|