Printing in Frames

Hi,
I am not sure if i can post this question in this forum. I am a Java developer but this is issue is related to HTML Frames. I have three HTMLs as given below
"frame-left.html"
<html>
<head>
</head>
<script>
function myprint() {
window.parent.print();
</script>
<body>
<font size=20 color="red">LEFT</font><br>
<input type="button" value="My Print" onclick="myprint()"/>
</body>
</html>"frame-right.html"
<html>
<head>
</head>
<body>
<font size=20 color="black">Right</font>
</body>
</html>"MainPage.html"
<frameset border="0" frameborder="0" framespacing="0" cols="550,*">
<frame src="frame-left.html" name="frame1">
<frame src="frame-right.html" name="frame2">
</frameset>In MainPage.html, I have frameset with frame-left.html in left and frame-right.html in right. I have a window.print() function in frame-left.html. When i click the "MY Print" button button. It just prints the contents in Left frame. But I need to print whole page (left and right). Please guide me to resolve this issue or if this is not the right forum, direct me to the right one. Thank you in advance
Edited by: 990140 on Feb 25, 2013 4:33 AM

Hi, I don't see how this is related to Java. Find a HTML/Javascript forum to post your question.
I'm locking this thread.

Similar Messages

  • I'm trying to print multiple frames from a website onto separate pages.

    Firefox has this option on OSX (each frame on separate page), but safari seems to lack such an option.
    I need to print multiple frames (invoices from zencart) each on separate pages. When I try to print with Safari it will either try and print the selected frame, or it will print all the frames as it's laid out on the page (all printed on one page). Am I missing this option somewhere? Is there an extension I can try (already tried print plus to no avail)?
    Thanks for all the help!

    Wasn't aware of that, I'm trying to disable Full Screen completely in all Apps on my Lion.

  • How Do I Print Each Frame Separately in the new Firefox

    Before the recent Firefox update, in the print screen used to be an option to print each frame separately. Now, that option is gone. Does anyone know how to have it print each frame separately in the new Firefox? I work with a webpage where if I try to print, the first page prints, but the others are all blank. In the past, selecting each frame separately fixed this issue.

    Hi,
    You can try to [https://www.mozilla.org/en-US/firefox/new/ update Firefox] to check. You can also right-click on the page > '''This Frame''' > '''Print this frame'''.
    [https://support.mozilla.org/en-US/kb/fix-printing-problems-firefox?e=sph&redirectlocale=en-US&as=s&s=printing&r=0&redirectslug=Firefox+prints+incorrectly Printing problems]
    [http://kb.mozillazine.org/Problems_printing_web_pages Problems printing web pages]
    If the problem persists, you can consider the [https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems Reset Firefox] feature via '''Help''' ('''Alt''' + '''H''') > '''Troubleshooting Information'''.
    (To revert to the previous profile you were using, close the new profile (i.e. exit Firefox), start Firefox and choose the '''Default User''' profile. While the [https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles Profile Manager] is open, you can also delete the newly reset profile (the one containing random numbers), or the former profile, as the case may be). If the reset is okay, it would be a good idea to delete the old profile as otherwise it would be left intact with the previous data until deleted.
    [https://support.mozilla.org/en-US/kb/Managing-profiles Managing profiles]
    [https://support.mozilla.org/en-US/kb/Profiles?s=profile&r=2&e=sph&as=s Profiles Howto]

  • Print Specific Frames and Dynamic XML content

    Hello, I am trying to print specific frames of my Flash movie
    with the dynamic text loaded from an XML file. The code below only
    prints the current frame I am on and does not print the XML text.
    The dataOK that is commented out is a function I have before that
    loads the XML content. The XML content is loaded to dynamic text
    boxes. Any help on this would be greatly appreciated.

    I am still having difficulty loading the XML data and the
    frameNum parameter does not seem to work. Argghhhh....
    function printTut(myevent:MouseEvent):void{
    var myPrintJob:PrintJob = new PrintJob();
    var mySprite:Sprite = new Sprite();
    var printArea:Rectangle = null;
    var options:PrintJobOptions = null;
    var frameNum:int = 2;
    mySprite.addChild(stage);
    mySprite.rotation=90;
    mySprite.scaleY=.80;
    mySprite.scaleX=.80;
    myPrintJob.start();
    myPrintJob.addPage(mySprite,printArea,options,frameNum);
    myPrintJob.send();
    print_btn.addEventListener(MouseEvent.CLICK,printTut);

  • Took a video rather than still pic by mistake.  How do I print one frame?

    Took a video by mistake instead of a single pic.  How do I print one frame?

    There are apps such as Video 2 Photo (I haven't tried it) that apparently allow you to extract frames from a video

  • Print a frame

    does anyone has some sample code to be able to print a frame that is showing on the screen (i work with a windows system)

    hi,
    first of all you would have to create an image of your frame.
    This can be done using the Robot-class like this:Dimension loc = getLocation();
    Dimension size = getSize();
    Rectangle rec = new Rectangle (loc.x, loc.y, size.width, size.height);
    BufferedImage im = new Robot().createScreenCapture (rec);Graphics g = im.getGraphics();
    The last line gives you the Graphics of the image of the frame.
    (If you want to save the image on disk check out this thread: http://forum.java.sun.com/thread.jsp?forum=31&thread=277491).
    Next you have to send the image to the printer. I, however, have no experience with this but find a forum-thread which should help you out:
    http://forum.java.sun.com/thread.jsp?forum=20&thread=28699
    hope this helps,
    Stijn

  • Printing a frame

    Is it possible to print a frame from a video? Is the resolution too low? I have seen photos from video, but am not sure how it is done.

    It is possible, but it is mostly used to share with other programs such as keynote or other application. or used as a still frame in the movie. The resolution isn't the same as taking a picture. Karsten or Appleman posted directions not long ago.

  • Layout Question - How to print a frame on the bottom of the last page ?

    I have a summary frame for my report. I want to print the summary information at the bottom of the last page of the report. Currently depending on the data, the summary frame prints anywhere on the last page. How do I make sure it prints exactly at the bottom of the last page (just the last page).
    Thanks in advance.

    You might like to take a look at the following threads:
    Last frame with last record of proceding repeating frame
    Re: How to capture a keystroke - including control chars?

  • Formatting - How to print a frame on the bottom of  the last page ?

    I have a summary frame for my report. I want to print the summary information at the bottom of the last page of the report. Currently depending on the data, the summary frame prints anywhere on the last page. How do I make sure it prints exactly at the bottom of the last page.
    Thanks in advance.

    Hello,
    I know this is an old post, but I have the same problem. I am unable to access the examples for Note.252881.1 (corrupted file). May I impose on you to send me examples via e-mail? If this is not possible can you point me in a direction where there is "good" documentation on frame manipulations? What I've found on metalink, otn, internet, etc. haven't been too forthcoming.
    Thank you.

  • Print window frame too big

    Now that I'm running Firefox 4.0.1 (on a Vista 64-bit PC), often when I want to print a web page, the frame around the Windows Print box is too big to fit the screen. The buttons that are critical for controlling print functions, and in particular the print command button itself, lie below the Taskbar, out of sight and unreachable in spite of all attempts to reposition the window using the mouse.
    I've checked my screen resolution and it's right for my monitor, unchanged since previous versions of Firefox.
    I know I can print by hitting Enter on the keyboard, but it's always taking a chance because, unable to see any buttons, I can't confirm that the settings are as I want them to be.
    Is there a solution?

    I am trying to resolve a similar problem on a Toshiba laptop running Vista. Dialog boxes are being displayed that fill the entire screen truncating the OK, Cancel and Apply buttons that should appear at the bottom of the dialog box. This is happening on all contol panel and games settings dialog boxes. I have tried the Toshiba zoom settings (FN+Space), but this has not foxes the problem.

  • Why can i only print current frame in an email?

    Why can I only print the current frame of an email?

    Sophie Hubble which Adobe software or service is your inquiry in reference too?

  • Create a print button to print one frame

    I am trying to create a print button on the last frame that will allow the user to print just that frame.  I've tried using the printjob object, but all that I can get to happen is print a blank sheet of paper.  Here is the code that I have so far:
    function printScore(event:MouseEvent):void
        var printJob:PrintJob = new PrintJob();
        var sprite:Sprite = new Sprite();
        printJob.start();
        printJob.addPage(sprite);
        printJob.send();
    btn_print.addEventListener(MouseEvent.CLICK, printScore);
    If I right-click and choose print while viewing the .swf file, it prints correctly.  What am I missing in order to make my last frame print through my print button?

    I just found my answer on this thread: http://forums.adobe.com/message/57234#57234

  • While printing table frame in SF

    hi
      i am trying to get print out of OUT PUT of smartform in which i have defined a table which have (pattern Outer Frame with inside's grids)  , in print preview it is showing OK , but <b>at printing time data is coming right but FRAME is not get printed</b>.
       plz guide me

    try deslecting da pattern, dat is select an unframed pattern first activate, and den select ur pattern again..
    if it doesnot help, u'll need to delete da template and draw it all over again coz dis sumtimes happens wid smartforms
    plz reward points if dis helps

  • Safari on Mac & PC crashing when trying to print a frame

    Help! I seem to be having a problem on my Mac & PC running Safari 3 on the PC and 2 on the mac. If I go to a web page using frames, right click and pick "print frame" safari crashes. Anyone have any suggestions?
    Thanks!
    Joe

    Hi jdebiso and welcome to the forums!
    I got this from Safari's Help menu:
    Safari only prints the visible portion of the page
    Safari may only print the visible portion of a webpage, cutting off the portion you must scroll to see.
    This occurs when the page uses frames.
    For best printing results, click on the block of text that you are trying to print immediately before printing. Many websites have these major elements, each of which could be a frame:
    A site identification area, or banner, across the top of the page.
    A table of contents, or navigation links, in a column on the right or left side.
    A central text window in the middle, which shows the main content.
    Update to Mac OS X 10.3.6 or later to resolve the issue.
    As an immediate workaround, prior to updating, you can click the text in the primary window immediately before printing. This tells Safari that you are focused on the main content frame.

  • Missing Adobe PDF printer instance--Frame 7.2

    I just installed Frame 7.2 and Acrobat 7 (I also have Acro 6 and Frame 7.1 on the machine), but in that install I did not end up with an adobe printer instance so I cannot save to PDF. I've been all over the forum and web but cannot figure out where I would get this (and why it wasn't within the install). Any suggestions? Thanks....jen

    I'm not sure about the compatibility of those earlier versions of
    FrameMaker and Acrobat with Windows 7 64-bit, but when you say you have
    the same problem, do you mean that you still got no "Adobe PDF" (or in
    older Acrobat versions, "Acrobat Distiller") printer instance when you
    reinstalled? Or just that you still cannot save as PDF? If you still get
    no printer instance, you probably do need to update to Acrobat 11.
    But if the virtual printer is there, but Save As in Framemaker is not
    working, try instead to print the file and choose the virtual printer,
    rather than using Save as PDF.  Save as PDF was highly unreliable in
    earlier versions of FrameMaker, and the cause of a large number of
    support issues on this forum. Plus, there were changes made in Acrobat's
    file locations around version 7 or 8? (the version, I think, that
    changed the printer name from Acrobat Distiller to Adobe PDF) that broke
    the Save As PDF ability completely in older FM versions, because they
    were still looking in the old locations for the support files.
    In general, any version of Acrobat should work with any version of
    FrameMaker, as long as you print to PDF, rather than Save as PDF.

Maybe you are looking for