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
Jes Sie
742
1.2k
282.1k
How to change page orientation in jquery
Apr 23 2020 10:51 PM
Hello everyone,
I found this beautiful jquery to print pages from html:
<script>
function
PrintPanelAttachment() {
var
panel = document.getElementById(
"<%=pnPrintAttachment.ClientID %>"
);
var
printWindow = window.open(
''
,
''
,
'height=1000,width=900'
);
printWindow.document.write(
'<html><head><title>Dhipaya Insurance Program</title>'
);
printWindow.document.write(
'</head><body >'
);
printWindow.document.write(panel.innerHTML);
printWindow.document.write(
'</body></html>'
);
printWindow.document.close();
setTimeout(
function
() {
printWindow.print();
}, 500);
return
false
;
}
</script>
How do we change the page orientation from portrait to landscape and vise versa? Also, is it possible to add CSS link? Thank you all for any help.
Cheers.
Reply
Answers (
4
)
Unable to fetch the selected filtered records in kendo
How to use dynamic chart using jquery?