You must Sign In to post a response.
  • Category: JavaScript

    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
    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
    "Failure is the path of least persistence"

  • #761534
    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