This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

[closed] Unable to print form


  1. grg
    Member

    Hello,

    I have a rather long list of questions posted on my web site. I created the form page by the "Integrated Form Code" in the Machform Admin area. The form looks great and works fine.

    I'm running into a problem though: users can't print the page entirely. When you click on file, print it prints out one page (which contains the first 10 to 15 questions, depending on the printer used) correctly. The page has a lot more questions that won't print out at all, though.

    I have a feeling this has something to do with the <iframe> tag, but I'm not really sure.

    Any help would be greatly appreciated. Once again, I'd like to let Appnitro know that this really is great software!!! Thanks.

    Posted 16 years ago #
  2. yuniar

    Hello grg,

    That looks like the problem, iframe.
    Perhaps an alternative solution for this is to put a "Print" button on your page which print the content of the iframe. So your user could use the button instead of "File->Print".

    I found a code in coding forum:
    http://www.codingforums.com/showthread.php?t=257

    Here's the code for the button and printing the content of iframe:

    <script type="text/javascript">
    function zPrint(oTgt)
    {
    	oTgt.focus();
    	oTgt.print();
    }
    </script>
    
    <body>
    	<iframe name="myFrame" id="myFrame" width="600" height="400"
    src="http://www.example.com/frame.html"></iframe>
    	<input type="button" value="Print IFRAME" onclick="zPrint(myFrame);" />
    </body>

    Copy the script portion and the button.

    I hope that helps.


    MachForm Founder

    Posted 16 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.