PDA

Click to See Complete Forum and Search --> : Print contents of frame2 from frame1


dadames
Aug 31st, 2000, 01:33 PM
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.

KrisPipeleers
Sep 4th, 2000, 01:12 AM
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,

dadames
Sep 4th, 2000, 12:54 PM
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

KrisPipeleers
Sep 4th, 2000, 11:41 PM
Enjoy the real thing,
coca cola