Login
Register
Close
Articles
Technology News
All Articles
Submit Guest Post
Tools & Utilities
Code Converter
Forum
Learn
Tutorials
Interview Experience
Practice Tests
Freelancers
Services
Software Development
SEO & Digital Marketing
IT Companies
Login
Register
Articles
Technology News
All Articles
Submit Guest Post
Tools & Utilities
Code Converter
Forum
Learn
Tutorials
Interview Experience
Practice Tests
Freelancers
Services
Software Development
SEO & Digital Marketing
IT Companies
Discussion Forums
.NET
JavaScript
You must
Sign In
to post a response.
Category:
JavaScript
12 Aug 2015 04:25
rishe
Joined:
12/08/2015
Level:
Bronze
Points:
41
Points:
2
Print div and iframe
hi all
i am using iframe and div in dialogbox
inside the div i have added a button and an image
in iframe i am calling a aspx page
how to print both the div and iframe on button click event
#761525
12 Aug 2015 05:26
Nirav Lalan
Joined:
06/04/2012
Level:
Gold
Points:
4230
Points:
2
Hello Rishe,
Go through the below link. There is a solution for you :
http://www.webdeveloper.com/forum/showthread.php?152798-Solution-to-print-a-div-and-iframe-content-with-single-print
Hope this will solve your problem.
Regards,
Nirav Lalan
DNS Gold Member
"If you can dream it, you can do it."
#761534
12 Aug 2015 23:56
naveensanagasetti
Joined:
03/05/2013
Level:
Gold
Points:
15822
Points:
3
Hi,
The best way to print the iframe, div... by using client side scripting, there is a method called as
Window.Print();
you can open your iframe or div in new window and use the above lines of code in loading time, this is the best way to take print.
Refer below sample link for your reference.
http://bugfree.dk/blog/2009/12/17/printing-iframe-content-using-javascript/
Hope this will helpful to you..
--------------------------------------------------------------------------------
Give respect to your work, Instead of trying to impress your boss.
N@veen
Blog : http://naveens-dotnet.blogspot.in/
Sign In
to post your comments
Submit New Thread
Return to
Return to Discussion Forum
Top Contributors
Today
Last 7 Days
aleena joki
(2)
more...