TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
salim
NA
23
0
print aspx page
Sep 10 2008 8:07 AM
hello
i am able to print a aspx page with below code ,when i click print button then at very first a window open(actually this is the window which to be print ) but here this is not so good to open a window so how we give a print command direct to a page
function print_bill(eid)
{
var area=document.getElementById(eid);
var pwindow=window.open("","","scrollbars=1,menubar=1,status=0,resizable=0");
var pwindow.document.write('<LINK href="finalucg.css" type="text/css" rel="stylesheet">' );
//pwindow.document.write("scrollbars=1,menubar=1,status=0,resizable=0");
pwindow.document.write(area.outerHTML);
pwindow.document.close();
pwindow.focus();
pwindow.print();
pwindow.close();
}
Reply
Answers (
2
)
how to refresh my web page using java script
how to play flv(flash) files on firefox?