Printing a web page from asp.net

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2008
Posts: 19
Reputation: jkdil33 is an unknown quantity at this point 
Solved Threads: 0
jkdil33 jkdil33 is offline Offline
Newbie Poster

Printing a web page from asp.net

 
0
  #1
Mar 31st, 2008
Hi,
I am using the following javascript code for printing a web page
but the webpage is not getting printed fully.Half page is not coming to the A4 sheet


url = "home.aspx"

printscript = "<script language='javascript'>" + "window.print('" + url + "', 'CustomPopUp', " + "'width=1000,height=800,left=0,top=0')" + "</script>"


ClientScript.RegisterStartupScript(Me.GetType(), "Printpage", printscript)



how can I solve it?Please help

Thankx in advance
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC