Results 1 to 4 of 4

Thread: Print contents of frame2 from frame1

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2000
    Location
    Florida
    Posts
    45
    I have 2 frames. Frame1 is a button bar, frame2 has some graphics. I want to click the print button in frame1 to print the graphics, etc. on frame2. Right now the onClick event of the Frame1 button calls Print() but that only prints the contents of the current frame, frame1.
    If I could only remember my name...

  2. #2
    New Member
    Join Date
    Sep 2000
    Location
    Belgium
    Posts
    3

    Cool

    Yo,

    You need to play with 2 things:
    - the focus
    the frame you want to print needs to have the focus
    but in order to give the focus, you
    - need to use a timer
    something like window.setTimeout("parent.Pictures.DoPrint();", 1);


    Greetings,
    Yo, from Kris

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 2000
    Location
    Florida
    Posts
    45
    Hey Kris, thanks a lot. You're on the money. I got it to go by doing calling this sub from frame1
    Sub PrintDiagram()
    parent.frames.frame2.Focus
    Print()
    End Sub ' PrintDiagram()

    David
    If I could only remember my name...

  4. #4
    New Member
    Join Date
    Sep 2000
    Location
    Belgium
    Posts
    3

    Smile

    Enjoy the real thing,
    coca cola
    Yo, from Kris

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width