|
|
 |
| ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.1 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|

October 5th, 2005, 01:32 AM
|
|
Friend of Wrox
|
|
Join Date: Aug 2004
Location: , , India.
Posts: 547
Thanks: 0
Thanked 1 Time in 1 Post
|
|
URGENT HELP WITH PRINTING!!!!
Hi Friends
I need some help with printing. I am developing a web-based application, wherein there is a section called User Account, which shows the user's purchase details for the current month in a DataGrid.
Now I have to give a print option to the user so that he can print the details of the DataGrid. Please help me! (How to print only the contents of a datagrid, not the complete page)
Thanks
MIke
__________________
Regards
Mike
|

October 5th, 2005, 03:58 AM
|
|
Registered User
|
|
Join Date: Jul 2005
Location: Kuala Pilah, Negeri Sembilan, Malaysia.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi mike_remember,
Here is sample code. U may have a try.
function CallPrint(strid)
{
var prtContent = document.getElementById(strid);
var WinPrint = window.open('','','letf=0,top=0,width=1000,height= 1000,toolbar=0,scrollbars=1,status=0');
WinPrint.document.write prtContent.innerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
WinPrint.close();
}
Html code is :
<input class="button2" id="btnPrint" onclick = "javascript:CallPrint('divPrint')" type="button" value="Printable Version" runat="server">
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |