Make a Print Button to P3rint a Bitmap Image

I want to set up a page with two frames. A large frame that has a bitmap image and a small skinny frame that contains one button labled "Print".  When the user pushes the button the bitmap image will be printed.  I know how to set up the frames but I can't figure out how to drive the button.

Thanks!
1agallenAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

1agallenAuthor Commented:
Edited text of question.
0
lazarruCommented:
what browser(s) and versions are you looking to do this in.  There are ways to do it in some browers but not others
0
NickRackhamCommented:
1agallen

This java button will print the main frame. Just change the top."main".print to the name of the frame that you want to print.

<input type="button"
    name="cmdPrint" value="  Print  " onClick="top.main.print()">

Regards

Nick
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

NickRackhamCommented:
1agallen

In addition to the above comment, place the above code into your smaller frame,
0
NickRackhamCommented:
Any comment?
0
1agallenAuthor Commented:
Nick-

I tried your answer as best as I could -I'm no Java expert.  How about if I email you the HTML and you take a look at it?
0
NickRackhamCommented:
No Problem, nick_rackham@msn.com
0
1agallenAuthor Commented:
Thanks for the help -- it works great.
Check it out at

www.ssll.net/DonationForm.htm
0
NickRackhamCommented:
Excellent. Glad I could help.

Regards

Nick
0
NickRackhamCommented:
Looks Good. I think I've found a solution to the initial question. I'll work on it tonight and if successful will mail it to you later. That way you can have your button on the top frame.

Regards

Nick
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.